2024-04-21 15:54:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchzip
|
|
|
|
, ant
|
|
|
|
, jdk8
|
|
|
|
, sharutils
|
|
|
|
, stripJavaArchivesHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "freetts";
|
|
|
|
version = "1.2.2";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "mirror://sourceforge/freetts/${finalAttrs.pname}-${finalAttrs.version}-src.zip";
|
|
|
|
hash = "sha256-+bhM0ErEZVnmcz5CBqn/AeGaOhKnCjZzGeqgO/89wms=";
|
|
|
|
stripRoot = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
ant
|
|
|
|
jdk8
|
|
|
|
sharutils
|
|
|
|
stripJavaArchivesHook
|
|
|
|
];
|
|
|
|
|
|
|
|
sourceRoot = "${finalAttrs.src.name}/freetts-${finalAttrs.version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPhase = ''
|
2024-04-21 15:54:59 +00:00
|
|
|
runHook preBuild
|
|
|
|
|
|
|
|
pushd lib
|
2020-04-24 23:36:52 +00:00
|
|
|
sed -i -e "s/more/cat/" jsapi.sh
|
|
|
|
echo y | sh jsapi.sh
|
2024-04-21 15:54:59 +00:00
|
|
|
popd
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
ln -s . src
|
|
|
|
ant
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
runHook postBuild
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = ''
|
2024-04-21 15:54:59 +00:00
|
|
|
runHook preInstall
|
|
|
|
install -Dm644 lib/*.jar -t $out/lib
|
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Text to speech system based on Festival written in Java";
|
|
|
|
longDescription = ''
|
|
|
|
Text to speech system based on Festival written in Java.
|
|
|
|
Can be used in combination with KDE accessibility.
|
|
|
|
'';
|
|
|
|
homepage = "http://freetts.sourceforge.net";
|
2024-04-21 15:54:59 +00:00
|
|
|
license = lib.licenses.bsdOriginal;
|
|
|
|
maintainers = with lib.maintainers; [ sander ];
|
|
|
|
sourceProvenance = with lib.sourceTypes; [
|
|
|
|
fromSource
|
|
|
|
binaryBytecode # jsapi.jar is bundled in a self-extracting shell-script
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-04-21 15:54:59 +00:00
|
|
|
})
|