summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app-accessibility/festival/Manifest38
-rw-r--r--app-accessibility/festival/festival-2.5.ebuild159
-rw-r--r--app-accessibility/festival/files/festival-2.1-gentoo-system.patch124
-rw-r--r--app-accessibility/festival/files/festival-2.1-init-scm.patch24
-rw-r--r--app-accessibility/festival/files/festival-2.1-ldflags.patch12
-rw-r--r--app-accessibility/festival/files/festival-2.5-gcc4.7.patch20
-rw-r--r--app-accessibility/speech-tools/Manifest1
-rw-r--r--app-accessibility/speech-tools/files/speech-tools-2.1-underlinking.patch11
-rw-r--r--app-accessibility/speech-tools/files/speech-tools-2.5-all-GentooLinux.patch124
-rw-r--r--app-accessibility/speech-tools/files/speech-tools-2.5-all-base_class.patch12
-rw-r--r--app-accessibility/speech-tools/files/speech-tools-2.5-all-etcpath.patch18
-rw-r--r--app-accessibility/speech-tools/files/speech-tools-2.5-all-gcc42.patch81
-rw-r--r--app-accessibility/speech-tools/files/speech-tools-2.5-all-gcc43-include.patch23
-rw-r--r--app-accessibility/speech-tools/files/speech-tools-2.5-all-gentoo-config.patch25
-rw-r--r--app-accessibility/speech-tools/files/speech-tools-2.5-all-ldflags-fix.patch12
-rw-r--r--app-accessibility/speech-tools/files/speech-tools-2.5-all-mixed-cxxflag-cflag-fix.patch12
-rw-r--r--app-accessibility/speech-tools/files/speech-tools-2.5-all-ncurses-tinfo.patch11
-rw-r--r--app-accessibility/speech-tools/files/speech-tools-2.5-all-remove-shared-refs.patch95
-rw-r--r--app-accessibility/speech-tools/files/speech-tools-2.5-all-sharedlib.patch52
-rw-r--r--app-accessibility/speech-tools/speech-tools-2.5.ebuild130
20 files changed, 984 insertions, 0 deletions
diff --git a/app-accessibility/festival/Manifest b/app-accessibility/festival/Manifest
new file mode 100644
index 00000000..1ce0e724
--- /dev/null
+++ b/app-accessibility/festival/Manifest
@@ -0,0 +1,38 @@
+DIST festival-2.5.0-release.tar.gz 789013 BLAKE2B 1a909d3abc45b95cbf7e5e1b74a3afcbf78d4fc2bab3e78e11ed8783546e8e78d52e9bc4fc5f8f0144688cf3e6c0f10d79074750b850e17bf1271105226b6d04 SHA512 529ec3a1780a861074b6070567f3e11cfcc839081f61e078978a491f11eb424bc4d6adf599f073d5571e20f66871b7045df9f9b175a1083d10e8bb02342639b1
+DIST festlex_CMU.tar.gz 1925748 BLAKE2B b6ecd5d79de7c3de6ea479c89e441a0416f2afd1b5de291a65b7ff5c3c8c0642aaceddec7f97948dea7350f5ee58d009ccd389d00587587562da924254fbaf5c SHA512 c293344020fd3337193303cd5dfb7e2b0a1012770a484d8bccaae921b0c61b75699204bec45fee0db754506d6f1558fd616866cc94e76afcbb85a4dcbcf9542b
+DIST festlex_OALD.tar.gz 1472516 BLAKE2B b7037413e5c90a7ebf2ebcb14240210fdad225e3327b032897c559dcfc6f7b87d0899c0e91171d37799c5e4afc2f47fd467c14ab0b126ffcde38d540cd7899cd SHA512 0221c3d78140c6cb4e74f98edbdf0dbe5987a8efa3e7205844a5c01c31a98aaced3b20e4a42b09aaa4a3c93c9225d9f24d96df3fb5d963092e955d4cb4674aac
+DIST festlex_POSLEX.tar.gz 242914 BLAKE2B d8e38aa7f119d7e4cf5e29940bd86dbee3d0d98b0cbe4b35c873fa05eeeadb3605a2c2c692e7591da812db712d19a764a8c89160d0081415d6491ecd9bb71e54 SHA512 5c3857a195f5f5ebc4c366f37685437af41eb7e86a1a13b41b08cab91e536114ae4ddfa8b124acb40ec32c13b53d0dbf2c857d4c756b0720c9a363866ecb8c47
+DIST festvox_cmu_indic_ben_rm_cg.tar.gz 42341902 BLAKE2B c7d170513017ad71da3b425e8814e63c085b2c284c611abd263f35968e752d5ca79a3c9da40c21d0f383a2cc57a346f8a20e7c90f94423bcbfcf5a76b88f0bf0 SHA512 64daf727d35e7d71e3c05a833f7d8cfc2b2b80543ca306b9202c804d9a142a7c33b7925e18e68e2f1ba8c607fe025e1ff04ec19ed4b89a0464fc49805b15366e
+DIST festvox_cmu_indic_guj_ad_cg.tar.gz 55175519 BLAKE2B 268dede6b4873d512b99d12a4a737a85dc637433767c3d2ea700ab03bbb093b6fef24d800e91e50083d3c9515d1215703c139c5b3d679170ba8bddd59c963d44 SHA512 1d4a25e9b03f15e58ff1eb6871d7d85aaa59defca92cc86480716969781cf0f8dc2b7cfcaa96e617c7ab3d65c1e31ffc14be84d707d33df2743fd4d5b4bf8200
+DIST festvox_cmu_indic_guj_dp_cg.tar.gz 49251964 BLAKE2B b1633d7a4c4168d82c930ce0fd16c9f8209e06d2868a240c45e92c07a095aa79f380e2b89c0726ed167b942ef5a88a90295ca63643496201deabbec5e33d05a7 SHA512 6dd832b6f117b16decd0897e832f5a061b92801a5fb28f954fbe424fce457ec16de9ff0ae0da0180d6122134a7bc705c3b32eada47db9fa6d8edc0bfc164eb1b
+DIST festvox_cmu_indic_guj_kt_cg.tar.gz 27165962 BLAKE2B bf8e5505430c5107fc74468758c6b3a56f963cd2a428ffa7e8b7f764c220e6b672241abdc79da67b5052fd103e6bee792ff13e5e710227c5c1a2d751ff9179bb SHA512 3d510dab96dddfab5b448895ced91c23951a9659d86b834609ae82c64bf910e6983a81125567f01d68f9a3e6a7bcb5d790a7376b900184cbc5473999735026ae
+DIST festvox_cmu_indic_hin_ab_cg.tar.gz 153918633 BLAKE2B 1c7adbb4eeaba7d8ebbf655dd9709d06ab037f0bbaca85d87070e82a7db8b4de42341b93788805158abb89e2463d63f5faf91b1001e158937794124cb0ba7429 SHA512 1911be2e09aaccbf34f9e40c8148f488948157ecbb1ae026ced11a4a7d5e79164cec0df42b96d4b5efe13bb6a55fcde6bc439bc77890ffe72374180416d4a088
+DIST festvox_cmu_indic_kan_plv_cg.tar.gz 42531770 BLAKE2B b4fb06659cf86d4ac65c88b394fd79851ae7dd18557a7edce7e838d65c0b1c9d946213fead486cfdc3d123ba0140cd7cd52d3e71ae55e6f21568e455d525dac3 SHA512 28723a35ed14a5a1face8998871b5d5e6d715fe9861db4fc507b57ea42aca80fc88c67ed91f0fe36a4c97e51b96c866d4a7c52572eebfc208d829db83e3c75d1
+DIST festvox_cmu_indic_mar_aup_cg.tar.gz 55377778 BLAKE2B 0f6d194bb2cf000151cdb5f97bc81df2ae5807586cf31c5afa625147b304cf540be38d3556208c325bb9357141b53da9c8f04aa85759fbc0b611b15c803d3da7 SHA512 37e48ff540418ce05102a86c586153edd79177d8cf1d8860b9074c6e5d5f1e3e647931b5831ec21efee53b5605e3088bdf98e04189cb34af66dfe661b279a637
+DIST festvox_cmu_indic_mar_slp_cg.tar.gz 63920797 BLAKE2B f601228895f5cb98b8f146a5fa832388d70aab16bb4cb68d4e81354c983525b3b3fb8cdae1bbd74528478de6c2ef768b796ba4f0cb5b3a71726a9f4255d0a03a SHA512 f19eb0e87be119b2b8fca47403ab44cc36bd382866cdb0c93b684911aced8b946802fbfa5b9ad88c680d3589708bdc5ea61a9b8134592ffc7d0912cf3e38969d
+DIST festvox_cmu_indic_pan_amp_cg.tar.gz 37676061 BLAKE2B 82a26791f41bd259be1380fb09b8440b2183fc84e446e33592a73cdf08aff1dd40515a5a2eac66d988503499912a7d206b63f3f779762645194a3edaeac099d6 SHA512 28b3e16b88b4b3fb6a4d854ca1465f3886be743000e54c9bb4ec48bcd90f586c0c61adad1e440e6988150ced1175c593d6bd23ffbe21fffe6014ad47e3678ade
+DIST festvox_cmu_indic_tam_sdr_cg.tar.gz 53402753 BLAKE2B 6d4e1556a96b5f73cfb4e8716f9f4711d8598b12ae0a735f4c196c3a79d79c70bcbcdfc3723a46129458876ecebe8cef3522e956dfd709d35582800b8f8efb47 SHA512 f021bab214e311dc53c53870b34c154f7733b04f6094273b95b0a3fb0e01cf3d6eec00b08a53ebe03c55cafb2989fc8d44d18a2d96ce099a2f18afe0a5298351
+DIST festvox_cmu_indic_tel_kpn_cg.tar.gz 65842644 BLAKE2B d4cc68fc155e18920630aca4373889dbf5e8f004e309993e5eb2460248f279190e71bafd58df3bd064980a5d8a26ce6bcf493835b4e6f63e5eff7db6141a2012 SHA512 f53b46a5141c298014f89a8cde16c8e357cac1718bdc9aa65a91bf0d92fe6c0e0b6d563c6dcf556ab042823f585eb7672f2f9b3e133db6f7fa6dc1dc35386b50
+DIST festvox_cmu_indic_tel_sk_cg.tar.gz 67549135 BLAKE2B 68aac46a4f773e9ed9a7656ab7c0ff363ae75a49281b6b10eac169d4c5f35b07c46a7006a5f73ba291ad0511a0a9f87359faea78a346b7d3154d94c787e48cbe SHA512 b985060d37463ec66900babfb076ea0f0b6dfec6b7fd27d1b7f6a99365f165dfe9f60c28b6665a5baf9337b0732fed04fb197a47a8893816b981129e5f519b74
+DIST festvox_cmu_indic_tel_ss_cg.tar.gz 111472221 BLAKE2B f8092cec21874449f31debcf8fca731d92b9b29391e0a11213cfe0cd0c7f3f9a527b6395d01b7b51469c04d821f899dff5a0eb5094db54cc3df43e9598828278 SHA512 b1febc3a7687e1d7e44ee6f4cc4ff57149d632e337d5cb415ac99ce902274e959772e1d1be615aeebe0bd45916225514c15f09332295577af46a13c28e2e5d5e
+DIST festvox_cmu_us_aew_cg.tar.gz 60783777 BLAKE2B a1d98684541516d0e8d763d06bc057c9351697db4aadd030e787e03b7f1217ec98f86b7793fb9f39adc5e65edb5443a5551f263897cd0f2e4756210fd2226965 SHA512 88cfa09e9fe3e7adebc61df53304e2e35d7bbf397140bc8fbbdc51c6979dc3cb002bf270992a2753182a56d302f0a0d51e63a41679c974d8922d4f5c3bc993a7
+DIST festvox_cmu_us_ahw_cg.tar.gz 31673910 BLAKE2B 9fbe59dc98bcb9d03249b2b188ab7e01bb848e8bfa51c7be5586e5365a0997463463aa9558e6b20640237f8898d6f3d2b4e58af924fceece354e493933e9f030 SHA512 9ed9fd4d457e97792794368f490628b7c113bb0259f8da9c67f23f7fc2a486a050799a1afa3bd993d9f784b0d518e34a8cbbd18c5dc0776a081c13bbd490318d
+DIST festvox_cmu_us_aup_cg.tar.gz 25411353 BLAKE2B 77781a61f8b9bacae805961ad0dfff94dd78b7972101face83f5856cdb4bd74565517164da469bb446003b9bdb35c6fad6795ced59887ef621f5867577134efd SHA512 5560c2348aea34ca038dc0df2d68b3e2ea80ae1c52a8ddc21800a380cfdcd2e26a8cea705456ebd2c895969f328dde9e48a2fec22742a616a47a3fc1b054870e
+DIST festvox_cmu_us_awb_cg.tar.gz 52653464 BLAKE2B e1454039ee423b5332f6ceb4a905c4e829b0d9eeb9fa5dc3e8a9cc30c8a28715f4adb7771ddce372ab081c19c118472cb5d760147da196fa64580c08d95b2379 SHA512 b1a21799ac8b7980566d91613a9aa64a9df1342cca96df20e14730af127f147605d7b8150ef295ad95f2056f7ff2c69525e0858f23bb5052d56fcd1a99a3b749
+DIST festvox_cmu_us_axb_cg.tar.gz 33366609 BLAKE2B 5fdb0a973d4eae78af2a03bab16fa876f5b7f4bb943b55bcdf7c879daa9f1b0f87ff18730d9903c82c7d6746ab7d87fb097efac099f077e756ccee90294fd548 SHA512 ebdcb3107fca257fb70c1450c1ff132ee6287d5f40380ff659fe56d0d7bc5ea6de6d1fde3cd75513550153d80e21da080a62ec0f296143f394efd00f3083f6c2
+DIST festvox_cmu_us_bdl_cg.tar.gz 48585561 BLAKE2B 8aa1d21e9370b0ec8dea2a4c77ca20ac711370b56b3c6b8c71a5c9e7c63f674c9438bec053472f47b700fe6fec6d1d0eb40b8df1c4b65a21f6c9a0a21c3b9cd6 SHA512 9738d54c2440d48009ebde50e54934b552ed9f07e4c424d649b5e60bc446330207f1bc54761db10cf749aaea4c0895fdf21351e0261c9998739a312b7af13cbf
+DIST festvox_cmu_us_clb_cg.tar.gz 60291539 BLAKE2B b584971711509f534b65edf7100bee434b9db14aa91c2f1e5a5a9ba24eae4fc27f2471d0386a8c99c49dd574c08a1da29e0e437667685793d3526a91701020d8 SHA512 489277cd56bcde9ede2234bf73c2f340cb02d2f119b4a8e55e8c22e397bd858daf1b4fa39c6581b6a18456e5803c82f2e9af76ef33b1c7c1fe019a1972fc92e1
+DIST festvox_cmu_us_eey_cg.tar.gz 27386247 BLAKE2B ed8a7936ef1fd26510081334911ea31f6d537bf1f12be72355a72de084d631ae8af6f0232f532e82aeee9dfee9200e584aad0ca35d5f695c8bd177b8b5685dad SHA512 0b7a769b3f69bc59dd28ebd3f02bf8599289155846586bf25108dec6cbcb6423b00f5b567af8826bed04ed5d0299cea183d35071b0d33bc2be40c594e660dace
+DIST festvox_cmu_us_fem_cg.tar.gz 27862694 BLAKE2B 8adc202b633dcd7ec8a67af1eb5a42a2ec4895d65f33412b4dbf04c0137d5dd6065e3c6ab9a1b9974e6c036afd359c3fb6c46f0b3987e7fbf6f7d97af75e3d76 SHA512 01850a6b22b0c9b9c774e6e98f8e1e24560dbe5f6ecd958e7f84f01a2619169a1e7f9e2b424445058a0a40b3cba79f5b2fc237f5f515412f4411890d2789730e
+DIST festvox_cmu_us_gka_cg.tar.gz 31435703 BLAKE2B 199f80e969577db70328b1d157d14153c111a65d1943a884cf264d2e114b34138744e53a24cf8c37f1c69211820559fed5c388a1adfe116c843af25a8e3625ac SHA512 8d9e5976846f1086ef187edaa97ab7e32b7270a976f4f79d1e3091ac17dcf6e866e10f73b254690e437db5c4bb0d1b6db52afe99cef8d427c2e11e8c0b711c19
+DIST festvox_cmu_us_jmk_cg.tar.gz 49029518 BLAKE2B 641ba501af70b50ee092e710060a5dac66e5a8a341b67431c52bf455c87471fdf70767551aa81ec4afe4d9dc1498517cd464ddd13b113216872d088953816853 SHA512 6f7ce407a8184dceb2bab3386865efd11d582bdeea629e2ffe8d6d6d01701fd26ca64d5afc847cb3760c719698841d91b00f81835fa7b88f69eeeac81a36a5e8
+DIST festvox_cmu_us_ksp_cg.tar.gz 56267723 BLAKE2B 00616d687103701ab604a09a27cb12a1ab8fc5576c584eb73d58dc2fc3995e5a96d50a36774338567dda6ab3bbfef158c45677cf0a1f9428c03ff5d82c9b1bbc SHA512 c23daad955cc6228e5d408e4a3d6ad17e71b1abf28ac648e513f22fa08141d500397108f7577acc7c04ffad5e9d7923487d4b091ace4bcf6ed3c431971c729b6
+DIST festvox_cmu_us_ljm_cg.tar.gz 25290139 BLAKE2B cdce93ab1e4e04d4e80a205ea0bbcc43fa54afc73d974a3a76c683fc24dd4979ecdf971d9c5e2a81778b46e002f7a72da57e79aa03f8fb939ffa421111cb6a66 SHA512 4b8396e80a719fd9fbb48cc60cbb1e9c247ddf5f8277debcc71f5601b4875facf5dda3e6628cfaaf67f4a6021f873638a5220569bbf0345c2bbe2aca6e9fefa7
+DIST festvox_cmu_us_lnh_cg.tar.gz 57103859 BLAKE2B 7b6af04d9e6f708aa8093fea16846e9b5f5c55ef27ac53ad36b96d94157d8aeb877c8a159097469236bb014d31797e04833d35d4f1a65cf9384cfe171f0f6f1c SHA512 65a9c3ea5fc0c769c5c169cd55a374e2e2cbbdda02b5317f046d44e2cba9fbf457d1b65555ca3db4dd7077a95fb851a329b4355ad4e6f4809e5b13239931a4e5
+DIST festvox_cmu_us_rms_cg.tar.gz 61933982 BLAKE2B 9f05a0dd84e1a3506cc3efe2844904bb36ceba8f54983f3de049915eb88658f192b6177174caa1a61ff9ad96b4963c59b246f2bdedb28da1e337b324adf05af1 SHA512 5496c9767090591ad9525ad4cefbacbaa47ff27476a547e29f3d59c4c8c50d281bd9764c08f40abb3b7e6f49dbff3a03b408a83aa613aa886ebdde7ed8e5196f
+DIST festvox_cmu_us_rxr_cg.tar.gz 35326978 BLAKE2B 2d02ffe55ace0112684ad53456e5daa93dd6944c0ca681961cfd6ad9a139e188c8675745d7ab67b1f1bf1d37a40409ae3e22261a93d7b7230e69cc916d566fc9 SHA512 535da3b9d3607de462ff982c9a1df0aa1ff18401a2828b90030aa4b1ee9b89abc3d10705e8c679bd13013370816f8be416f7fa8380266c653bf5113188fb84e7
+DIST festvox_cmu_us_slp_cg.tar.gz 33526412 BLAKE2B 8380cfd3cd29ef2e7fb017421406d2b751e7ab31bab8acae06459d1a7833905c59a861ee4d0d6d2a74357a491f5953d7225cc549a06c86b0442cc74b4736f2f7 SHA512 ed492cefdf0df6893fcaa38b3df5890c8143df76353f6664e259ca28c551e1b9a6607cf638fb6366bf593d373210c1044d2f51c0876557ef01875b1ab20678fe
+DIST festvox_cmu_us_slt_cg.tar.gz 53141934 BLAKE2B 729af6d4211d22d472e05272292be46189504bcea03b18d763002f7569033bd4b1c86e1ae5f6682c0c86a57863091ad2b0960ba1a20c6b341026f6ffbbe8e0a0 SHA512 8dc516fcd280ce5ca2915deb9cc0d7704f37815f443342007383d8708ae7419c05357ad48f460b2171ab1417ec7c3c033442d9d3f4a631df49f6f2a9826c2c28
+DIST festvox_kallpc16k.tar.gz 4103663 BLAKE2B ef48acf4f934282d5abb0e2cb8779526d19daf38b84aceaa8f817dea66cfe5a385bfbbf9fbee2461b53931f81101cb5d899e68c76dc26f9bcbe6d6e085301afd SHA512 5d8a57840220c00e281842fd38f16887b7403dc487782947eae4a0b2d36f951aa957182bb36a1b4824e40288a5ccc2e635f38f5a09277a0da8099aa6bf24d892
+DIST festvox_rablpc16k.tar.gz 5369131 BLAKE2B 852232916b9b4b8d801e0f9cd4e453bc1aea3fcdea74b0ece6b6053e9f32a62f41013bfd09db4ee4c7ad59566ee2bb7b2df5b25afac5c45a1d203c76e0917dbc SHA512 c97a19f82eca65553846b83ae355852266408de1268b4d80af50d6e212a833d98f414d1e9b85751c8f074b285f01ead93cc42208e3c0bbca330524a35e936835
+DIST speech_tools-2.5.0-release.tar.gz 1328624 BLAKE2B 445dd5a5e39c02352a850fd92de5b3852ae382a4bd013dccb3fdd46b0b22ce0bd10d089f9e860ae3d3e73a489b20b7c8b78335e57a49e40ae01b0f4997d55315 SHA512 013540a5252efb57633f442143a51bc87aac719dfb46c8f47e750322d19dac9b504f55125462a2ee74a6b0bd2661a63a1fc73a8c3c6d2886e38b136a80447fd7
diff --git a/app-accessibility/festival/festival-2.5.ebuild b/app-accessibility/festival/festival-2.5.ebuild
new file mode 100644
index 00000000..14dde5dd
--- /dev/null
+++ b/app-accessibility/festival/festival-2.5.ebuild
@@ -0,0 +1,159 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Copyright 2020 The Trinity Desktop Project
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit toolchain-funcs user
+
+# Don't use Gentoo mirrors
+RESTRICT="mirror"
+
+MY_PV="${PV}.0-release"
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="Festival Text to Speech engine"
+HOMEPAGE="http://www.cstr.ed.ac.uk/projects/festival/"
+SITE="http://www.festvox.org/packed/${PN}/${PV}"
+SRC_URI="${SITE}/${MY_P}.tar.gz
+ ${SITE}/festlex_CMU.tar.gz
+ ${SITE}/festlex_OALD.tar.gz
+ ${SITE}/festlex_POSLEX.tar.gz
+ ${SITE}/speech_tools-${MY_PV}.tar.gz
+ ${SITE}/voices/festvox_cmu_indic_ben_rm_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_indic_guj_ad_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_indic_guj_dp_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_indic_guj_kt_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_indic_hin_ab_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_indic_kan_plv_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_indic_mar_aup_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_indic_mar_slp_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_indic_pan_amp_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_indic_tam_sdr_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_indic_tel_kpn_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_indic_tel_sk_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_indic_tel_ss_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_us_aew_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_us_ahw_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_us_aup_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_us_awb_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_us_axb_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_us_bdl_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_us_clb_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_us_eey_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_us_fem_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_us_gka_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_us_jmk_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_us_ksp_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_us_ljm_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_us_lnh_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_us_rms_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_us_rxr_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_us_slp_cg.tar.gz
+ ${SITE}/voices/festvox_cmu_us_slt_cg.tar.gz
+ ${SITE}/voices/festvox_kallpc16k.tar.gz
+ ${SITE}/voices/festvox_rablpc16k.tar.gz"
+
+LICENSE="FESTIVAL HPND BSD rc regexp-UofT free-noncomm"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+DEPEND="=app-accessibility/speech-tools-${PV}
+ sys-libs/ncurses"
+RDEPEND="${DEPEND}
+ media-sound/alsa-utils
+"
+
+S="${WORKDIR}/festival"
+
+DOCS=( "ACKNOWLEDGMENTS" "NEWS" "README.md" "examples" )
+
+pkg_setup() {
+ enewuser festival -1 -1 -1 audio
+}
+
+src_prepare() {
+ # Tell festival to use the speech-tools we have installed
+ sed -i -e "s:\(EST=\).*:\1${EPREFIX}/usr/share/speech-tools:" "${S}"/config/config.in
+ sed -i -e "s:\$(EST)/lib:/usr/$(get_libdir):" "${S}"/config/project.mak
+
+ # Fix the reference to /usr/lib/festival
+ sed -i -e "s:\(FTLIBDIR.*=.*\)\$.*:\1${EPREFIX}/usr/share/festival:" "${S}"/config/project.mak
+
+ # Fix path for examples in festival.scm
+ sed -i -e "s:\.\./examples/:${EPREFIX}/usr/share/doc/${PF}/examples/:" "${S}"/lib/festival.scm
+
+ eapply "${FILESDIR}/${PN}-2.1-ldflags.patch"
+ eapply "${FILESDIR}/${PN}-2.1-init-scm.patch"
+ eapply "${FILESDIR}/${PN}-2.1-gentoo-system.patch"
+
+ # Copy what we need for MultiSyn from speech_tools
+ cp -pr "${WORKDIR}"/speech_tools/base_class "${S}"/src/modules/MultiSyn
+
+ eapply "${FILESDIR}/${P}-gcc4.7.patch"
+
+ echo "(Parameter.set 'Audio_Command \"aplay -q -c 1 -t raw -f s16 -r \$SR \$FILE\")" >> "${S}"/lib/siteinit.scm
+ echo "(Parameter.set 'Audio_Method 'Audio_Command)" >> "${S}"/lib/siteinit.scm
+
+ eapply_user
+}
+
+src_configure() {
+ econf
+}
+
+src_compile() {
+ emake -j1 PROJECT_LIBDEPS="" REQUIRED_LIBDEPS="" LOCAL_LIBDEPS="" \
+ OPTIMISE_CXXFLAGS="${CXXFLAGS}" OPTIMISE_CCFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}" \
+ CC="$(tc-getCC)" CXX="$(tc-getCXX)"
+}
+
+src_install() {
+ # Install the binaries
+ dobin src/main/festival
+ dobin lib/etc/*Linux*/audsp
+ dolib.a src/lib/libFestival.a
+
+ # Install the main libraries
+ insinto /usr/share/festival
+ doins -r lib/*
+
+ # Install documenatation and examples.
+ einstalldocs
+
+ # Need to fix saytime, etc. to look for festival in the correct spot
+ for ex in "${D}"/usr/share/doc/${PF}/examples/*.sh; do
+ exnoext=${ex%%.sh}
+ chmod a+x "${exnoext}"
+ sed -i -e "s:${S}/bin/festival:/usr/bin/festival:" "${exnoext}" || die
+ done
+
+ # Install the header files
+ insinto /usr/include/festival
+ doins src/include/*.h
+
+ insinto /etc/festival
+ doins lib/site*
+
+ # Install the docs
+ doman "${S}"/doc/{festival.1,festival_client.1}
+
+ # create the directory where our log file will go.
+ diropts -m 0755 -o festival -g audio
+ keepdir /var/log/festival
+}
+
+pkg_postinst() {
+ elog
+ elog " Useful examples include saytime, text2wave. For example, try:"
+ elog " \"/usr/share/doc/${PF}/examples/saytime\""
+ elog
+ elog " Or for something more fun:"
+ elog ' "echo "Gentoo can speak" | festival --tts"'
+ elog
+ elog "This version also allows configuration of site specific"
+ elog "initialization in /etc/festival/siteinit.scm and"
+ elog "variables in /etc/festival/sitevars.scm."
+ elog
+}
diff --git a/app-accessibility/festival/files/festival-2.1-gentoo-system.patch b/app-accessibility/festival/files/festival-2.1-gentoo-system.patch
new file mode 100644
index 00000000..a09e1379
--- /dev/null
+++ b/app-accessibility/festival/files/festival-2.1-gentoo-system.patch
@@ -0,0 +1,124 @@
+diff -uNr festival.orig/config/systems/GentooLinux.mak festival/config/systems/GentooLinux.mak
+--- festival.orig/config/systems/GentooLinux.mak 1969-12-31 19:00:00.000000000 -0500
++++ festival/config/systems/GentooLinux.mak 2011-02-09 10:43:28.000000000 -0500
+@@ -0,0 +1,42 @@
++ ###########################################################################
++ ## ##
++ ## Centre for Speech Technology Research ##
++ ## University of Edinburgh, UK ##
++ ## Copyright (c) 1996 ##
++ ## All Rights Reserved. ##
++ ## ##
++ ## Permission is hereby granted, free of charge, to use and distribute ##
++ ## this software and its documentation without restriction, including ##
++ ## without limitation the rights to use, copy, modify, merge, publish, ##
++ ## distribute, sublicense, and/or sell copies of this work, and to ##
++ ## permit persons to whom this work is furnished to do so, subject to ##
++ ## the following conditions: ##
++ ## 1. The code must retain the above copyright notice, this list of ##
++ ## conditions and the following disclaimer. ##
++ ## 2. Any modifications must be clearly marked as such. ##
++ ## 3. Original authors' names are not deleted. ##
++ ## 4. The authors' names are not used to endorse or promote products ##
++ ## derived from this software without specific prior written ##
++ ## permission. ##
++ ## ##
++ ## THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ##
++ ## DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ##
++ ## ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ##
++ ## SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ##
++ ## FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ##
++ ## WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ##
++ ## AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ##
++ ## ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ##
++ ## THIS SOFTWARE. ##
++ ## ##
++ ###########################################################################
++ ## ##
++ ## Author: William Hubbs <williamh@gentoo.org> ##
++ ## -------------------------------------------------------------------- ##
++ ## Settings for Gentoo Linux distributions. ##
++ ## ##
++ ###########################################################################
++
++MANDIR=$(INSTALL_PREFIX)/share/man
++# Gentoo does not use termcap
++OS_LIBS = $(LDFLAGS) -ldl -lncurses
+diff -uNr festival.orig/config/systems/Makefile festival/config/systems/Makefile
+--- festival.orig/config/systems/Makefile 2011-02-09 10:41:01.000000000 -0500
++++ festival/config/systems/Makefile 2011-02-09 10:44:22.000000000 -0500
+@@ -41,6 +41,7 @@
+ Linux.mak \
+ RedHatLinux.mak \
+ DebianGNULinux.mak \
++ GentooLinux.mak \
+ alpha_Linux.mak \
+ alpha_OSF1V4.0.mak \
+ alpha_RedHatLinux.mak \
+@@ -94,6 +95,7 @@
+ sparc_SunOS5.8.mak \
+ sparc_SunOS5.mak \
+ unknown_DebianGNULinux.mak \
++ unknown_GentooLinux.mak \
+ unknown_Linux.mak \
+ unknown_RedHatLinux.mak \
+ power_macintosh_Darwin.mak \
+diff -uNr festival.orig/config/systems/unknown_GentooLinux.mak festival/config/systems/unknown_GentooLinux.mak
+--- festival.orig/config/systems/unknown_GentooLinux.mak 1969-12-31 19:00:00.000000000 -0500
++++ festival/config/systems/unknown_GentooLinux.mak 2011-02-09 10:45:34.000000000 -0500
+@@ -0,0 +1,41 @@
++###########################################################################
++## ##
++## Centre for Speech Technology Research ##
++## University of Edinburgh, UK ##
++## Copyright (c) 1996 ##
++## All Rights Reserved. ##
++## ##
++## Permission is hereby granted, free of charge, to use and distribute ##
++## this software and its documentation without restriction, including ##
++## without limitation the rights to use, copy, modify, merge, publish, ##
++## distribute, sublicense, and/or sell copies of this work, and to ##
++## permit persons to whom this work is furnished to do so, subject to ##
++## the following conditions: ##
++## 1. The code must retain the above copyright notice, this list of ##
++## conditions and the following disclaimer. ##
++## 2. Any modifications must be clearly marked as such. ##
++## 3. Original authors' names are not deleted. ##
++## 4. The authors' names are not used to endorse or promote products ##
++## derived from this software without specific prior written ##
++## permission. ##
++## ##
++## THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ##
++## DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ##
++## ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ##
++## SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ##
++## FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ##
++## WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ##
++## AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ##
++## ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ##
++## THIS SOFTWARE. ##
++## ##
++###########################################################################
++## ##
++## Author: William Hubbs <williamh@gentoo.org> ##
++## -------------------------------------------------------------------- ##
++## Settings for Gentoo Linux distributions. ##
++## ##
++###########################################################################
++
++include $(EST)/config/systems/Linux.mak
++include $(EST)/config/systems/GentooLinux.mak
+diff -uNr festival.orig/config/system.sh festival/config/system.sh
+--- festival.orig/config/system.sh 2011-02-09 10:41:01.000000000 -0500
++++ festival/config/system.sh 2011-02-09 10:42:10.000000000 -0500
+@@ -70,6 +70,10 @@
+ then
+ OSTYPE=DebianGNULinux
+ OSREV=`cat /etc/debian_version`
++ elif [ -f "/etc/gentoo-release" ]
++ then
++ OSTYPE=GentooLinux
++ OSREV=""
+ else
+ # Generic unknown GNU/Linux system.
+ OSTYPE=Linux
diff --git a/app-accessibility/festival/files/festival-2.1-init-scm.patch b/app-accessibility/festival/files/festival-2.1-init-scm.patch
new file mode 100644
index 00000000..efe575b0
--- /dev/null
+++ b/app-accessibility/festival/files/festival-2.1-init-scm.patch
@@ -0,0 +1,24 @@
+--- festival/lib/init.scm 2006-09-15 01:34:32.000000000 -0500
++++ festival/lib/init.scm 2006-09-15 01:50:30.000000000 -0500
+@@ -52,8 +52,8 @@
+
+ ;;; A chance to set various variables to a local setting e.g.
+ ;;; lexdir, voices_dir audio etc etc.
+-(if (probe_file (path-append libdir "sitevars.scm"))
+- (load (path-append libdir "sitevars.scm")))
++(if (probe_file "/etc/festival/sitevars.scm")
++ (load "/etc/festival/sitevars.scm"))
+
+ ;;; CSTR siod extensions
+ (require 'cstr)
+@@ -133,8 +133,8 @@
+ ;;;
+ ;;; Local site initialization, if the file exists load it
+ ;;;
+-(if (probe_file (path-append libdir "siteinit.scm"))
+- (load (path-append libdir "siteinit.scm")))
++(if (probe_file "/etc/festival/siteinit.scm")
++ (load "/etc/festival/siteinit.scm"))
+
+ ;;; User initialization, if a user has a personal customization
+ ;;; file loaded it
diff --git a/app-accessibility/festival/files/festival-2.1-ldflags.patch b/app-accessibility/festival/files/festival-2.1-ldflags.patch
new file mode 100644
index 00000000..e6559c8a
--- /dev/null
+++ b/app-accessibility/festival/files/festival-2.1-ldflags.patch
@@ -0,0 +1,12 @@
+diff -uNr festival.orig/config/systems/Linux.mak festival/config/systems/Linux.mak
+--- festival.orig/config/systems/Linux.mak 2011-02-09 10:08:20.000000000 -0500
++++ festival/config/systems/Linux.mak 2011-02-09 10:09:04.000000000 -0500
+@@ -46,7 +46,7 @@
+ JAVAH=/usr/bin/javah
+
+ TCL_LIBRARY = -ltcl
+-OS_LIBS = -ldl
++OS_LIBS = $(OPTIMISE_LDFLAGS) -ldl
+
+ ## the native audio module for this type of system
+ NATIVE_AUDIO_MODULE = LINUX16
diff --git a/app-accessibility/festival/files/festival-2.5-gcc4.7.patch b/app-accessibility/festival/files/festival-2.5-gcc4.7.patch
new file mode 100644
index 00000000..87de8a57
--- /dev/null
+++ b/app-accessibility/festival/files/festival-2.5-gcc4.7.patch
@@ -0,0 +1,20 @@
+diff -pur festival-orig/src/modules/MultiSyn/base_class/EST_TSimpleVector.cc festival/src/modules/MultiSyn/base_class/EST_TSimpleVector.cc
+--- festival-orig/src/modules/MultiSyn/base_class/EST_TSimpleVector.cc 2017-09-04 17:54:03.000000000 +0200
++++ festival/src/modules/MultiSyn/base_class/EST_TSimpleVector.cc 2018-03-14 09:31:57.950640675 +0100
+@@ -42,6 +42,7 @@
+
+ #include "EST_TSimpleVector.h"
+ #include "EST_matrix_support.h"
++#include <cstring>
+ #include <fstream>
+ #include "EST_cutils.h"
+ #include <string.h>
+@@ -50,7 +51,7 @@ template<class T> void EST_TSimpleVector
+ {
+ if (this->p_column_step==1 && a.p_column_step==1)
+ {
+- resize(a.n(), FALSE);
++ this->resize(a.n(), FALSE);
+ memcpy((void *)(this->p_memory), (const void *)(a.p_memory), this->n() * sizeof(T));
+ }
+ else
diff --git a/app-accessibility/speech-tools/Manifest b/app-accessibility/speech-tools/Manifest
new file mode 100644
index 00000000..74e0e0f3
--- /dev/null
+++ b/app-accessibility/speech-tools/Manifest
@@ -0,0 +1 @@
+DIST speech_tools-2.5.0-release.tar.gz 1328624 BLAKE2B 445dd5a5e39c02352a850fd92de5b3852ae382a4bd013dccb3fdd46b0b22ce0bd10d089f9e860ae3d3e73a489b20b7c8b78335e57a49e40ae01b0f4997d55315 SHA512 013540a5252efb57633f442143a51bc87aac719dfb46c8f47e750322d19dac9b504f55125462a2ee74a6b0bd2661a63a1fc73a8c3c6d2886e38b136a80447fd7
diff --git a/app-accessibility/speech-tools/files/speech-tools-2.1-underlinking.patch b/app-accessibility/speech-tools/files/speech-tools-2.1-underlinking.patch
new file mode 100644
index 00000000..35011735
--- /dev/null
+++ b/app-accessibility/speech-tools/files/speech-tools-2.1-underlinking.patch
@@ -0,0 +1,11 @@
+--- speech_tools.orig/config/systems/GentooLinux.mak.old 2013-11-24 01:49:44.000000000 +0200
++++ speech_tools/config/systems/GentooLinux.mak 2013-11-24 13:04:14.327758435 +0200
+@@ -38,6 +38,7 @@
+ ###########################################################################
+
+ MANDIR=$(INSTALL_PREFIX)/share/man
++GENTOO_ALSA_LIBS=$(shell pkg-config --libs alsa)
+ GENTOO_CURSES_LIBS=$(shell pkg-config --libs ncurses)
+ # Gentoo does not use termcap
+-OS_LIBS = $(GENTOO_CURSES_LIBS) $(LDFLAGS) -ldl
++OS_LIBS = $(GENTOO_ALSA_LIBS) $(GENTOO_CURSES_LIBS) $(LDFLAGS) -ldl
diff --git a/app-accessibility/speech-tools/files/speech-tools-2.5-all-GentooLinux.patch b/app-accessibility/speech-tools/files/speech-tools-2.5-all-GentooLinux.patch
new file mode 100644
index 00000000..4e9cab1f
--- /dev/null
+++ b/app-accessibility/speech-tools/files/speech-tools-2.5-all-GentooLinux.patch
@@ -0,0 +1,124 @@
+diff --git speech_tools-orig/config/systems/GentooLinux.mak speech_tools/config/systems/GentooLinux.mak
+--- /dev/null
++++ speech_tools/config/systems/GentooLinux.mak
+@@ -0,0 +1,42 @@
++ ###########################################################################
++ ## ##
++ ## Centre for Speech Technology Research ##
++ ## University of Edinburgh, UK ##
++ ## Copyright (c) 1996 ##
++ ## All Rights Reserved. ##
++ ## ##
++ ## Permission is hereby granted, free of charge, to use and distribute ##
++ ## this software and its documentation without restriction, including ##
++ ## without limitation the rights to use, copy, modify, merge, publish, ##
++ ## distribute, sublicense, and/or sell copies of this work, and to ##
++ ## permit persons to whom this work is furnished to do so, subject to ##
++ ## the following conditions: ##
++ ## 1. The code must retain the above copyright notice, this list of ##
++ ## conditions and the following disclaimer. ##
++ ## 2. Any modifications must be clearly marked as such. ##
++ ## 3. Original authors' names are not deleted. ##
++ ## 4. The authors' names are not used to endorse or promote products ##
++ ## derived from this software without specific prior written ##
++ ## permission. ##
++ ## ##
++ ## THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ##
++ ## DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ##
++ ## ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ##
++ ## SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ##
++ ## FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ##
++ ## WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ##
++ ## AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ##
++ ## ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ##
++ ## THIS SOFTWARE. ##
++ ## ##
++ ###########################################################################
++ ## ##
++ ## Author: William Hubbs <williamh@gentoo.org> ##
++ ## -------------------------------------------------------------------- ##
++ ## Settings for Gentoo Linux distributions. ##
++ ## ##
++ ###########################################################################
++
++MANDIR=$(INSTALL_PREFIX)/share/man
++# Gentoo does not use termcap
++OS_LIBS = $(LDFLAGS) -ldl -lncurses
+diff -pur speech_tools-orig/config/systems/Makefile speech_tools/config/systems/Makefile
+--- speech_tools-orig/config/systems/Makefile 2010-04-19 21:18:26.000000000 +0200
++++ speech_tools/config/systems/Makefile 2018-03-14 07:42:46.502929681 +0100
+@@ -41,6 +41,7 @@ SYSTEMS = \
+ Linux.mak \
+ RedHatLinux.mak \
+ DebianGNULinux.mak \
++ GentooLinux.mak \
+ alpha_Linux.mak \
+ alpha_OSF1V4.0.mak \
+ alpha_RedHatLinux.mak \
+@@ -96,6 +97,7 @@ SYSTEMS = \
+ sparc_SunOS5.mak \
+ sparc_unknown.mak \
+ unknown_DebianGNULinux.mak \
++ unknown_GentooLinux.mak \
+ unknown_Linux.mak \
+ unknown_RedHatLinux.mak \
+ power_macintosh_Darwin.mak \
+diff -pur speech_tools-orig/config/systems/unknown_GentooLinux.mak speech_tools/config/systems/unknown_GentooLinux.mak
+--- /dev/null
++++ speech_tools/config/systems/unknown_GentooLinux.mak
+@@ -0,0 +1,41 @@
++ ###########################################################################
++ ## ##
++ ## Centre for Speech Technology Research ##
++ ## University of Edinburgh, UK ##
++ ## Copyright (c) 1996 ##
++ ## All Rights Reserved. ##
++ ## ##
++ ## Permission is hereby granted, free of charge, to use and distribute ##
++ ## this software and its documentation without restriction, including ##
++ ## without limitation the rights to use, copy, modify, merge, publish, ##
++ ## distribute, sublicense, and/or sell copies of this work, and to ##
++ ## permit persons to whom this work is furnished to do so, subject to ##
++ ## the following conditions: ##
++ ## 1. The code must retain the above copyright notice, this list of ##
++ ## conditions and the following disclaimer. ##
++ ## 2. Any modifications must be clearly marked as such. ##
++ ## 3. Original authors' names are not deleted. ##
++ ## 4. The authors' names are not used to endorse or promote products ##
++ ## derived from this software without specific prior written ##
++ ## permission. ##
++ ## ##
++ ## THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ##
++ ## DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ##
++ ## ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ##
++ ## SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ##
++ ## FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ##
++ ## WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ##
++ ## AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ##
++ ## ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ##
++ ## THIS SOFTWARE. ##
++ ## ##
++ ###########################################################################
++ ## ##
++ ## Author: William Hubbs <williamh@gentoo.org> ##
++ ## -------------------------------------------------------------------- ##
++ ## Settings for Gentoo Linux distributions. ##
++ ## ##
++ ###########################################################################
++
++ include $(EST)/config/systems/Linux.mak
++ include $(EST)/config/systems/GentooLinux.mak
+diff -pur speech_tools-orig/config/system.sh speech_tools/config/system.sh
+--- speech_tools-orig/config/system.sh 2002-12-27 22:20:14.000000000 +0100
++++ speech_tools/config/system.sh 2018-03-14 07:42:46.502929681 +0100
+@@ -70,6 +70,10 @@ if [ "$OSTYPE" = Linux ]
+ then
+ OSTYPE=DebianGNULinux
+ OSREV=`cat /etc/debian_version`
++ elif [ -f "/etc/gentoo-release" ]
++ then
++ OSTYPE=GentooLinux
++ OSREV=
+ else
+ # Generic unknown GNU/Linux system.
+ OSTYPE=Linux
diff --git a/app-accessibility/speech-tools/files/speech-tools-2.5-all-base_class.patch b/app-accessibility/speech-tools/files/speech-tools-2.5-all-base_class.patch
new file mode 100644
index 00000000..87b4a456
--- /dev/null
+++ b/app-accessibility/speech-tools/files/speech-tools-2.5-all-base_class.patch
@@ -0,0 +1,12 @@
+diff --git a/base_class/Makefile b/base_class/Makefile
+index 7a5d802..d2deabc 100644
+--- a/base_class/Makefile
++++ b/base_class/Makefile
+@@ -72,7 +72,3 @@ FILES = $(SRCS) EST_Pathname_win32.cc $(T) $(H)\
+ ALL = .buildlib $(BUILD_DIRS)
+
+ include $(TOP)/config/common_make_rules
+-
+-# Always compile with -O3 as its an important function
+-rateconv.o:
+- $(CXX_COMMAND) -O3 rateconv.cc -o rateconv.o
diff --git a/app-accessibility/speech-tools/files/speech-tools-2.5-all-etcpath.patch b/app-accessibility/speech-tools/files/speech-tools-2.5-all-etcpath.patch
new file mode 100644
index 00000000..1730d669
--- /dev/null
+++ b/app-accessibility/speech-tools/files/speech-tools-2.5-all-etcpath.patch
@@ -0,0 +1,18 @@
+diff -pur speech_tools-orig/main/siod_main.cc speech_tools/main/siod_main.cc
+--- speech_tools-orig/main/siod_main.cc 2013-10-15 00:13:51.000000000 +0200
++++ speech_tools/main/siod_main.cc 2018-03-14 07:55:28.652641361 +0100
+@@ -222,10 +222,10 @@ static void siod_lisp_vars(void)
+ cons(flocons(subminor),NIL))));
+
+ EST_Pathname etcdircommon = est_libdir;
+- etcdircommon += "etc";
++ etcdircommon += "etc/";
+
+- EST_Pathname etcdir = etcdircommon;
+- etcdir += est_ostype;
++ EST_Pathname etcdir = {{HORRIBLELIBARCHKLUDGE}};
++ etcdir += "festival/etc/";
+
+ // Modify my PATH to include these directories
+ siod_set_lval("etc-path",cons(rintern(etcdir),
+Only in speech_tools/main: siod_main.cc.orig
diff --git a/app-accessibility/speech-tools/files/speech-tools-2.5-all-gcc42.patch b/app-accessibility/speech-tools/files/speech-tools-2.5-all-gcc42.patch
new file mode 100644
index 00000000..173d3b9d
--- /dev/null
+++ b/app-accessibility/speech-tools/files/speech-tools-2.5-all-gcc42.patch
@@ -0,0 +1,81 @@
+diff --git a/config/compilers/Makefile b/config/compilers/Makefile
+index 3d3d5bb..e21bf9b 100644
+--- a/config/compilers/Makefile
++++ b/config/compilers/Makefile
+@@ -41,7 +41,7 @@ COMPILERS = gcc.mak gcc27.mak gcc28.mak gcc295.mak \
+ egcs.mak gcc27emx.mak intel80.mak \
+ suncc.mak suncc40.mak \
+ jolt.mak jdk.mak jdk12.mak none.mak \
+- jikes.mak gcc296.mak gcc30.mak gcc31.mak gcc32.mak
++ jikes.mak gcc296.mak gcc30.mak gcc31.mak gcc32.mak gcc42.mak
+
+ FILES = Makefile $(COMPILERS) gcc_defaults.mak suncc_defaults.mak jdk_defaults.mak jikes_defaults.mak
+
+diff --git a/config/compilers/gcc42.mak b/config/compilers/gcc42.mak
+new file mode 100644
+index 0000000..3bbf897
+--- /dev/null
++++ b/config/compilers/gcc42.mak
+@@ -0,0 +1,62 @@
++ ###########################################################################
++ ## ##
++ ## Centre for Speech Technology Research ##
++ ## University of Edinburgh, UK ##
++ ## Copyright (c) 1999 ##
++ ## All Rights Reserved. ##
++ ## ##
++ ## Permission is hereby granted, free of charge, to use and distribute ##
++ ## this software and its documentation without restriction, including ##
++ ## without limitation the rights to use, copy, modify, merge, publish, ##
++ ## distribute, sublicense, and/or sell copies of this work, and to ##
++ ## permit persons to whom this work is furnished to do so, subject to ##
++ ## the following conditions: ##
++ ## 1. The code must retain the above copyright notice, this list of ##
++ ## conditions and the following disclaimer. ##
++ ## 2. Any modifications must be clearly marked as such. ##
++ ## 3. Original authors' names are not deleted. ##
++ ## 4. The authors' names are not used to endorse or promote products ##
++ ## derived from this software without specific prior written ##
++ ## permission. ##
++ ## ##
++ ## THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ##
++ ## DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ##
++ ## ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ##
++ ## SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ##
++ ## FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ##
++ ## WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ##
++ ## AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ##
++ ## ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ##
++ ## THIS SOFTWARE. ##
++ ## ##
++ ###########################################################################
++ ## ##
++ ## Author: William Hubbs (williamh@gentoo.org) ##
++ ## Date: Sun Aug 25 2002 ##
++ ## -------------------------------------------------------------------- ##
++ ## Settings for GCC-4.2 ##
++ ## ##
++ ###########################################################################
++
++include $(EST)/config/compilers/gcc_defaults.mak
++
++ifndef GCC42
++ GCC42 = gcc
++endif
++
++CC= $(GCC42)
++CXX = g++
++
++COMPILER_DESC=gcc-4.[234]
++
++SHARED_CCFLAGS = -fPIC
++SHARED_CXXFLAGS = -fPIC
++SHARED_LINKFLAGS =
++
++ ifndef GCC_MAKE_SHARED_LIB
++ MAKE_SHARED_LIB = $(CXX) -shared -o XXX -Wl,-soname,YYY
++ else
++ MAKE_SHARED_LIB = $(GCC_MAKE_SHARED_LIB)
++ endif
++
++STATIC_LINKFLAGS = -Dstatic
diff --git a/app-accessibility/speech-tools/files/speech-tools-2.5-all-gcc43-include.patch b/app-accessibility/speech-tools/files/speech-tools-2.5-all-gcc43-include.patch
new file mode 100644
index 00000000..66c19a24
--- /dev/null
+++ b/app-accessibility/speech-tools/files/speech-tools-2.5-all-gcc43-include.patch
@@ -0,0 +1,23 @@
+diff -pur speech_tools-orig/base_class/EST_TSimpleMatrix.cc speech_tools/base_class/EST_TSimpleMatrix.cc
+--- speech_tools-orig/base_class/EST_TSimpleMatrix.cc 2013-04-13 14:51:56.000000000 +0200
++++ speech_tools/base_class/EST_TSimpleMatrix.cc 2018-03-14 07:48:57.169248488 +0100
+@@ -42,6 +42,7 @@
+
+ #include "EST_TSimpleMatrix.h"
+ #include "EST_TVector.h"
++#include <cstring>
+ #include <fstream>
+ #include <iostream>
+ #include "EST_cutils.h"
+diff -pur speech_tools-orig/base_class/EST_TSimpleVector.cc speech_tools/base_class/EST_TSimpleVector.cc
+--- speech_tools-orig/base_class/EST_TSimpleVector.cc 2013-04-13 14:52:21.000000000 +0200
++++ speech_tools/base_class/EST_TSimpleVector.cc 2018-03-14 07:48:57.169248488 +0100
+@@ -42,6 +42,7 @@
+
+ #include "EST_TSimpleVector.h"
+ #include "EST_matrix_support.h"
++#include <cstring>
+ #include <fstream>
+ #include "EST_cutils.h"
+ #include <string.h>
+Only in speech_tools/base_class: EST_TSimpleVector.cc.orig
diff --git a/app-accessibility/speech-tools/files/speech-tools-2.5-all-gentoo-config.patch b/app-accessibility/speech-tools/files/speech-tools-2.5-all-gentoo-config.patch
new file mode 100644
index 00000000..2c1cc147
--- /dev/null
+++ b/app-accessibility/speech-tools/files/speech-tools-2.5-all-gentoo-config.patch
@@ -0,0 +1,25 @@
+diff --git a/config/config.in b/config/config.in
+index 8edebc8..53f71d6 100644
+--- a/config/config.in
++++ b/config/config.in
+@@ -56,16 +56,16 @@ CONFIGURATION =
+ ##
+ ## OPTIMISE=4 will turn off DEBUG
+
+-OPTIMISE=3
++OPTIMISE=0
+ WARN=1
+ # VERBOSE=1
+-#DEBUG=1
++DEBUG=0
+ # PROFILE=gprof
+-#SHARED=2
++SHARED=2
+
+ ## Directory specific selections which override the above
+
+-OPTIMISE_sigpr = 3
++#OPTIMISE_sigpr = 3
+
+ ###########################################################################
+ ## Feature selection.
diff --git a/app-accessibility/speech-tools/files/speech-tools-2.5-all-ldflags-fix.patch b/app-accessibility/speech-tools/files/speech-tools-2.5-all-ldflags-fix.patch
new file mode 100644
index 00000000..3fb59d7a
--- /dev/null
+++ b/app-accessibility/speech-tools/files/speech-tools-2.5-all-ldflags-fix.patch
@@ -0,0 +1,12 @@
+diff -pur speech_tools-orig/config/rules/defaults.mak speech_tools/config/rules/defaults.mak
+--- speech_tools-orig/config/rules/defaults.mak 2001-04-04 13:55:32.000000000 +0200
++++ speech_tools/config/rules/defaults.mak 2018-03-14 07:57:50.330139925 +0100
+@@ -196,6 +196,6 @@ endif
+ ## Link a program (not including libraries)
+
+ ifndef LINK_COMMAND
+- LINK_COMMAND = $(CXX) $(LINKFLAGS) $(TEMPLATES)
++ LINK_COMMAND = $(CXX) $(LINKFLAGS) $(OS_LIBS) $(TEMPLATES)
+ endif
+
+Only in speech_tools/config/rules: defaults.mak.orig
diff --git a/app-accessibility/speech-tools/files/speech-tools-2.5-all-mixed-cxxflag-cflag-fix.patch b/app-accessibility/speech-tools/files/speech-tools-2.5-all-mixed-cxxflag-cflag-fix.patch
new file mode 100644
index 00000000..796fdf9c
--- /dev/null
+++ b/app-accessibility/speech-tools/files/speech-tools-2.5-all-mixed-cxxflag-cflag-fix.patch
@@ -0,0 +1,12 @@
+diff -uNr speech_tools.orig/config/compilers/gcc_defaults.mak speech_tools/config/compilers/gcc_defaults.mak
+--- speech_tools.orig/config/compilers/gcc_defaults.mak 2012-11-28 18:33:27.000000000 -0500
++++ speech_tools/config/compilers/gcc_defaults.mak 2012-11-28 18:33:46.000000000 -0500
+@@ -48,7 +48,7 @@
+ COMPILER_VERSION_COMMAND=$(CXX) -v 2>&1 | tail -1 | sed -e 's/^....//'
+
+ CFLAGS = $(GCC_SYSTEM_OPTIONS) $(CC_OTHER_FLAGS)
+-CXXFLAGS = $(GCC_SYSTEM_OPTIONS) -fno-implicit-templates $(CC_OTHER_FLAGS) $(OMP_OPTS) $(OMP_DEFS)
++CXXFLAGS = $(GCC_SYSTEM_OPTIONS) -fno-implicit-templates $(CXX_OTHER_FLAGS) $(OMP_OPTS) $(OMP_DEFS)
+
+ DEBUG_CCFLAGS = -g
+ DEBUG_CXXFLAGS = -g
diff --git a/app-accessibility/speech-tools/files/speech-tools-2.5-all-ncurses-tinfo.patch b/app-accessibility/speech-tools/files/speech-tools-2.5-all-ncurses-tinfo.patch
new file mode 100644
index 00000000..8fd110aa
--- /dev/null
+++ b/app-accessibility/speech-tools/files/speech-tools-2.5-all-ncurses-tinfo.patch
@@ -0,0 +1,11 @@
+diff -uNr speech_tools.orig/config/systems/GentooLinux.mak speech_tools/config/systems/GentooLinux.mak
+--- speech_tools.orig/config/systems/GentooLinux.mak 2013-08-06 22:35:28.000000000 -0400
++++ speech_tools/config/systems/GentooLinux.mak 2013-08-06 22:36:18.000000000 -0400
+@@ -38,5 +38,6 @@
+ ###########################################################################
+
+ MANDIR=$(INSTALL_PREFIX)/share/man
++GENTOO_CURSES_LIBS=$(shell pkg-config --libs ncurses)
+ # Gentoo does not use termcap
+-OS_LIBS = $(LDFLAGS) -ldl -lncurses
++OS_LIBS = $(GENTOO_CURSES_LIBS) $(LDFLAGS) -ldl
diff --git a/app-accessibility/speech-tools/files/speech-tools-2.5-all-remove-shared-refs.patch b/app-accessibility/speech-tools/files/speech-tools-2.5-all-remove-shared-refs.patch
new file mode 100644
index 00000000..0900a8fc
--- /dev/null
+++ b/app-accessibility/speech-tools/files/speech-tools-2.5-all-remove-shared-refs.patch
@@ -0,0 +1,95 @@
+From 067e73c8563247bc317ba5e632d5a56ccdf0de0c Mon Sep 17 00:00:00 2001
+From: William Hubbs <w.d.hubbs@gmail.com>
+Date: Fri, 17 Jul 2009 01:14:33 -0500
+Subject: [PATCH 8/9] remove shared setup references
+
+---
+ scripts/build_docbook_index.prl | 2 --
+ scripts/cxx_to_docbook.prl | 2 --
+ scripts/pm.prl | 2 --
+ scripts/raw_to_xgraph.prl | 2 --
+ scripts/resynth.sh | 2 --
+ scripts/tex_to_images.prl | 2 --
+ 6 files changed, 0 insertions(+), 12 deletions(-)
+
+diff --git a/scripts/build_docbook_index.prl b/scripts/build_docbook_index.prl
+index f07a234..728324d 100644
+--- a/scripts/build_docbook_index.prl
++++ b/scripts/build_docbook_index.prl
+@@ -35,8 +35,6 @@ sub useage
+ END
+ }
+
+-#__SHARED_SETUP__
+-
+ $title='';
+ $mode='debug';
+ $verbose=0;
+diff --git a/scripts/cxx_to_docbook.prl b/scripts/cxx_to_docbook.prl
+index 9bde698..a8f61c4 100644
+--- a/scripts/cxx_to_docbook.prl
++++ b/scripts/cxx_to_docbook.prl
+@@ -37,8 +37,6 @@ sub useage
+ END
+ }
+
+-#__SHARED_SETUP__
+-
+ $level=0;
+ $title=undef;
+ $chapter='chapter';
+diff --git a/scripts/pm.prl b/scripts/pm.prl
+index c2be12a..31bb512 100755
+--- a/scripts/pm.prl
++++ b/scripts/pm.prl
+@@ -56,8 +56,6 @@ sub useage
+ END
+ }
+
+-#__SHARED_SETUP__
+-
+ while ($#ARGV>=0)
+ {
+ if ($ARGV[0] eq "-f")
+diff --git a/scripts/raw_to_xgraph.prl b/scripts/raw_to_xgraph.prl
+index 8924981..f280ecf 100644
+--- a/scripts/raw_to_xgraph.prl
++++ b/scripts/raw_to_xgraph.prl
+@@ -56,8 +56,6 @@ Convert raw sample data into something xgraph can plot.
+ END
+ }
+
+-#__SHARED_SETUP__
+-
+ $stream = STDIN;
+ $sample_rate = 1;
+
+diff --git a/scripts/resynth.sh b/scripts/resynth.sh
+index 0cdc63d..f978fc8 100755
+--- a/scripts/resynth.sh
++++ b/scripts/resynth.sh
+@@ -63,8 +63,6 @@ EOF
+ exit $1
+ }
+
+-#__SHARED_SETUP__
+-
+ invert=false
+ voiced=''
+ pre=0
+diff --git a/scripts/tex_to_images.prl b/scripts/tex_to_images.prl
+index 08cb604..6799428 100644
+--- a/scripts/tex_to_images.prl
++++ b/scripts/tex_to_images.prl
+@@ -79,8 +79,6 @@ END
+ exit($_[0]);
+ }
+
+-#__SHARED_SETUP__
+-
+ $out_pattern="image_NNN.FFF";
+ $scale=3;
+ $over=2;
+--
+1.6.3.3
+
diff --git a/app-accessibility/speech-tools/files/speech-tools-2.5-all-sharedlib.patch b/app-accessibility/speech-tools/files/speech-tools-2.5-all-sharedlib.patch
new file mode 100644
index 00000000..ec3a38dd
--- /dev/null
+++ b/app-accessibility/speech-tools/files/speech-tools-2.5-all-sharedlib.patch
@@ -0,0 +1,52 @@
+diff --git a/config/rules/defaults.mak b/config/rules/defaults.mak
+index aca1573..cb3fcba 100644
+--- a/config/rules/defaults.mak
++++ b/config/rules/defaults.mak
+@@ -69,15 +69,21 @@ ifdef N
+ MADE_FROM_ABOVE:=$(N)
+ endif
+
++ifneq ($(SHARED),0)
++ LIBTYPE=so
++else
++ LIBTYPE=a
++endif
++
+ ifndef PROJECT_LIBDEPS
+- PROJECT_LIBDEPS = $(foreach l,$(PROJECT_LIBRARIES),$(PROJECT_LIBRARY_DIR_$(l))/lib$(l).a)
++ PROJECT_LIBDEPS = $(foreach l,$(PROJECT_LIBRARIES),$(PROJECT_LIBRARY_DIR_$(l))/lib$(l).$(LIBTYPE))
+ endif
+ ifndef PROJECT_LIBS
+ PROJECT_LIBS = $(foreach l,$(PROJECT_LIBRARIES),-L$(PROJECT_LIBRARY_DIR_$(l)) -l$(l))
+ endif
+
+ ifndef REQUIRED_LIBDEPS
+- REQUIRED_LIBDEPS = $(foreach l,$(REQUIRED_LIBRARIES),$(REQUIRED_LIBRARY_DIR_$(l))/lib$(l).a)
++ REQUIRED_LIBDEPS = $(foreach l,$(REQUIRED_LIBRARIES),$(REQUIRED_LIBRARY_DIR_$(l))/lib$(l).$(LIBTYPE))
+ endif
+ ifndef REQUIRED_LIBS
+ REQUIRED_LIBS = $(foreach l,$(REQUIRED_LIBRARIES),-L$(REQUIRED_LIBRARY_DIR_$(l)) -l$(l))
+diff --git a/config/rules/library.mak b/config/rules/library.mak
+index 0181988..2038239 100644
+--- a/config/rules/library.mak
++++ b/config/rules/library.mak
+@@ -103,14 +103,14 @@ endif
+ ###########################################################################
+
+ lib%.so : lib%.a
+- @echo Make Shared Library $*
++ @echo Make Shared Library $(*F)
+ @if [ ! -d shared_space ] ; then mkdir shared_space ; else $(RM) -f shared_space/*.o ; fi
+ @(cd shared_space ; $(AR) x ../$< )
+- @echo Link Shared Library $*
+- if [ -n "$(PROJECT_LIBRARY_NEEDS_SYSLIBS_$*)" ] ; then libs='$(JAVA_PROJECT_LIBS)' ; fi ;\
+- $(subst XXX,$@.$(PROJECT_LIBRARY_VERSION_$*),$(MAKE_SHARED_LIB)) shared_space/*.o $(PROJECT_LIBRARY_USES_$*:%=-L. -l%) $$libs
++ @echo Link Shared Library $(*F)
++ if [ -n "$(PROJECT_LIBRARY_NEEDS_SYSLIBS_$(*F))" ] ; then libs='$(JAVA_PROJECT_LIBS)' ; fi ;\
++ $(subst XXX,$@.$(PROJECT_LIBRARY_VERSION_$(*F)),$(subst YYY,$(@F).$(PROJECT_LIBRARY_VERSION_$(*F)),$(MAKE_SHARED_LIB))) shared_space/*.o $(PROJECT_LIBRARY_USES_$(*F):%=-L. -l%) $$libs
+ @$(RM) -f shared_space/*.o $@
+- @ln -s $@.$(PROJECT_LIBRARY_VERSION_$*) $@
++ @ln -s $(@F).$(PROJECT_LIBRARY_VERSION_$(*F)) $@
+
+ ###########################################################################
+ ## ##
diff --git a/app-accessibility/speech-tools/speech-tools-2.5.ebuild b/app-accessibility/speech-tools/speech-tools-2.5.ebuild
new file mode 100644
index 00000000..618456e8
--- /dev/null
+++ b/app-accessibility/speech-tools/speech-tools-2.5.ebuild
@@ -0,0 +1,130 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Copyright 2020 The Trinity Desktop Project
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit flag-o-matic toolchain-funcs
+
+# Don't use Gentoo mirrors
+RESTRICT="mirror"
+
+MY_P="${P/speech-/speech_}"
+MY_P="${MY_P}.0"
+
+DESCRIPTION="Speech tools for Festival Text to Speech engine"
+HOMEPAGE="http://www.festvox.org"
+SRC_URI="http://www.festvox.org/packed/festival/${PV}/${MY_P}-release.tar.gz"
+
+LICENSE="FESTIVAL HPND BSD rc regexp-UofT"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nas X"
+
+RDEPEND="
+ nas? ( media-libs/nas )
+ X? ( x11-libs/libX11
+ x11-libs/libXt )
+ media-libs/alsa-lib
+ sys-libs/ncurses:0=
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+S="${WORKDIR}/speech_tools"
+
+src_prepare() {
+ # Old patchset, unrolled.
+ eapply "${FILESDIR}/${P}-all-gcc42.patch"
+ eapply "${FILESDIR}/${P}-all-GentooLinux.patch"
+ eapply "${FILESDIR}/${P}-all-sharedlib.patch"
+ eapply "${FILESDIR}/${P}-all-gcc43-include.patch"
+ eapply "${FILESDIR}/${P}-all-remove-shared-refs.patch"
+ eapply "${FILESDIR}/${P}-all-base_class.patch"
+ eapply "${FILESDIR}/${P}-all-etcpath.patch"
+ eapply "${FILESDIR}/${P}-all-gentoo-config.patch"
+ eapply "${FILESDIR}/${P}-all-ldflags-fix.patch"
+ eapply "${FILESDIR}/${P}-all-mixed-cxxflag-cflag-fix.patch"
+ eapply "${FILESDIR}/${P}-all-ncurses-tinfo.patch"
+
+ sed -i -e 's,{{HORRIBLELIBARCHKLUDGE}},"/usr/$(get_libdir)",' \
+ main/siod_main.cc || die
+
+ # WRT Gentoo bug #309983
+ sed -i -e "s:\(GCC_SYSTEM_OPTIONS =\).*:\1:" \
+ "${S}"/config/systems/sparc_SunOS5.mak || die
+
+ # Fix underlinking, Gentoo bug #493204
+ eapply "${FILESDIR}/${PN}-2.1-underlinking.patch"
+
+ eapply_user
+}
+
+src_configure() {
+ local CONFIG=config/config.in
+ sed -i -e 's/@COMPILERTYPE@/gcc42/' ${CONFIG} || die
+ if use nas; then
+ sed -i -e "s/#.*\(INCLUDE_MODULES += NAS_AUDIO\)/\1/" \
+ ${CONFIG} || die
+ fi
+ if ! use X; then
+ sed -i -e "s/-lX11 -lXt//" config/modules/esd_audio.mak || die
+ fi
+ econf
+}
+
+src_compile() {
+ emake -j1 CC="$(tc-getCC)" CXX="$(tc-getCXX)" CXX_OTHER_FLAGS="${CXXFLAGS}" CC_OTHER_FLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dolib.so lib/libest*.so*
+
+ dodoc "${S}"/README.md
+ dodoc "${S}"/lib/cstrutt.dtd
+
+ insinto /usr/share/doc/${PF}
+ doins -r lib/example_data
+
+ insinto /usr/share/speech-tools
+ doins -r config base_class
+
+ insinto /usr/share/speech-tools/lib
+ doins -r lib/siod
+
+ cd include || die
+ insinto /usr/include/speech-tools
+ doins -r *
+ dosym ../../include/speech-tools /usr/share/speech-tools/include
+
+ cd ../bin || die
+ for file in *; do
+ [ "${file}" = "Makefile" ] && continue
+ dobin ${file}
+ dstfile="${D}/usr/bin/${file}"
+ sed -i -e "s:${S}/testsuite/data:/usr/share/speech-tools/testsuite:g" \
+ ${dstfile} || die
+ sed -i -e "s:${S}/bin:/usr/$(get_libdir)/speech-tools:g" \
+ ${dstfile} || die
+ sed -i -e "s:${S}/main:/usr/$(get_libdir)/speech-tools:g" \
+ ${dstfile} || die
+
+ # This just changes LD_LIBRARY_PATH
+ sed -i -e "s:${S}/lib:/usr/$(get_libdir):g" ${dstfile} || die
+ done
+
+ cd "${S}" || die
+ exeinto /usr/$(get_libdir)/speech-tools
+ for file in `find main -perm /111 -type f`; do
+ doexe ${file}
+ done
+
+ #Remove /usr/bin/resynth as it is broken. See Gentoo bug #253556
+ rm "${D}/usr/bin/resynth" || die
+
+ # Remove bcat (only useful for testing on windows, see Gentoo bug #418301).
+ rm "${D}/usr/bin/bcat" || die
+ rm "${D}/usr/$(get_libdir)/speech-tools/bcat" || die
+}