From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- app-accessibility/freetts/Manifest | 8 + app-accessibility/freetts/files/jsapi-gentoo.diff | 194 ++++++++++++++++++++++ app-accessibility/freetts/freetts-1.2.1-r2.ebuild | 65 ++++++++ app-accessibility/freetts/freetts-1.2.2.ebuild | 86 ++++++++++ app-accessibility/freetts/metadata.xml | 19 +++ 5 files changed, 372 insertions(+) create mode 100644 app-accessibility/freetts/Manifest create mode 100644 app-accessibility/freetts/files/jsapi-gentoo.diff create mode 100644 app-accessibility/freetts/freetts-1.2.1-r2.ebuild create mode 100644 app-accessibility/freetts/freetts-1.2.2.ebuild create mode 100644 app-accessibility/freetts/metadata.xml (limited to 'app-accessibility/freetts') diff --git a/app-accessibility/freetts/Manifest b/app-accessibility/freetts/Manifest new file mode 100644 index 000000000000..ba45e84ce416 --- /dev/null +++ b/app-accessibility/freetts/Manifest @@ -0,0 +1,8 @@ +AUX jsapi-gentoo.diff 10444 SHA256 18b37ac9b844edd9de353992551e897ffa81fd3456bb42802967a1d422210280 SHA512 43e53a55afb973821a7997f7989e7330e263a55eb4c1fdd4bbc6b7269ae428582f21f59b05e258f618c9f2ce88d047797e24dfdaab7465c6feca995fcbcb8ca1 WHIRLPOOL 0621df8f1043b94a7a3feff48167b652777a8ae0ecbb3c9813a28bd1451ad665855e6607b8962356f3807316fdb996783bf140633d1a477fc6f462a17bb88ed1 +DIST freetts-1.2.1-src.zip 14100414 SHA256 e21421f3b6bd4364f4310e273128f20b63a6b885e8f17d9a441df20d4c455280 SHA512 927d881263f561df8e8ee919ea6019ed44d6ecad7d434c618e333063e992f938d50161a281094b27a4dd8312ac3eedc34040ede947df91e94bbca06c25ba45d3 WHIRLPOOL dbb1d27491f48041fd22d9be472cafe4cd94f514d0a39235d72e613aaaed887245cb377575768420c8546706c33e06765d7894c1e3599560bf4570e7be6a5eb0 +DIST freetts-1.2.2-src.zip 14111416 SHA256 270bbf8c3ab1571585f0a78818ba73b601ef515eb1e6087293c41177219ed156 SHA512 a2cce0b1fd2267cc8dbd3e2ad3ec1f99526de3988443c0937405cc7b2eab9ef517001ef0b4b387e8721d3c33610cd642c6b7cf83217996a83481830de9713de7 WHIRLPOOL e7bfd3e72e1fc4f6d36d2c743b7c61856d1471ddfa59158b799552800cfbb307cf14012c53280fa5052df35c0aa0cb680ed20d99ec8111efb8785c0a00492021 +EBUILD freetts-1.2.1-r2.ebuild 1546 SHA256 cf3e3f0eec9d8178a64a8eb52734df1921318b719f5f59f854c7aed39ecfdfc6 SHA512 0d3f210eb4d06c324bf46d1901406ad51bcc56cecc10719d47eb04c3b474fdd6c53fa310808843a5751dbd5ba8e5e98b65a18581d1d4afd12007ea27e966fce6 WHIRLPOOL 7b875f428af680bc65e94dfe169b3431298f3a4e7f704f8a412d86d08c4d4edab6aea0974ff7681636bd3c44d7d07281d511dcdb14c7a10f06c56726da15f223 +EBUILD freetts-1.2.2.ebuild 1894 SHA256 146c6630fa997baa557bc3c34fc0a6c13849d4679645095a20a110b5a58f2588 SHA512 abca6c28b6311e592cbd3bf986e9e097649b6446629b287ea695327ff946d7240b0178d3f0c5368ebceb185c889ddf02eef75306e460c31be503d2731f2d99d2 WHIRLPOOL 99c18a1ffd4972ef18c8b068aaf12d57759c48d0d636699c25817986166ec23bf8f4200c333f5fab63cacac936e4ae0fa56ebdac4ca0c76cb75d46aca67a98ae +MISC ChangeLog 2685 SHA256 5400a2f6aa89ca3489cdcaac1545d34047b408ead59ab474c300707a02b25f4f SHA512 9f432f79f5e1ac8fb126a875a3bbf603756a03665b63392b30cf3db8ad57c0c9328e3f7e945b76e2703bf68cc94849ebf9a8a9164ffd641cb321e9cf38ba2d60 WHIRLPOOL 53e2912a0204991a8be54eb0c4c2c71eb4f12161a150e6a225ee84da20dca18c584306711e651ed9999b44f3d9a0519e06c542a0163c1a1a2530cf368bb547af +MISC ChangeLog-2015 5012 SHA256 e8da2487fbcf620fb6417ff65dae9e3afc497cf6e16684e759b4436def9ca7d5 SHA512 e0eb17004d169e285607bd3ddec2e3f74b3ed2feb70251aaa208280db367b12357ca9f2e129c256e906963e39b278328074733a9dc639801cbb430bf8e76ab30 WHIRLPOOL 67055534391ad88ef08436b0ed117a6a704e06a395c69c2f0c75e8637d20c5fbb5ab8a663f70642e98f4e3717879ccf62e964e76751596b449b0ac97bd03bca3 +MISC metadata.xml 576 SHA256 11cc8a3e29431fba4b000ee48fde7a7cf4958b420c27443ece447874488b7e7b SHA512 f4541826693d1e4b6c943c269d2702f27d60c70727f19ac6511696c723d9e56e5d4673ebb8a219a974bd1b1cfdeba9164b8084017c09fba28429b795308b25a8 WHIRLPOOL 0b09ee07c8f8ee424eb56c5d6c0fa6f9bce2f5a69d3185e3aafe5db791c48b0a7bdb52a35c0e4106c177b158072041338b7cd58ac91b26799496ee6deda1e658 diff --git a/app-accessibility/freetts/files/jsapi-gentoo.diff b/app-accessibility/freetts/files/jsapi-gentoo.diff new file mode 100644 index 000000000000..016263e24d0d --- /dev/null +++ b/app-accessibility/freetts/files/jsapi-gentoo.diff @@ -0,0 +1,194 @@ +--- jsapi.sh 2001-12-20 09:51:28.000000000 -0500 ++++ jsapi-gentoo.sh 2004-03-20 01:36:10.021810888 -0500 +@@ -10,191 +10,6 @@ + # ------ ---------- ------------------------------------------ + # 51811 -rw-rw-r-- jsapi.jar + # +-more <<- xxxFOOxxx +- +- Sun Microsystems, Inc. +- Binary Code License Agreement +- +-READ THE TERMS OF THIS AGREEMENT AND ANY PROVIDED SUPPLEMENTAL LICENSE +-TERMS (COLLECTIVELY "AGREEMENT") CAREFULLY BEFORE OPENING THE SOFTWARE +-MEDIA PACKAGE. BY OPENING THE SOFTWARE MEDIA PACKAGE, YOU AGREE TO THE +-TERMS OF THIS AGREEMENT. IF YOU ARE ACCESSING THE SOFTWARE +-ELECTRONICALLY, INDICATE YOUR ACCEPTANCE OF THESE TERMS BY SELECTING +-THE "ACCEPT" BUTTON AT THE END OF THIS AGREEMENT. IF YOU DO NOT AGREE +-TO ALL THESE TERMS, PROMPTLY RETURN THE UNUSED SOFTWARE TO YOUR PLACE +-OF PURCHASE FOR A REFUND OR, IF THE SOFTWARE IS ACCESSED +-ELECTRONICALLY, SELECT THE "DECLINE" BUTTON AT THE END OF THIS +-AGREEMENT. +- +-1. LICENSE TO USE. Sun grants you a non-exclusive and +-non-transferable license for the internal use only of the accompanying +-software and documentation and any error corrections provided by Sun +-(collectively "Software"), by the number of users and the class of +-computer hardware for which the corresponding fee has been paid. +- +-2. RESTRICTIONS. Software is confidential and copyrighted. Title to +-Software and all associated intellectual property rights is retained by +-Sun and/or its licensors. Except as specifically authorized in any +-Supplemental License Terms, you may not make copies of Software, other +-than a single copy of Software for archival purposes. Unless +-enforcement is prohibited by applicable law, you may not modify, +-decompile, or reverse engineer Software. You acknowledge that Software +-is not designed, licensed or intended for use in the design, +-construction, operation or maintenance of any nuclear facility. Sun +-disclaims any express or implied warranty of fitness for such uses. No +-right, title or interest in or to any trademark, service mark, logo or +-trade name of Sun or its licensors is granted under this Agreement. +- +-3. LIMITED WARRANTY. Sun warrants to you that for a period of ninety +-(90) days from the date of purchase, as evidenced by a copy of the +-receipt, the media on which Software is furnished (if any) will be free +-of defects in materials and workmanship under normal use. Except for +-the foregoing, Software is provided "AS IS". Your exclusive remedy and +-Sun's entire liability under this limited warranty will be at Sun's +-option to replace Software media or refund the fee paid for Software. +- +-4. DISCLAIMER OF WARRANTY. UNLESS SPECIFIED IN THIS AGREEMENT, ALL +-EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, +-INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A +-PARTICULAR PURPOSE OR NON-INFRINGEMENT ARE DISCLAIMED, EXCEPT TO THE +-EXTENT THAT THESE DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. +- +-5. LIMITATION OF LIABILITY. TO THE EXTENT NOT PROHIBITED BY LAW, IN +-NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, +-PROFIT OR DATA, OR FOR SPECIAL, INDIRECT, CONSEQUENTIAL, INCIDENTAL OR +-PUNITIVE DAMAGES, HOWEVER CAUSED REGARDLESS OF THE THEORY OF LIABILITY, +-ARISING OUT OF OR RELATED TO THE USE OF OR INABILITY TO USE SOFTWARE, +-EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. In no +-event will Sun's liability to you, whether in contract, tort (including +-negligence), or otherwise, exceed the amount paid by you for Software +-under this Agreement. The foregoing limitations will apply even if the +-above stated warranty fails of its essential purpose. +- +-6. Termination. This Agreement is effective until terminated. You +-may terminate this Agreement at any time by destroying all copies of +-Software. This Agreement will terminate immediately without notice +-from Sun if you fail to comply with any provision of this Agreement. +-Upon Termination, you must destroy all copies of Software. +- +-7. Export Regulations. All Software and technical data delivered under +-this Agreement are subject to US export control laws and may be subject +-to export or import regulations in other countries. You agree to +-comply strictly with all such laws and regulations and acknowledge that +-you have the responsibility to obtain such licenses to export, +-re-export, or import as may be required after delivery to you. +- +-8. U.S. Government Restricted Rights. If Software is being acquired +-by or on behalf of the U.S. Government or by a U.S. Government prime +-contractor or subcontractor (at any tier), then the Government's rights +-in Software and accompanying documentation will be only as set forth in +-this Agreement; this is in accordance with 48 CFR 227.7201 through +-227.7202-4 (for Department of Defense (DOD) acquisitions) and with 48 +-CFR 2.101 and 12.212 (for non-DOD acquisitions). +- +-9. Governing Law. Any action related to this Agreement will be +-governed by California law and controlling U.S. federal law. No choice +-of law rules of any jurisdiction will apply. +- +-10. Severability. If any provision of this Agreement is held to be +-unenforceable, this Agreement will remain in effect with the provision +-omitted, unless omission would frustrate the intent of the parties, in +-which case this Agreement will immediately terminate. +- +-11. Integration. This Agreement is the entire agreement between you +-and Sun relating to its subject matter. It supersedes all prior or +-contemporaneous oral or written communications, proposals, +-representations and warranties and prevails over any conflicting or +-additional terms of any quote, order, acknowledgment, or other +-communication between the parties relating to its subject matter during +-the term of this Agreement. No modification of this Agreement will be +-binding, unless in writing and signed by an authorized representative +-of each party. +- +- JAVA(TM) SPEECH API (JSAPI) SPECIFICATION IMPLEMETATION, VERSION +- 1.0 +- SUPPLEMENTAL LICENSE TERMS +- +-These supplemental license terms ("Supplemental Terms") add to or +-modify the terms of the Binary Code License Agreement (collectively, +-the "Agreement"). Capitalized terms not defined in these Supplemental +-Terms shall have the same meanings ascribed to them in the Agreement. +-These Supplemental Terms shall supersede any inconsistent or +-conflicting terms in the Agreement, or in any license contained within +-the Software. +- +-1. Software Internal Use and Development License Grant. Subject to the +-terms and conditions of this Agreement, including, but not limited to +-Section 3 (Java(TM) Technology Restrictions) of these Supplemental +-Terms, Sun grants you a non-exclusive, non-transferable, limited +-license to reproduce internally and use internally the binary form of +-the Software, complete and unmodified, for the sole purpose of +-designing, developing and testing your Java applets and applications +-("Programs"). +- +-2. License to Distribute Software. In addition to the license granted +-in Section 1 (Software Internal Use and Development License Grant) of +-these Supplemental Terms, subject to the terms and conditions of this +-Agreement, including but not limited to Section 3 (Java Technology +-Restrictions), Sun grants you a non-exclusive, non-transferable, +-limited license to reproduce and distribute the Software in binary form +-only, provided that you (i) distribute the Software complete and +-unmodified and only bundled as part of your Programs, (ii) do not +-distribute additional software intended to replace any component(s) of +-the Software, (iii) do not remove or alter any proprietary legends or +-notices contained in the Software, (iv) only distribute the Software +-subject to a license agreement that protects Sun's interests consistent +-with the terms contained in this Agreement, and (v) agree to defend and +-indemnify Sun and its licensors from and against any damages, costs, +-liabilities, settlement amounts and/or expenses (including attorneys' +-fees) incurred in connection with any claim, lawsuit or action by any +-third party that arises or results from the use or distribution of any +-and all Programs and/or Software. +- +-3. Java Technology Restrictions. You may not modify the Java Platform +-Interface ("JPI", identified as classes contained within the "java" +-package or any subpackages of the "java" package), by creating +-additional classes within the JPI or otherwise causing the addition to +-or modification of the classes in the JPI. In the event that you +-create an additional class and associated API(s) which (i) extends the +-functionality of the Java Platform, and (ii) is exposed to third party +-software developers for the purpose of developing additional software +-which invokes such additional API, you must promptly publish broadly an +-accurate specification for such API for free use by all developers. You +-may not create, or authorize your licensees to create additional +-classes, interfaces, or subpackages that are in any way identified as +-"java", "javax", "sun" or similar convention as specified by Sun in any +-naming convention designation. +- +-4. Trademarks and Logos. You acknowledge and agree as between you and +-Sun that Sun owns the SUN, SOLARIS, JAVA, JINI, FORTE, and iPLANET +-trademarks and all SUN, SOLARIS, JAVA, JINI, FORTE, and iPLANET-related +-trademarks, service marks, logos and other brand designations ("Sun +-Marks"), and you agree to comply with the Sun Trademark and Logo Usage +-Requirements currently located at +-http://www.sun.com/policies/trademarks. Any use you make of the Sun +-Marks inures to Sun's benefit. +- +-5. Source Code. Software may contain source code that is provided +-solely for reference purposes pursuant to the terms of this Agreement. +-Source code may not be redistributed unless expressly provided for in +-this Agreement. +- +-6. Termination for Infringement. Either party may terminate this +-Agreement immediately should any Software become, or in either party's +-opinion be likely to become, the subject of a claim of infringement of +-any intellectual property right. +- +-For inquiries please contact: Sun Microsystems, Inc. 901 San Antonio +-Road, Palo Alto, California 94303 (LFI#108931/Form ID#011801) +-xxxFOOxxx +- +-echo "Accept (y/n)?: " +-read ans +-if [ "$ans" != "y" ] +-then +- echo 'failed to accept license' +- exit 1 +-fi + save_IFS="${IFS}" + IFS="${IFS}:" + gettext_dir=FAILED diff --git a/app-accessibility/freetts/freetts-1.2.1-r2.ebuild b/app-accessibility/freetts/freetts-1.2.1-r2.ebuild new file mode 100644 index 000000000000..61ec02c0903d --- /dev/null +++ b/app-accessibility/freetts/freetts-1.2.1-r2.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="A speech synthesis system written entirely in Java" +SRC_URI="mirror://sourceforge/${PN}/${P}-src.zip" +HOMEPAGE="http://freetts.sourceforge.net/" + +RDEPEND=">=virtual/jre-1.4 + mbrola? ( >=app-accessibility/mbrola-3.0.1h-r6 ) " +DEPEND=">=virtual/jdk-1.4 + ${RDEPEND} + jsapi? ( app-arch/sharutils ) + app-arch/unzip" + +LICENSE="jsapi? ( sun-bcla-jsapi ) freetts" +SLOT="0" +KEYWORDS="amd64 ppc64 x86" +IUSE="doc jsapi mbrola" + +src_unpack() { + unpack ${A} + cd "${S}/lib" + + chmod 0755 jsapi.sh + epatch "${FILESDIR}/jsapi-gentoo.diff" + + use mbrola && echo "mbrola.base=/usr/share/mbrola/" >> "${S}/speech.properties" +} + +src_compile() { + cd "${S}/lib" + if use jsapi; then + ./jsapi.sh || die "jsapi.sh failed" + fi + cd "${S}" + eant jars +} + +# Tests dont' seem included +# http://freetts.sourceforge.net/docs/index.php#how_test +#src_test() { +# ANT_TASKS="ant-junit" eant junit +#} + +src_install() { + java-pkg_dojar lib/*.jar mbrola/*.jar + + use mbrola && local jflags="--java_args -Dmbrola.base=/usr/share/mbrola" + java-pkg_dolauncher ${PN} --main com.sun.speech.freetts.FreeTTS ${jflags} + + insinto /usr/share/${PN} + doins speech.properties + + cp -R "${S}/demo" "${D}/usr/share/${PN}" + cp -R "${S}/tools" "${D}/usr/share/${PN}" + + dodoc README.txt RELEASE_NOTES acknowledgments.txt || die + if use doc; then + insinto /usr/share/doc/${PF}/html + doins -r "${S}"/docs/* + java-pkg_dojavadoc "${S}/javadoc" + fi +} diff --git a/app-accessibility/freetts/freetts-1.2.2.ebuild b/app-accessibility/freetts/freetts-1.2.2.ebuild new file mode 100644 index 000000000000..fba0a2a231d2 --- /dev/null +++ b/app-accessibility/freetts/freetts-1.2.2.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +JAVA_PKG_IUSE="doc examples source" + +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="A speech synthesis system written entirely in Java" +SRC_URI="mirror://sourceforge/${PN}/${P}-src.zip" +HOMEPAGE="http://freetts.sourceforge.net/" + +RDEPEND=">=virtual/jre-1.4 + mbrola? ( >=app-accessibility/mbrola-3.0.1h-r6 ) " + +DEPEND=">=virtual/jdk-1.4 + ${RDEPEND} + jsapi? ( app-arch/sharutils ) + app-arch/unzip" + +LICENSE="jsapi? ( sun-bcla-jsapi ) freetts" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" + +IUSE="jsapi mbrola" + +# Tests aren't present. +RESTRICT="test" + +java_prepare() { + # Prepare source directory. + mkdir src || die "Failed to create source directory." + mv com de src/ || die "Failed to move files to source directory." + + # Prepare library directory. + cd lib || die "Lib directory not present." + chmod 0755 jsapi.sh || die "jsapi.sh not present or can't change permissions." + epatch "${FILESDIR}"/jsapi-gentoo.diff + + use mbrola && echo "mbrola.base=/usr/share/mbrola/" >> "${S}"/speech.properties +} + +src_compile() { + if use jsapi; then + pushd lib + ./jsapi.sh || die "jsapi.sh failed" + popd + fi + + eant jars +} + +# Tests aren't present. +# http://freetts.sourceforge.net/docs/index.php#how_test +#src_test() { +# ANT_TASKS="ant-junit" eant junit +#} + +src_install() { + java-pkg_dojar lib/*.jar mbrola/*.jar + + use mbrola && local jflags="--java_args -Dmbrola.base=/usr/share/mbrola" + + java-pkg_dolauncher ${PN} --main com.sun.speech.freetts.FreeTTS ${jflags} + + insinto /usr/share/${PN} + doins speech.properties + doins -r tools + + dodoc ANNOUNCE.txt README.txt RELEASE_NOTES + + if use doc ; then + insinto /usr/share/doc/${PF}/html + doins -r docs/* + java-pkg_dojavadoc javadoc + fi + + if use examples ; then + java-pkg_doexamples demo + fi + + if use source ; then + java-pkg-dosrc src/* + fi +} diff --git a/app-accessibility/freetts/metadata.xml b/app-accessibility/freetts/metadata.xml new file mode 100644 index 000000000000..c7177e539175 --- /dev/null +++ b/app-accessibility/freetts/metadata.xml @@ -0,0 +1,19 @@ + + + + + accessibility@gentoo.org + Gentoo Accessibility Project + + + java@gentoo.org + Java + + + build Java Speech API (JSAPI) + Adds support for mbrola voices + + + freetts + + -- cgit v1.2.3