From fb6a7e84128cd7df87023d4e7d224de83057f748 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 6 May 2023 17:34:33 +0100 Subject: gentoo auto-resync : 06:05:2023 - 17:34:33 --- app-text/Manifest.gz | Bin 48428 -> 48425 bytes app-text/stardict/Manifest | 6 +- app-text/stardict/metadata.xml | 2 +- app-text/stardict/stardict-3.0.6-r4.ebuild | 189 ------------------- app-text/stardict/stardict-3.0.6-r5.ebuild | 189 +++++++++++++++++++ .../stardict/stardict-4.0.0_pre20170304-r1.ebuild | 207 --------------------- .../stardict/stardict-4.0.0_pre20170304-r2.ebuild | 207 +++++++++++++++++++++ 7 files changed, 400 insertions(+), 400 deletions(-) delete mode 100644 app-text/stardict/stardict-3.0.6-r4.ebuild create mode 100644 app-text/stardict/stardict-3.0.6-r5.ebuild delete mode 100644 app-text/stardict/stardict-4.0.0_pre20170304-r1.ebuild create mode 100644 app-text/stardict/stardict-4.0.0_pre20170304-r2.ebuild (limited to 'app-text') diff --git a/app-text/Manifest.gz b/app-text/Manifest.gz index 09642e2d83f8..b65711a018cd 100644 Binary files a/app-text/Manifest.gz and b/app-text/Manifest.gz differ diff --git a/app-text/stardict/Manifest b/app-text/stardict/Manifest index a5f8854b2f91..33a15850749f 100644 --- a/app-text/stardict/Manifest +++ b/app-text/stardict/Manifest @@ -3,6 +3,6 @@ DIST QQWry.Dat.bz2 4114875 BLAKE2B 3fb1a3b223b799645fcc7adc3d8158c80551bd1d35689 DIST WyabdcRealPeopleTTS.tar.bz2 84329208 BLAKE2B 1dd9c00e4e914b0d747876aa566db59a4b973b3ec61fa1ed7a55f885d7f415f573f2f8783eca46c565bc52df4ba3576b3a0f4e863b4f7ba688007f6d6b375209 SHA512 1553e62c139ecb005bb04163147d94aa58e4ba7f9ee3172b760c6e4776587c12bf816c42e0131c82195b7c738ec9ee5082f39b974790f5cacd522367919beaa0 DIST stardict-3.0.6.tar.bz2 9341740 BLAKE2B df0ccfbd485dfb514bdcf4edaf92b2faf3c11016b025ca09596adcc12738027395a049d9d27420427acdf5c46923cb43ba521d334f875070f5451b7ff147e36f SHA512 81d93324b6e8954af7c20ea6d2a3054bb564d786a21b1cb541c728da7a18a6e7ddb23e595055ccc77e6866bbb8c89fb4f17023e33664761dbe1ee8cd55768658 DIST stardict-4.0.0_pre20170304.tar.xz 3603012 BLAKE2B c9ac41f1e27c013e9c20e5b5477889cb4933ebaf35629311362ec48e820b10a7492d464ac7eddded697ca49f56f65032a1af36088e8e731643e83532e0586e48 SHA512 ec27bb95069d727fd96cb30f2d7ad94992cc53e55903b373612e29265263ea5da2c8a25f6c9618db50dc38c33efebe13324c2b8eb09b198559a1ee70029f0b6a -EBUILD stardict-3.0.6-r4.ebuild 5433 BLAKE2B 6c70eb2c7393962fcc9c1e1ebbaff57dd897020d599ec0f3f87248b475602d737cb2e29d05dfd526dee762c539101b3419fd87548b079e7e59cf2b32bbcf65d6 SHA512 4e0c91951d25013922c5231470b61d89aca65536d3d197b5abb8f6a49e47241f18ef5c6d6a546e41951a3c9de5486d0b5420e161c7508e18377711c23012349a -EBUILD stardict-4.0.0_pre20170304-r1.ebuild 5873 BLAKE2B f3b306e01aee6412066ce38e42488536a7e48ecf56cf11eee781062ebc23d3125ece7984a1ea2dd2e4c3fb7438df6e527287090f03cb2b04d2277119c3d54f84 SHA512 73d04478cb89451c6ae8671642d30a33aa09d35a75811a4a388851d32c757dec70d6300f902c83f8207d908c7351070bbfb0dad7db015d6f99bf0d7c6563c146 -MISC metadata.xml 2669 BLAKE2B ec9679f3182809ae806b8d5f2735c2b29b20e2832905a4bc95b3af426ecc737b91869db0623d75ea46311a35cd3a1a6bd76dc67dec221fe821329fca1b380270 SHA512 a131d14f75441548ce82a628bfcb4b9ba2cf27480ea7207b31233e64a2260e64e0e8e8d209e4fb701d93ef45dad661d6f9f063b178484ad9f5ee5c1fe9e562ac +EBUILD stardict-3.0.6-r5.ebuild 5436 BLAKE2B 9eb95dafa9d5ae660aed99fdbb126cc646b3f22f5c3e79f383f88cfbb87210568a429b5408c23d777527739cace9bc9c6061a594b1772bb1010b9a3822c2e0c9 SHA512 112f4081d9654251398a0a86b01f9fbf9c52add0c764665ab630042c9841b7c818a2055377f6110265e0675b3d539f6d7ad1f65d61230711f9b92a0ff9f66fcb +EBUILD stardict-4.0.0_pre20170304-r2.ebuild 5876 BLAKE2B bad863b516372c9fc944c35e686fc2ae3bdf6fe675c7d66a60afdcf9ce2640ab9bef0dc2783ea6875a5a4605a15a14ce2e5c27c7ffe54a67d682bbc33d9214eb SHA512 6fce6ff717eecafae1f0695a9e46a5f07be10e8a78f9c659a7063e89dc7e0abc10f65716904212c97697e732501aea0502106709700794746d318caff68f3d7a +MISC metadata.xml 2672 BLAKE2B 8b140015e4f34aa46fef9e4a1dc72058734856614175ef2eb31be57546356dc90c9c74a94ae827f64805b6327730058e27ca617012307f878f807a974519c87f SHA512 8736a3377d59a52776b9c2f2d57a8e77b42b4a9e236e4f96e2957622c995cc77737b58251df83bb5455c41930c910c63c48bbf568aae2b350b4c73647140c0ca diff --git a/app-text/stardict/metadata.xml b/app-text/stardict/metadata.xml index 2734425ad0ed..51c3d5af9d72 100644 --- a/app-text/stardict/metadata.xml +++ b/app-text/stardict/metadata.xml @@ -15,7 +15,7 @@ Enable stardict advertisements plugin Enable calendar support using cal program Enable dict.cn network plugin (for Chinese language) - Enable text to speech synthesizer plugin using app-accessibility/espeak engine + Enable text to speech synthesizer plugin using app-accessibility/espeak-ng engine Enable text to speech synthesizer plugin using app-accessibility/flite engine Enable plugin to read fortune messages using games-misc/fortune-mod. You may consider installing games-misc/fortune-mod-all to get all fortune messages. Enable plugin for unicode symbols description using gnome-extra/gucharmap diff --git a/app-text/stardict/stardict-3.0.6-r4.ebuild b/app-text/stardict/stardict-3.0.6-r4.ebuild deleted file mode 100644 index 717768451a5b..000000000000 --- a/app-text/stardict/stardict-3.0.6-r4.ebuild +++ /dev/null @@ -1,189 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -# NOTE: Even though the *.dict.dz are the same as dictd/freedict's files, -# their indexes seem to be in a different format. So we'll keep them -# seperate for now. - -GNOME2_LA_PUNT=yes - -inherit flag-o-matic gnome2 - -DESCRIPTION="A international dictionary supporting fuzzy and glob style matching" -HOMEPAGE="http://stardict-4.sourceforge.net/" -SRC_URI="mirror://sourceforge/${PN}-4/${P}.tar.bz2 - pronounce? ( https://${PN}-3.googlecode.com/files/WyabdcRealPeopleTTS.tar.bz2 ) - qqwry? ( mirror://gentoo/QQWry.Dat.bz2 )" - -LICENSE="CPL-1.0 GPL-3 LGPL-2" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ppc ppc64 sparc x86" -IUSE="advertisement debug dictdotcn espeak examples +gucharmap -+htmlparse man perl +powerwordparse pronounce qqwry spell -tools updateinfo +wikiparse +wordnet +xdxfparse" - -RESTRICT="test" - -COMMON_DEPEND=" - >=dev-libs/glib-2.16:2 - dev-libs/libsigc++:2= - sys-libs/zlib:= - x11-libs/gdk-pixbuf:2 - >=x11-libs/gtk+-2.20:2 - x11-libs/libX11 - x11-libs/pango - gucharmap? ( gnome-extra/gucharmap:0= ) - spell? ( >=app-text/enchant-1.2:0 ) - tools? ( - dev-db/mysql-connector-c - dev-libs/libpcre:= - dev-libs/libxml2:= - ) -" -RDEPEND="${COMMON_DEPEND} - espeak? ( >=app-accessibility/espeak-1.29 ) - perl? ( dev-lang/perl ) -" -DEPEND="${COMMON_DEPEND} - app-text/docbook-xml-dtd:4.3 - app-text/gnome-doc-utils - dev-libs/libxslt - dev-util/intltool - sys-devel/gettext - virtual/pkgconfig -" - -# docs are messy, installed manually below -DOCS="" - -src_prepare() { - # From Fedora - # Remove unneeded sigc++ header files to make it sure - # that we are using system-wide libsigc++ - # (and these does not work on gcc43) - find dict/src/sigc++* -name \*.h -or -name \*.cc | xargs rm -f || die - - # libsigc++ started to require c++11 support - append-cxxflags "-std=c++11" - - eapply_user - gnome2_src_prepare -} - -src_configure() { - # Hint: EXTRA_ECONF="--enable-gnome-support" and manual install of - # libbonobo-2, libgnome-2, libgnomeui-2, gconf-2 and orbit-2 will - # give you GNOME 2.x support, that is otherwise considered deprecated - # because of the deep GNOME 2.x core library dependencies - - # Festival plugin crashes, bug 188684. Disable for now. - gnome2_src_configure \ - --disable-festival \ - --disable-gnome-support \ - --disable-gpe-support \ - --disable-schemas-install \ - --disable-scrollkeeper \ - $(use_enable advertisement) \ - $(use_enable debug) \ - $(use_enable dictdotcn) \ - $(use_enable espeak) \ - $(use_enable gucharmap) \ - $(use_enable htmlparse) \ - $(use_enable man) \ - $(use_enable powerwordparse) \ - $(use_enable qqwry) \ - $(use_enable spell) \ - $(use_enable tools) \ - $(use_enable updateinfo) \ - $(use_enable wikiparse) \ - $(use_enable wordnet) \ - $(use_enable xdxfparse) -} - -src_install() { - gnome2_src_install - - dodoc AUTHORS ChangeLog README - - docinto dict - dodoc dict/{AUTHORS,ChangeLog,README,TODO} - dodoc dict/doc/{Documentation,FAQ,HowToCreateDictionary,Skins,StarDictFileFormat,TextualDictionaryFileFormat,Translation} - - docinto lib - dodoc lib/{AUTHORS,ChangeLog,README} - - if use examples; then - docinto dict - dodoc dict/doc/stardict-textual-dict* - docompress -x /usr/share/doc/${PF}/dict - fi - - if use qqwry; then - insinto /usr/share/${PN}/data - doins ../QQWry.Dat - fi - - if use pronounce; then - docinto WyabdcRealPeopleTTS - dodoc ../WyabdcRealPeopleTTS/{README,readme.txt} - rm -f ../WyabdcRealPeopleTTS/{README,readme.txt} - insinto /usr/share - doins -r ../WyabdcRealPeopleTTS - fi - - # noinst_PROGRAMS with ${PN}_ prefix from tools/src/Makefile.am wrt #292773 - # and additional scripts from tools dir - if use tools; then - local app - local apps="${PN}-editor pydict2dic olddic2newdic oxford2dic directory2dic - dictd2dic wquick2dic ec50 directory2treedic treedict2dir jdictionary mova - xmlinout soothill kanjidic2 powerword kdic 21tech 21shiji buddhist - tabfile cedict edict duden ${PN}-dict-update degb2utf frgb2utf - jpgb2utf gmx2utf rucn kingsoft wikipedia wikipediaImage babylon - ${PN}2txt ${PN}-verify fest2dict i2e2dict downloadwiki - ooo2dict myspell2dic exc2i2e dictbuilder tabfile2sql KangXi Unihan - xiaoxuetang-ja wubi ydp2dict wordnet lingvosound2resdb - resdatabase2dir dir2resdatabase ${PN}-index sd2foldoc ${PN}-text2bin - ${PN}-bin2text ${PN}-repair" - - use perl && apps+=" dicts-dump.pl ncce2stardict.pl parse-oxford.perl" - - for app in ${apps}; do - if [[ "${app}" =~ ^${PN} ]]; then - dobin "tools/src/${app}" - else - newbin "tools/src/${app}" "${PN}_${app}" - fi - done - - docinto tools - dodoc tools/{AUTHORS,ChangeLog,README} - - if use examples; then - docinto tools - dodoc tools/src/{dictbuilder.{example,readme},example.ifo,example_treedict.tar.bz2} - docompress -x /usr/share/doc/${PF}/tools - fi - fi -} - -pkg_postinst() { - elog - elog "Note: festival text to speech (TTS) plugin is not built. To use festival" - elog 'TTS plugin, please, emerge festival and enable "Use TTS program." at:' - elog '"Preferences -> Dictionary -> Sound" and fill in "Commandline" with:' - elog '"echo %s | festival --tts"' - elog - elog "You will now need to install ${PN} dictionary files. If" - elog "you have not, execute the below to get a list of dictionaries:" - elog " emerge -s ${PN}-" - elog - elog "Additionally you may install any stardict dictionary from the net" - elog "by unpacking it to:" - elog " /usr/share/stardict/dic" - elog - - gnome2_pkg_postinst -} diff --git a/app-text/stardict/stardict-3.0.6-r5.ebuild b/app-text/stardict/stardict-3.0.6-r5.ebuild new file mode 100644 index 000000000000..dff06821c281 --- /dev/null +++ b/app-text/stardict/stardict-3.0.6-r5.ebuild @@ -0,0 +1,189 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +# NOTE: Even though the *.dict.dz are the same as dictd/freedict's files, +# their indexes seem to be in a different format. So we'll keep them +# seperate for now. + +GNOME2_LA_PUNT=yes + +inherit flag-o-matic gnome2 + +DESCRIPTION="A international dictionary supporting fuzzy and glob style matching" +HOMEPAGE="http://stardict-4.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}-4/${P}.tar.bz2 + pronounce? ( https://${PN}-3.googlecode.com/files/WyabdcRealPeopleTTS.tar.bz2 ) + qqwry? ( mirror://gentoo/QQWry.Dat.bz2 )" + +LICENSE="CPL-1.0 GPL-3 LGPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ppc ppc64 sparc x86" +IUSE="advertisement debug dictdotcn espeak examples +gucharmap ++htmlparse man perl +powerwordparse pronounce qqwry spell +tools updateinfo +wikiparse +wordnet +xdxfparse" + +RESTRICT="test" + +COMMON_DEPEND=" + >=dev-libs/glib-2.16:2 + dev-libs/libsigc++:2= + sys-libs/zlib:= + x11-libs/gdk-pixbuf:2 + >=x11-libs/gtk+-2.20:2 + x11-libs/libX11 + x11-libs/pango + gucharmap? ( gnome-extra/gucharmap:0= ) + spell? ( >=app-text/enchant-1.2:0 ) + tools? ( + dev-db/mysql-connector-c + dev-libs/libpcre:= + dev-libs/libxml2:= + ) +" +RDEPEND="${COMMON_DEPEND} + espeak? ( >=app-accessibility/espeak-ng-1.29 ) + perl? ( dev-lang/perl ) +" +DEPEND="${COMMON_DEPEND} + app-text/docbook-xml-dtd:4.3 + app-text/gnome-doc-utils + dev-libs/libxslt + dev-util/intltool + sys-devel/gettext + virtual/pkgconfig +" + +# docs are messy, installed manually below +DOCS="" + +src_prepare() { + # From Fedora + # Remove unneeded sigc++ header files to make it sure + # that we are using system-wide libsigc++ + # (and these does not work on gcc43) + find dict/src/sigc++* -name \*.h -or -name \*.cc | xargs rm -f || die + + # libsigc++ started to require c++11 support + append-cxxflags "-std=c++11" + + eapply_user + gnome2_src_prepare +} + +src_configure() { + # Hint: EXTRA_ECONF="--enable-gnome-support" and manual install of + # libbonobo-2, libgnome-2, libgnomeui-2, gconf-2 and orbit-2 will + # give you GNOME 2.x support, that is otherwise considered deprecated + # because of the deep GNOME 2.x core library dependencies + + # Festival plugin crashes, bug 188684. Disable for now. + gnome2_src_configure \ + --disable-festival \ + --disable-gnome-support \ + --disable-gpe-support \ + --disable-schemas-install \ + --disable-scrollkeeper \ + $(use_enable advertisement) \ + $(use_enable debug) \ + $(use_enable dictdotcn) \ + $(use_enable espeak) \ + $(use_enable gucharmap) \ + $(use_enable htmlparse) \ + $(use_enable man) \ + $(use_enable powerwordparse) \ + $(use_enable qqwry) \ + $(use_enable spell) \ + $(use_enable tools) \ + $(use_enable updateinfo) \ + $(use_enable wikiparse) \ + $(use_enable wordnet) \ + $(use_enable xdxfparse) +} + +src_install() { + gnome2_src_install + + dodoc AUTHORS ChangeLog README + + docinto dict + dodoc dict/{AUTHORS,ChangeLog,README,TODO} + dodoc dict/doc/{Documentation,FAQ,HowToCreateDictionary,Skins,StarDictFileFormat,TextualDictionaryFileFormat,Translation} + + docinto lib + dodoc lib/{AUTHORS,ChangeLog,README} + + if use examples; then + docinto dict + dodoc dict/doc/stardict-textual-dict* + docompress -x /usr/share/doc/${PF}/dict + fi + + if use qqwry; then + insinto /usr/share/${PN}/data + doins ../QQWry.Dat + fi + + if use pronounce; then + docinto WyabdcRealPeopleTTS + dodoc ../WyabdcRealPeopleTTS/{README,readme.txt} + rm -f ../WyabdcRealPeopleTTS/{README,readme.txt} + insinto /usr/share + doins -r ../WyabdcRealPeopleTTS + fi + + # noinst_PROGRAMS with ${PN}_ prefix from tools/src/Makefile.am wrt #292773 + # and additional scripts from tools dir + if use tools; then + local app + local apps="${PN}-editor pydict2dic olddic2newdic oxford2dic directory2dic + dictd2dic wquick2dic ec50 directory2treedic treedict2dir jdictionary mova + xmlinout soothill kanjidic2 powerword kdic 21tech 21shiji buddhist + tabfile cedict edict duden ${PN}-dict-update degb2utf frgb2utf + jpgb2utf gmx2utf rucn kingsoft wikipedia wikipediaImage babylon + ${PN}2txt ${PN}-verify fest2dict i2e2dict downloadwiki + ooo2dict myspell2dic exc2i2e dictbuilder tabfile2sql KangXi Unihan + xiaoxuetang-ja wubi ydp2dict wordnet lingvosound2resdb + resdatabase2dir dir2resdatabase ${PN}-index sd2foldoc ${PN}-text2bin + ${PN}-bin2text ${PN}-repair" + + use perl && apps+=" dicts-dump.pl ncce2stardict.pl parse-oxford.perl" + + for app in ${apps}; do + if [[ "${app}" =~ ^${PN} ]]; then + dobin "tools/src/${app}" + else + newbin "tools/src/${app}" "${PN}_${app}" + fi + done + + docinto tools + dodoc tools/{AUTHORS,ChangeLog,README} + + if use examples; then + docinto tools + dodoc tools/src/{dictbuilder.{example,readme},example.ifo,example_treedict.tar.bz2} + docompress -x /usr/share/doc/${PF}/tools + fi + fi +} + +pkg_postinst() { + elog + elog "Note: festival text to speech (TTS) plugin is not built. To use festival" + elog 'TTS plugin, please, emerge festival and enable "Use TTS program." at:' + elog '"Preferences -> Dictionary -> Sound" and fill in "Commandline" with:' + elog '"echo %s | festival --tts"' + elog + elog "You will now need to install ${PN} dictionary files. If" + elog "you have not, execute the below to get a list of dictionaries:" + elog " emerge -s ${PN}-" + elog + elog "Additionally you may install any stardict dictionary from the net" + elog "by unpacking it to:" + elog " /usr/share/stardict/dic" + elog + + gnome2_pkg_postinst +} diff --git a/app-text/stardict/stardict-4.0.0_pre20170304-r1.ebuild b/app-text/stardict/stardict-4.0.0_pre20170304-r1.ebuild deleted file mode 100644 index b1e6adf80770..000000000000 --- a/app-text/stardict/stardict-4.0.0_pre20170304-r1.ebuild +++ /dev/null @@ -1,207 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -# NOTE: Even though the *.dict.dz are the same as dictd/freedict's files, -# their indexes seem to be in a different format. So we'll keep them -# seperate for now. - -GNOME2_LA_PUNT=yes - -inherit autotools flag-o-matic gnome2 - -DESCRIPTION="A international dictionary supporting fuzzy and glob style matching" -HOMEPAGE="http://stardict-4.sourceforge.net/ - https://github.com/huzheng001/stardict-3" -SRC_URI="https://dev.gentoo.org/~bircoph/distfiles/${P}.tar.xz - pronounce? ( https://${PN}-3.googlecode.com/files/WyabdcRealPeopleTTS.tar.bz2 ) - qqwry? ( mirror://gentoo/QQWry.Dat.bz2 )" -S="${WORKDIR}"/${P} - -LICENSE="CPL-1.0 GPL-3 LGPL-2" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" -IUSE="advertisement cal debug dictdotcn espeak examples flite -fortune gucharmap +htmlparse info man perl +powerwordparse -pronounce qqwry spell tools updateinfo +wikiparse +wordnet -+xdxfparse youdaodict" - -RESTRICT="test" - -COMMON_DEPEND=" - >=dev-libs/glib-2.32:2 - dev-libs/libsigc++:2= - media-libs/libcanberra[gtk3] - sys-libs/zlib:= - x11-libs/gdk-pixbuf:2 - x11-libs/gtk+:3 - x11-libs/libX11 - x11-libs/pango - espeak? ( >=app-accessibility/espeak-1.29 ) - flite? ( app-accessibility/flite ) - gucharmap? ( gnome-extra/gucharmap:2.90= ) - spell? ( >=app-text/enchant-1.2:0 ) - tools? ( - dev-db/mysql-connector-c - dev-libs/expat - dev-libs/libpcre:= - dev-libs/libxml2:= - ) -" -RDEPEND="${COMMON_DEPEND} - info? ( sys-apps/texinfo ) - fortune? ( games-misc/fortune-mod ) - perl? ( dev-lang/perl ) -" -DEPEND="${COMMON_DEPEND} - app-text/docbook-xml-dtd:4.3 - app-text/gnome-doc-utils - dev-libs/libxslt - dev-util/intltool - sys-devel/gettext - virtual/pkgconfig -" - -# docs are messy, installed manually below -DOCS="" - -PATCHES=( "${FILESDIR}/${PN}-4.0.0_pre20160518-tabfile.patch" ) - -src_prepare() { - # From Fedora - # Remove unneeded sigc++ header files to make it sure - # that we are using system-wide libsigc++ - # (and these does not work on gcc43) - find dict/src/sigc++* -name \*.h -or -name \*.cc | xargs rm -f || die - - # libsigc++ started to require c++11 support - append-cxxflags "-std=c++11" - - # bug 604318 - sed -i '/AM_GCONF_SOURCE_2/d' dict/configure.ac || die - - eapply_user - eautoreconf - gnome2_src_prepare -} - -src_configure() { - # Festival plugin crashes, bug 188684. Disable for now. - # Gnome2 support is disabled due to deprecation request, bug 644346 - gnome2_src_configure \ - --disable-darwin-support \ - --disable-festival \ - --disable-gnome-support \ - --disable-gpe-support \ - --disable-maemo-support \ - --disable-schemas-install \ - --disable-scrollkeeper \ - $(use_enable advertisement) \ - $(use_enable cal) \ - $(use_enable debug) \ - $(use_enable dictdotcn) \ - $(use_enable espeak) \ - $(use_enable flite) \ - $(use_enable fortune) \ - $(use_enable gucharmap) \ - $(use_enable htmlparse) \ - $(use_enable info) \ - $(use_enable man) \ - $(use_enable powerwordparse) \ - $(use_enable qqwry) \ - $(use_enable spell) \ - $(use_enable tools) \ - $(use_enable updateinfo) \ - $(use_enable wikiparse) \ - $(use_enable wordnet) \ - $(use_enable xdxfparse) \ - $(use_enable youdaodict) -} - -src_install() { - gnome2_src_install - - dodoc AUTHORS ChangeLog README - - docinto dict - dodoc dict/{AUTHORS,ChangeLog,README,TODO} - dodoc dict/doc/{Documentation,FAQ,HowToCreateDictionary,Skins,StarDictFileFormat,TextualDictionaryFileFormat,Translation} - dodoc -r dict/doc/wiki - - docinto lib - dodoc lib/{AUTHORS,ChangeLog,README} - - if use examples; then - docinto dict - dodoc dict/doc/stardict-textual-dict* - docompress -x /usr/share/doc/${PF}/dict - fi - - if use qqwry; then - insinto /usr/share/${PN}/data - doins ../QQWry.Dat - fi - - if use pronounce; then - docinto WyabdcRealPeopleTTS - dodoc ../WyabdcRealPeopleTTS/{README,readme.txt} - rm -f ../WyabdcRealPeopleTTS/{README,readme.txt} - insinto /usr/share - doins -r ../WyabdcRealPeopleTTS - fi - - # noinst_PROGRAMS with ${PN}_ prefix from tools/src/Makefile.am wrt #292773 - # and additional scripts from tools dir - if use tools; then - local app - local apps="${PN}-editor pydict2dic olddic2newdic oxford2dic directory2dic dictd2dic - wquick2dic ec50 directory2treedic treedict2dir jdictionary mova xmlinout - soothill kanjidic2 powerword kdic 21tech 21shiji buddhist tabfile - cedict edict duden ${PN}-dict-update degb2utf frgb2utf jpgb2utf gmx2utf - rucn kingsoft kingsoft2 wikipedia wikipediaImage babylon ${PN}2txt ${PN}-verify - fest2dict i2e2dict downloadwiki ooo2dict myspell2dic exc2i2e - dictbuilder tabfile2sql KangXi Unihan xiaoxuetang-ja wubi ydp2dict - wordnet lingvosound2resdb resdatabase2dir dir2resdatabase ${PN}-index - sd2foldoc - ${PN}-text2bin ${PN}-bin2text ${PN}-repair" - - use perl && apps+=" dicts-dump.pl ncce2stardict.pl parse-oxford.perl" - - for app in ${apps}; do - if [[ "${app}" =~ ^${PN} ]]; then - dobin "tools/src/${app}" - else - newbin "tools/src/${app}" "${PN}_${app}" - fi - done - - docinto tools - dodoc tools/{AUTHORS,ChangeLog,README} - - if use examples; then - docinto tools - dodoc tools/src/{dictbuilder.{example,readme},example.ifo,example_treedict.tar.bz2} - docompress -x /usr/share/doc/${PF}/tools - fi - fi -} - -pkg_postinst() { - elog - elog "Note: festival text to speech (TTS) plugin is not built. To use festival" - elog 'TTS plugin, please, emerge festival and enable "Use TTS program." at:' - elog '"Preferences -> Dictionary -> Sound" and fill in "Commandline" with:' - elog '"echo %s | festival --tts"' - elog - elog "You will now need to install ${PN} dictionary files. If" - elog "you have not, execute the below to get a list of dictionaries:" - elog " emerge -s ${PN}-" - elog - elog "Additionally you may install any stardict dictionary from the net" - elog "by unpacking it to:" - elog " /usr/share/stardict/dic" - elog - - gnome2_pkg_postinst -} diff --git a/app-text/stardict/stardict-4.0.0_pre20170304-r2.ebuild b/app-text/stardict/stardict-4.0.0_pre20170304-r2.ebuild new file mode 100644 index 000000000000..05ddfeb52ff6 --- /dev/null +++ b/app-text/stardict/stardict-4.0.0_pre20170304-r2.ebuild @@ -0,0 +1,207 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +# NOTE: Even though the *.dict.dz are the same as dictd/freedict's files, +# their indexes seem to be in a different format. So we'll keep them +# seperate for now. + +GNOME2_LA_PUNT=yes + +inherit autotools flag-o-matic gnome2 + +DESCRIPTION="A international dictionary supporting fuzzy and glob style matching" +HOMEPAGE="http://stardict-4.sourceforge.net/ + https://github.com/huzheng001/stardict-3" +SRC_URI="https://dev.gentoo.org/~bircoph/distfiles/${P}.tar.xz + pronounce? ( https://${PN}-3.googlecode.com/files/WyabdcRealPeopleTTS.tar.bz2 ) + qqwry? ( mirror://gentoo/QQWry.Dat.bz2 )" +S="${WORKDIR}"/${P} + +LICENSE="CPL-1.0 GPL-3 LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="advertisement cal debug dictdotcn espeak examples flite +fortune gucharmap +htmlparse info man perl +powerwordparse +pronounce qqwry spell tools updateinfo +wikiparse +wordnet ++xdxfparse youdaodict" + +RESTRICT="test" + +COMMON_DEPEND=" + >=dev-libs/glib-2.32:2 + dev-libs/libsigc++:2= + media-libs/libcanberra[gtk3] + sys-libs/zlib:= + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:3 + x11-libs/libX11 + x11-libs/pango + espeak? ( >=app-accessibility/espeak-ng-1.29 ) + flite? ( app-accessibility/flite ) + gucharmap? ( gnome-extra/gucharmap:2.90= ) + spell? ( >=app-text/enchant-1.2:0 ) + tools? ( + dev-db/mysql-connector-c + dev-libs/expat + dev-libs/libpcre:= + dev-libs/libxml2:= + ) +" +RDEPEND="${COMMON_DEPEND} + info? ( sys-apps/texinfo ) + fortune? ( games-misc/fortune-mod ) + perl? ( dev-lang/perl ) +" +DEPEND="${COMMON_DEPEND} + app-text/docbook-xml-dtd:4.3 + app-text/gnome-doc-utils + dev-libs/libxslt + dev-util/intltool + sys-devel/gettext + virtual/pkgconfig +" + +# docs are messy, installed manually below +DOCS="" + +PATCHES=( "${FILESDIR}/${PN}-4.0.0_pre20160518-tabfile.patch" ) + +src_prepare() { + # From Fedora + # Remove unneeded sigc++ header files to make it sure + # that we are using system-wide libsigc++ + # (and these does not work on gcc43) + find dict/src/sigc++* -name \*.h -or -name \*.cc | xargs rm -f || die + + # libsigc++ started to require c++11 support + append-cxxflags "-std=c++11" + + # bug 604318 + sed -i '/AM_GCONF_SOURCE_2/d' dict/configure.ac || die + + eapply_user + eautoreconf + gnome2_src_prepare +} + +src_configure() { + # Festival plugin crashes, bug 188684. Disable for now. + # Gnome2 support is disabled due to deprecation request, bug 644346 + gnome2_src_configure \ + --disable-darwin-support \ + --disable-festival \ + --disable-gnome-support \ + --disable-gpe-support \ + --disable-maemo-support \ + --disable-schemas-install \ + --disable-scrollkeeper \ + $(use_enable advertisement) \ + $(use_enable cal) \ + $(use_enable debug) \ + $(use_enable dictdotcn) \ + $(use_enable espeak) \ + $(use_enable flite) \ + $(use_enable fortune) \ + $(use_enable gucharmap) \ + $(use_enable htmlparse) \ + $(use_enable info) \ + $(use_enable man) \ + $(use_enable powerwordparse) \ + $(use_enable qqwry) \ + $(use_enable spell) \ + $(use_enable tools) \ + $(use_enable updateinfo) \ + $(use_enable wikiparse) \ + $(use_enable wordnet) \ + $(use_enable xdxfparse) \ + $(use_enable youdaodict) +} + +src_install() { + gnome2_src_install + + dodoc AUTHORS ChangeLog README + + docinto dict + dodoc dict/{AUTHORS,ChangeLog,README,TODO} + dodoc dict/doc/{Documentation,FAQ,HowToCreateDictionary,Skins,StarDictFileFormat,TextualDictionaryFileFormat,Translation} + dodoc -r dict/doc/wiki + + docinto lib + dodoc lib/{AUTHORS,ChangeLog,README} + + if use examples; then + docinto dict + dodoc dict/doc/stardict-textual-dict* + docompress -x /usr/share/doc/${PF}/dict + fi + + if use qqwry; then + insinto /usr/share/${PN}/data + doins ../QQWry.Dat + fi + + if use pronounce; then + docinto WyabdcRealPeopleTTS + dodoc ../WyabdcRealPeopleTTS/{README,readme.txt} + rm -f ../WyabdcRealPeopleTTS/{README,readme.txt} + insinto /usr/share + doins -r ../WyabdcRealPeopleTTS + fi + + # noinst_PROGRAMS with ${PN}_ prefix from tools/src/Makefile.am wrt #292773 + # and additional scripts from tools dir + if use tools; then + local app + local apps="${PN}-editor pydict2dic olddic2newdic oxford2dic directory2dic dictd2dic + wquick2dic ec50 directory2treedic treedict2dir jdictionary mova xmlinout + soothill kanjidic2 powerword kdic 21tech 21shiji buddhist tabfile + cedict edict duden ${PN}-dict-update degb2utf frgb2utf jpgb2utf gmx2utf + rucn kingsoft kingsoft2 wikipedia wikipediaImage babylon ${PN}2txt ${PN}-verify + fest2dict i2e2dict downloadwiki ooo2dict myspell2dic exc2i2e + dictbuilder tabfile2sql KangXi Unihan xiaoxuetang-ja wubi ydp2dict + wordnet lingvosound2resdb resdatabase2dir dir2resdatabase ${PN}-index + sd2foldoc + ${PN}-text2bin ${PN}-bin2text ${PN}-repair" + + use perl && apps+=" dicts-dump.pl ncce2stardict.pl parse-oxford.perl" + + for app in ${apps}; do + if [[ "${app}" =~ ^${PN} ]]; then + dobin "tools/src/${app}" + else + newbin "tools/src/${app}" "${PN}_${app}" + fi + done + + docinto tools + dodoc tools/{AUTHORS,ChangeLog,README} + + if use examples; then + docinto tools + dodoc tools/src/{dictbuilder.{example,readme},example.ifo,example_treedict.tar.bz2} + docompress -x /usr/share/doc/${PF}/tools + fi + fi +} + +pkg_postinst() { + elog + elog "Note: festival text to speech (TTS) plugin is not built. To use festival" + elog 'TTS plugin, please, emerge festival and enable "Use TTS program." at:' + elog '"Preferences -> Dictionary -> Sound" and fill in "Commandline" with:' + elog '"echo %s | festival --tts"' + elog + elog "You will now need to install ${PN} dictionary files. If" + elog "you have not, execute the below to get a list of dictionaries:" + elog " emerge -s ${PN}-" + elog + elog "Additionally you may install any stardict dictionary from the net" + elog "by unpacking it to:" + elog " /usr/share/stardict/dic" + elog + + gnome2_pkg_postinst +} -- cgit v1.2.3