2024-03-10 02:14:40 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchzip
|
|
|
|
, ant
|
|
|
|
, jdk8
|
|
|
|
, sharutils
|
2024-03-17 12:35:55 +00:00
|
|
|
, stripJavaArchivesHook
|
2024-03-10 02:14:40 +00:00
|
|
|
}:
|
2009-10-01 14:48:57 +00:00
|
|
|
|
2024-03-10 02:14:40 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-06-20 14:15:21 +00:00
|
|
|
pname = "freetts";
|
|
|
|
version = "1.2.2";
|
2024-03-10 02:14:40 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
2024-07-13 00:17:48 +00:00
|
|
|
url = "mirror://sourceforge/freetts/freetts-${finalAttrs.version}-src.zip";
|
2024-03-10 02:14:40 +00:00
|
|
|
hash = "sha256-+bhM0ErEZVnmcz5CBqn/AeGaOhKnCjZzGeqgO/89wms=";
|
|
|
|
stripRoot = false;
|
2009-10-01 14:48:57 +00:00
|
|
|
};
|
2024-03-10 02:14:40 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
ant
|
|
|
|
jdk8
|
|
|
|
sharutils
|
2024-03-17 12:35:55 +00:00
|
|
|
stripJavaArchivesHook
|
2024-03-10 02:14:40 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
sourceRoot = "${finalAttrs.src.name}/freetts-${finalAttrs.version}";
|
|
|
|
|
2009-10-01 14:48:57 +00:00
|
|
|
buildPhase = ''
|
2024-03-10 02:14:40 +00:00
|
|
|
runHook preBuild
|
|
|
|
|
|
|
|
pushd lib
|
2009-10-01 14:48:57 +00:00
|
|
|
sed -i -e "s/more/cat/" jsapi.sh
|
|
|
|
echo y | sh jsapi.sh
|
2024-03-10 02:14:40 +00:00
|
|
|
popd
|
|
|
|
|
2009-10-01 14:48:57 +00:00
|
|
|
ln -s . src
|
|
|
|
ant
|
2024-03-10 02:14:40 +00:00
|
|
|
|
|
|
|
runHook postBuild
|
2009-10-01 14:48:57 +00:00
|
|
|
'';
|
2024-03-10 02:14:40 +00:00
|
|
|
|
2009-10-01 14:48:57 +00:00
|
|
|
installPhase = ''
|
2024-03-10 02:14:40 +00:00
|
|
|
runHook preInstall
|
|
|
|
install -Dm644 lib/*.jar -t $out/lib
|
|
|
|
runHook postInstall
|
2009-10-01 14:48:57 +00:00
|
|
|
'';
|
2016-09-16 15:10:45 +00:00
|
|
|
|
2009-10-01 14:48:57 +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.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://freetts.sourceforge.net";
|
2024-03-10 02:14:40 +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
|
|
|
|
];
|
2009-10-01 14:48:57 +00:00
|
|
|
};
|
2024-03-10 02:14:40 +00:00
|
|
|
})
|