diff options
author | Peter Volkov <pva@gentoo.org> | 2008-12-09 13:51:55 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2008-12-09 13:51:55 +0000 |
commit | 51a49fedf3e4c53831a468e304edefc7a9e1cdca (patch) | |
tree | 814c68f3c22f20461bf4a7b024d05451139f1404 /app-text | |
parent | For tests (diff) | |
download | pva-51a49fedf3e4c53831a468e304edefc7a9e1cdca.tar.gz pva-51a49fedf3e4c53831a468e304edefc7a9e1cdca.tar.bz2 pva-51a49fedf3e4c53831a468e304edefc7a9e1cdca.zip |
For tests
svn path=/; revision=235
Diffstat (limited to 'app-text')
24 files changed, 998 insertions, 0 deletions
diff --git a/app-text/dictd/ChangeLog b/app-text/dictd/ChangeLog new file mode 100644 index 0000000..65b1874 --- /dev/null +++ b/app-text/dictd/ChangeLog @@ -0,0 +1,248 @@ +# ChangeLog for app-text/dictd +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/dictd/ChangeLog,v 1.55 2008/12/01 21:41:45 ranger Exp $ + + 01 Dec 2008; Brent Baude <ranger@gentoo.org> dictd-1.10.11-r2.ebuild, + dictd-1.10.11-r3.ebuild: + Marking dictd-1.10.11-r2.ebuild ppc64 stable and dictd-1.10.11-r3.ebuild + ~ppc64 for bug 244246 + + 14 Nov 2008; Raúl Porcel <armin76@gentoo.org> dictd-1.10.11-r3.ebuild: + ia64 stable wrt #244246 + + 11 Nov 2008; Jeroen Roovers <jer@gentoo.org> dictd-1.10.11-r3.ebuild: + Marked ~hppa (bug #245413). + + 09 Nov 2008; Tobias Klausmann <klausman@gentoo.org> + dictd-1.10.11-r3.ebuild: + Stable on alpha, bug #244246 + + 09 Nov 2008; nixnut <nixnut@gentoo.org> dictd-1.10.11-r2.ebuild, + dictd-1.10.11-r3.ebuild: + Stable on ppc wrt bug 244246 + + 09 Nov 2008; Raúl Porcel <armin76@gentoo.org> dictd-1.10.11-r3.ebuild: + Add ~alpha/~ia64 wrt #245413 + + 08 Nov 2008; Peter Volkov <pva@gentoo.org> -files/1.10.9/dict.conf, + -files/1.10.9/dictd, -files/1.10.9/dictd.conf, -files/1.10.9/dictd.confd, + -files/1.10.9/site.info, files/1.10.11/dictd.initd, + dictd-1.10.11-r3.ebuild: + Disabled tests on bid-endian architectures, bug #244246, updated init + script to make it more steady, bug #245593 thank Erik Hahn for report and + fix. + + 03 Nov 2008; Markus Meier <maekke@gentoo.org> dictd-1.10.11-r3.ebuild: + amd64/x86 stable, bug #244246 + + 03 Nov 2008; Ferris McCormick <fmccor@gentoo.org> dictd-1.10.11-r3.ebuild: + Sparc stable (again), Bug #244246, all tests good with USE='judy dbi'. + + 03 Nov 2008; Peter Volkov <pva@gentoo.org> + files/dictd-1.10.11-automatic-plugins_build-failure.patch: + Added URL to track patch. + +*dictd-1.10.11-r3 (03 Nov 2008) + + 03 Nov 2008; Peter Volkov <pva@gentoo.org> + +files/dictd-1.10.11-automatic-plugins_build-failure.patch, metadata.xml, + -dictd-1.10.11.ebuild, +dictd-1.10.11-r3.ebuild: + Fixed build problem reported by Markus Meier in bug #244246 comment 9. + Dropped keywords due to new dependencies. + + 26 Oct 2008; Ferris McCormick <fmccor@gentoo.org> dictd-1.10.11-r2.ebuild: + Sparc stable, Bug #244246, everything looks good. + + 25 Oct 2008; Peter Volkov <pva@gentoo.org> dictd-1.10.11-r2.ebuild: + Fix tests: give dictd group write permission to tests directory, thank + Ferris McCormick for report in bug #244246 + +*dictd-1.10.11-r2 (14 Sep 2008) + + 14 Sep 2008; Peter Volkov <pva@gentoo.org> files/1.10.11/dictd.initd, + -dictd-1.10.11-r1.ebuild, +dictd-1.10.11-r2.ebuild: + Fixed dictd.conf generation, qoutation issue, thank Mikachu for report. + +*dictd-1.10.11-r1 (12 Sep 2008) + + 12 Sep 2008; Peter Volkov <pva@gentoo.org> -files/1.9.7/dict.conf, + -files/1.9.7/dictd, -files/1.9.7/dictd.conf, -files/1.9.7/dictd.confd, + -files/1.9.7/site.info, +files/dictd-1.10.11-colorit-nopp-fix.patch, + +files/1.10.11/dict.conf, +files/dictd-1.10.11-dictd.8-man.patch, + +files/1.10.11/dictd.conf, +files/dictd-1.10.11-dictd.c-alen-init.patch, + +files/1.10.11/dictd.confd, + +files/dictd-1.10.11-dictdplugin_popen-g++-4.3compile.patch, + +files/1.10.11/dictd.initd, +files/dictd-1.10.11-dictl-konwert.patch, + +files/1.10.11/site.info, +files/dictd-1.10.11-dictl-translit.patch, + +files/1.10.11/colorit.conf, dictd-1.9.11-r1.ebuild, dictd-1.9.14.ebuild, + -dictd-1.10.0.ebuild, -dictd-1.10.9.ebuild, +dictd-1.10.11-r1.ebuild: + Fixed inability to stop dictd, bug #236451, thank David B. Ferguson for + report and fix. Cleaned up ebuild. Install again colorit and provide + config file (back to bug #107376). Create initd user and make initrc + script to work with permissions on its own (back to bug #90657). Took some + patches from debian most important of which backports upstream fix for + first connection denied problem. Removed old. + +*dictd-1.10.11 (14 Apr 2008) + + 14 Apr 2008; Peter Volkov <pva@gentoo.org> +dictd-1.10.11.ebuild: + Version bump. + + 02 Sep 2007; Wulf C. Krueger <philantrop@gentoo.org> files/1.10.9/dictd, + files/1.10.9/dictd.confd: + Changed the init script to better accommodate for UTF-8 locales and + dictionaries and added a note about this to confd. + + 25 Aug 2007; Steve Dibb <beandog@gentoo.org> dictd-1.9.14.ebuild: + amd64 stable + +*dictd-1.10.9 (18 Aug 2007) + + 18 Aug 2007; Wulf C. Krueger <philantrop@gentoo.org> + +files/1.10.9/dict.conf, +files/1.10.9/dictd.conf, +files/1.10.9/dictd, + +files/1.10.9/dictd.confd, +files/1.10.9/site.info, + dictd-1.9.11-r1.ebuild, dictd-1.9.14.ebuild, dictd-1.10.0.ebuild, + +dictd-1.10.9.ebuild: + Removed colorit script and its man page - useless cruft. Fixes bug 107376. + Version bump to 1.10.9 (fixes bug 160125): + - fixed automagic dependencies. + Fixes bug 137653. + - Changed init script as the daemon needs to start with --locale=C. + Fixes bug 101573. + - Added an option for unusual umasks. Fixes bug 90657. + - disabled the plugins; if you need them, file a bug. + + 17 Aug 2007; Wulf C. Krueger <philantrop@gentoo.org> + -files/dictd-1.8.0-gcc33-multiline-string-fix.patch: + Missed obsolete patch when removing dictd-1.8.0. + + 17 Aug 2007; Wulf C. Krueger <philantrop@gentoo.org> + -files/1.8.0/dict.conf, -files/1.8.0/dictd, -files/1.8.0/dictd.conf, + -files/1.8.0/dictd.confd, -files/1.8.0/site.info, -dictd-1.8.0.ebuild: + Removed dictd-1.8.0. It didn't compile anymore, the ebuild was broken and it + was obsoleted by newer versions. + + 28 Apr 2007; Torsten Veller <tove@gentoo.org> dictd-1.9.11-r1.ebuild, + dictd-1.9.14.ebuild, dictd-1.10.0.ebuild: + Use newinitd + + 10 Feb 2007; Fabian Groffen <grobian@gentoo.org> dictd-1.10.0.ebuild: + Dropped ppc-macos keyword, see you in prefix + + 25 Jan 2007; Alexander H. Færøy <eroyf@gentoo.org> dictd-1.9.14.ebuild: + Stable on MIPS. + + 05 Jan 2007; Diego Pettenò <flameeyes@gentoo.org> dictd-1.8.0.ebuild, + dictd-1.9.11-r1.ebuild, dictd-1.9.14.ebuild, dictd-1.10.0.ebuild: + Remove gnuconfig_update usage, leave it to econf. + + 29 Dec 2006; Gustavo Zacarias <gustavoz@gentoo.org> dictd-1.9.14.ebuild: + Stable on sparc + + 09 Sep 2005; Aron Griffis <agriffis@gentoo.org> dictd-1.9.14.ebuild: + Mark 1.9.14 stable on alpha + + 05 Sep 2005; Markus Rothe <corsair@gentoo.org> dictd-1.9.14.ebuild: + Stable on ppc64 + + 20 Aug 2005; Fabian Groffen <grobian@gentoo.org> dictd-1.10.0.ebuild: + Marking ~ppc-macos (bug #103171) + +*dictd-1.10.0 (24 Apr 2005) + + 24 Apr 2005; Anders Rune Jensen <arj@gentoo.org> +dictd-1.10.0.ebuild: + Version bump. Fixes #86738. + + 31 Mar 2005; Aron Griffis <agriffis@gentoo.org> dictd-1.9.14.ebuild: + stable on ia64 + + 04 Mar 2005; Michael Hanselmann <hansmi@gentoo.org> dictd-1.9.14.ebuild: + Stable on ppc, bug 83997. + + 19 Feb 2005; Markus Rothe <corsair@gentoo.org> dictd-1.9.11-r1.ebuild: + Stable on ppc64; bug #81211 + + 20 Dec 2004; Alastair Tse <liquidx@gentoo.org> dictd-1.9.14.ebuild: + fix installation of conf.d and init.d files for 1.9.14 (#74771) + +*dictd-1.9.14 (22 Sep 2004) + + 22 Sep 2004; Alastair Tse <liquidx@gentoo.org> +dictd-1.9.14.ebuild: + version bump (#47461) + + 01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> dictd-1.8.0.ebuild, + dictd-1.9.11-r1.ebuild: + virtual/glibc -> virtual/libc + + 13 Mar 2004; Jason Wever <weeve@gentoo.org> dictd-1.9.11-r1.ebuild: + Stable on sparc. + + 09 Mar 2004; <agriffis@gentoo.org> dictd-1.9.11-r1.ebuild: + stable on alpha and ia64 + + 07 Mar 2004; Alastair Tse <liquidx@gentoo.org> dictd-1.8.0.ebuild: + apply missing patch for 1.8.0 + +*dictd-1.9.11-r1 (09 Feb 2004) + + 09 Feb 2004; Dylan Carlson <absinthe@gentoo.org> files/1.9.11-r1/dict.conf, + files/1.9.11-r1/dictd, files/1.9.11-r1/dictd.conf, + files/1.9.11-r1/dictd.confd, files/1.9.11-r1/site.info: + fixed missing init scripts/etc; closing bug #29688. marked stable for amd64. + +*dictd-1.9.11 (15 Jan 2004) + + 15 Jan 2004; Alastair Tse <liquidx@gentoo.org> dictd-1.9.7.ebuild: + version bump (#38306) and fix conf file locations (#37675) thanks to TGL + <degrenier@easyconnect.fr> + +*dictd-1.9.7 (29 Dec 2003) + + 29 Dec 2003; Seemant Kulleen <seemant@gentoo.org> dictd-1.5.5-r6.ebuild, + dictd-1.8.0.ebuild, dictd-1.9.7.ebuild, files/1.5.5-r2/dict.conf, + files/1.5.5-r2/dictd-run, files/1.5.5-r2/dictd.conf, + files/1.5.5-r2/site.info, files/1.5.5-r2/svc-dictd, + files/1.5.5-r3/dict.conf, files/1.5.5-r3/dictd.conf, + files/1.5.5-r3/rc.dictd, files/1.5.5-r3/site.info, files/1.5.5-r6/dict.conf, + files/1.5.5-r6/dictd.conf, files/1.5.5-r6/dictd.confd, + files/1.5.5-r6/dictd.rc6, files/1.5.5-r6/site.info, files/1.9.7/dict.conf, + files/1.9.7/dictd, files/1.9.7/dictd.conf, files/1.9.7/dictd.confd, + files/1.9.7/site.info: + version bump, thanks to: José Romildo Malaquias <romildo@uber.com.br> in bug + #36638 + +*dictd-1.8.0 (14 Dec 2002) + + 02 Oct 2003; Joshua Kinard <kumba@gentoo.org> dictd-1.8.0.ebuild: + Added a patch to fix a multi-line string issue with gcc-3.3.1. Closes Bug #29227. + Also added gnuconfig support in as dictd does not understand the sparc architecture. + + 19 Jan 2003; Olivier Reisch <doctomoe@gentoo.org> dictd-1.8.0.ebuild: + Added ~ppc keyword + + 14 Dec 2002; Seemant Kulleen <seemant@gentoo.org> dictd-1.8.0.ebuild + files/digest-dictd-1.8.0 files/1.8.0/* : + + Version bump, thanks to: absinthe@pobox.com (Dylan Carlson) in bug #12113 + +*dictd-1.5.5-r6 (1 Feb 2002) + + 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords + + 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog : + + Added initial ChangeLog which should be updated whenever the package is + updated in any way. This changelog is targetted to users. This means that the + comments should well explained and written in clean English. The details about + writing correct changelogs are explained in the skel.ChangeLog file which you + can find in the root directory of the portage repository. + +*dictd-1.5.5-r3 (13 Feb 2003) + + 11 Jul 2003; Daniel Ahlberg <aliz@gentoo.org> : + Added missing changelog entry. + +*dictd-1.5.5-r2 (13 Feb 2003) + + 11 Jul 2003; Daniel Ahlberg <aliz@gentoo.org> : + Added missing changelog entry. diff --git a/app-text/dictd/Manifest b/app-text/dictd/Manifest new file mode 100644 index 0000000..b87c04d --- /dev/null +++ b/app-text/dictd/Manifest @@ -0,0 +1,24 @@ +AUX 1.10.11/colorit.conf 848 RMD160 cebf4cd68e62ee6218bb39f88c655d3bacaa3c25 SHA1 47f9188eee886463c13c853831d073d1711c0392 SHA256 54969fbc6e782013c086e3055f0fa1989ddeb71f5b87e94205d82cefee657d8f +AUX 1.10.11/dict.conf 243 RMD160 5adc267e57f7a4e526d2b6d7ef43ed712d1e6a19 SHA1 acaad0d56fc7fa4f3cc48152ad13cbba265c8faa SHA256 278b6986ebbfe74396a9e287d94a2d8128a83d511df84f02093058081aa12d57 +AUX 1.10.11/dictd.conf 563 RMD160 18b435b7ef4ca3a8da6f38706965857bc1d0e28e SHA1 839fbbb050069cd4600e0cf18580e4b6ae64c43c SHA256 06f1c42afd56a98a736cc252f0271889030d8b57754bc4054905e318508d5e37 +AUX 1.10.11/dictd.confd 204 RMD160 5f8e7e3d62691046beb21db7a589933c9087c2a0 SHA1 b89dde0caae092eb6f232d323f21fe7b43d23d0f SHA256 988c5f8e391519119c456af8cd308c1f323b4701aefff3d662944e3d3499a25a +AUX 1.10.11/dictd.initd 2079 RMD160 cccabf4471907be68a7a43fe2a7aa704ad1ebb33 SHA1 eba116dc66e812ac6e74e2113d0422117a6a89f5 SHA256 f3d6a6bbe34411f19bee071e97c41997148029e8147d7e9842dfb0101fe2e9cb +AUX 1.10.11/site.info 235 RMD160 3bee51beb2ad856a6de1941764158f558c124733 SHA1 5de46179c02e3cf7a6f5360e5399b089db30878d SHA256 cb55e7aaedef73665996f015a07e97e45cd3771775e291d798bf163b0052c0a2 +AUX 1.9.11-r1/dict.conf 243 RMD160 5adc267e57f7a4e526d2b6d7ef43ed712d1e6a19 SHA1 acaad0d56fc7fa4f3cc48152ad13cbba265c8faa SHA256 278b6986ebbfe74396a9e287d94a2d8128a83d511df84f02093058081aa12d57 +AUX 1.9.11-r1/dictd 1764 RMD160 30ba15cec4d7e1ea775979e978c654b09520faf6 SHA1 79eba7d9a7b02e486ff6fa12c54d71fc18e55c3d SHA256 2c0f48f96362302b66c9e5ac823114db366608a4f0079a3a62a1fc9c581f43c1 +AUX 1.9.11-r1/dictd.conf 569 RMD160 e34f2bdb7e72d13392563c302f379485c0ddb9cb SHA1 b42419bcf3d94c66c86cfb827384b0f770f0951e SHA256 8fd62c0d1863c003cdfda0bff4a7d411bcd3fdd2d71c78570336aff86af6d571 +AUX 1.9.11-r1/dictd.confd 135 RMD160 8f18e03081f40c23f54ff6f0efd6eef08256284a SHA1 32262702fa3de44d3370dcc123186c76667601dd SHA256 46b0fabcdacae8db886f732562509c004fd88f01c245664fe208525bbc72b3a1 +AUX 1.9.11-r1/site.info 235 RMD160 3bee51beb2ad856a6de1941764158f558c124733 SHA1 5de46179c02e3cf7a6f5360e5399b089db30878d SHA256 cb55e7aaedef73665996f015a07e97e45cd3771775e291d798bf163b0052c0a2 +AUX dictd-1.10.11-automatic-plugins_build-failure.patch 3618 RMD160 bd6335716ee2af94f3e9169d461819af0be129aa SHA1 78e849127d0c2e56301f06ef8746437c7cde5c94 SHA256 fd0e03c10f65f1b0dd26ba006ef6a48a855024fcbe1c9efece1122bad647a4d1 +AUX dictd-1.10.11-colorit-nopp-fix.patch 428 RMD160 65d43cbcad57ff1cfd5e604b6bf0517d7e98054b SHA1 ea0315f5346b8c2dd76cf62c1b56c1c2008064da SHA256 50b09efb6fa87b51d85f15fc4ef0fd29b5d0682025a2eccf7ca45917ea7f6582 +AUX dictd-1.10.11-dictd.8-man.patch 699 RMD160 e292334a79a8aa60c713f79260f4fa1256294ed6 SHA1 50fa1ab5ac938ad59f532375fcdac41e69b38ea0 SHA256 30df5828de15b724f1a670d61f14c6798ad43f8fcb970e00169c45ad969389b1 +AUX dictd-1.10.11-dictdplugin_popen-g++-4.3compile.patch 459 RMD160 f7e5e465726ca9122050c01d8aed06ab757d8210 SHA1 e4aa46fafaa171313082614a3154c738b2aa7f55 SHA256 0e7a729d981e1828f2d2a13d3b5dbdbf4a8eea4576429602c34f2db774243e68 +AUX dictd-1.10.11-dictl-konwert.patch 1230 RMD160 3498b9645f0a1e3b934eb690e4630b630d01d937 SHA1 d3da0ef994a807f6fdbec734ff4a94fb6bacdf58 SHA256 2400a8bca8a29c3b9aea9322acbe4e1f7ad1bb8781e33c2b170a35ac37e223ee +AUX dictd-1.10.11-dictl-translit.patch 637 RMD160 51f720f44143d9207e5b4c925834952d78e95201 SHA1 2a2cc154c895cb1829bb05d93850f35b2f86549e SHA256 cee93373bdc109b66d8a2a65f4fed9c33b4d4514e649d4125118a964547fb5b8 +AUX dictd-1.11.0-automagic-plugins.patch 823 RMD160 52ee5d9f22d8420ba14fb725d10e8f0e5d485ba9 SHA1 7baff7852905b6453be27619838a5d330cd2956c SHA256 24067b03caa3de3fc54071395463d38f2e46eb4fd9e7eab43143614e1e4425ce +AUX dictd-1.11.0-avoid-libs-in-LDFLAGS.patch 1758 RMD160 3005522be686d8c4fbab369500b0ee2d3e0c96df SHA1 45a99e15faa9cab53c241738865008b77c71b1eb SHA256 a339e7aef82489eb5bcd1f6c5a8ff737ff1a9047a4cdcf8a1624b3221cfa01ed +AUX dictd-1.11.0-plugins-install-fix-and-cleanup.patch 662 RMD160 0ec7f11f5e72d7e23d9f74170ac7ae091dbebacb SHA1 3c56120b5de1520b8a1a9c704c9f7a8c5fb26af9 SHA256 3b25fc16f4c6152dcc5e7d3a4ce8d6cb5511d8e8d89db9982bc3c3a69253f2ef +DIST dictd-1.11.0.tar.gz 417541 RMD160 982d4adbe613110bfd0e249ce8c8df9c222ab304 SHA1 d3ff60e88e9c83e82605481c9fb919eb21a6565f SHA256 88fa5ff0238d77ce82da0e8ccfc89ed3235e6a8da0347871e77cb79a8ffbf2c1 +EBUILD dictd-1.11.0.ebuild 2990 RMD160 252aea24c19ecbe3d9f5450b0bae40e5d283136e SHA1 41c6c55b1c32d99c391699b76f06c1053307f24f SHA256 b445199f3cdaa001b87d93175f0764fe951dc4639046fbce2ee6c18bdf46fcef +MISC ChangeLog 10001 RMD160 5d2b402bf8ebe68d9a782319abe5883d9897a1ce SHA1 cd1c1e5b1850a12aa06812581b7c83eb3b5aa72a SHA256 69a5c85ad64375d946194ac98609fe391205d377c47f684799f92b12bedfb4a9 +MISC metadata.xml 441 RMD160 f87ec33f5dd676dc8bb1a907ef63e2a553cc61cd SHA1 d5c072ccc0b4534417e47597c3fecdba3dedf563 SHA256 271007859ca1ce4c94076aa6e0f1cfa10d9c382ed8776209490544816ad32930 diff --git a/app-text/dictd/dictd-1.11.0.ebuild b/app-text/dictd/dictd-1.11.0.ebuild new file mode 100644 index 0000000..8e86830 --- /dev/null +++ b/app-text/dictd/dictd-1.11.0.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/dictd/dictd-1.10.11-r3.ebuild,v 1.10 2008/12/01 21:41:45 ranger Exp $ + +inherit eutils autotools + +DESCRIPTION="Dictionary Client/Server for the DICT protocol" +HOMEPAGE="http://www.dict.org/" +SRC_URI="mirror://sourceforge/dict/${P}.tar.gz" + +SLOT="0" +# We install rfc so - ISOC-rfc +LICENSE="GPL-2 ISOC-rfc" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="dbi judy" + +# <gawk-3.1.6 makes tests fail. +DEPEND="sys-apps/coreutils + sys-libs/zlib + dev-libs/libmaa + dbi? ( dev-db/libdbi ) + judy? ( dev-libs/judy ) + || ( >=sys-apps/coreutils-6.10 sys-apps/mktemp )" +RDEPEND="${DEPEND} + >=sys-apps/gawk-3.1.6" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/dictd-1.10.11-colorit-nopp-fix.patch" + #epatch "${FILESDIR}/dictd-1.10.11-dictdplugin_popen-g++-4.3compile.patch" + epatch "${FILESDIR}/dictd-1.10.11-dictd.8-man.patch" + epatch "${FILESDIR}/dictd-1.10.11-dictl-konwert.patch" + epatch "${FILESDIR}/dictd-1.10.11-dictl-translit.patch" + epatch "${FILESDIR}/dictd-1.11.0-avoid-libs-in-LDFLAGS.patch" + epatch "${FILESDIR}/dictd-1.11.0-automagic-plugins.patch" + epatch "${FILESDIR}/dictd-1.11.0-plugins-install-fix-and-cleanup.patch" + eautoreconf +} + +src_test() { + if use ppc || use ppc64; then + ewarn "Tests are known to fail on big-endian systems (ppc, ppc64)" + ewarn "Skipping tests." + else + if ! hasq userpriv "${FEATURES}"; then + # If dictd is run as root user (-userpriv) it drops its privileges to + # dictd user and group. Give dictd group write access to test directory. + chown :dictd "${WORKDIR}" "${S}/test" + chmod 770 "${WORKDIR}" "${S}/test" + fi + emake test || die + fi +} + +src_compile() { + econf \ + $(use_with dbi) \ + $(use_with judy) \ + --sysconfdir=/etc/dict + emake || die "make failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "install failed" + + # Install docs + dodoc README TODO ChangeLog ANNOUNCE NEWS || die "installing docs part 1 failed" + dodoc doc/{dicf.ms,rfc.ms,rfc.sh,rfc2229.txt} || die "installing docs part 2 failed" + dodoc doc/{security.doc,toc.ms} || die "installing docs part 3 failed" + + # conf files. + insinto /etc/dict + for f in dict.conf dictd.conf site.info colorit.conf; do + doins "${FILESDIR}/1.10.11/${f}" || die "failed to install ${f}" + done + + # startups for dictd + newinitd "${FILESDIR}/1.10.11/dictd.initd" dictd || die "failed to install dictd.initd" + newconfd "${FILESDIR}/1.10.11/dictd.confd" dictd || die "failed to install dictd.confd" +} + +pkg_preinst() { + enewgroup dictd + enewuser dictd -1 -1 -1 dictd +} + +pkg_postinst() { + echo + elog "To start and use ${PN} you will have to emerge at least one dictionary from" + elog "the app-dicts category with the package name starting with 'dictd-'." + elog "To install all available dictionaries, emerge app-dicts/dictd-dicts." + elog "${PN} will NOT start without at least one dictionary." + echo +} diff --git a/app-text/dictd/files/1.10.11/colorit.conf b/app-text/dictd/files/1.10.11/colorit.conf new file mode 100644 index 0000000..22b00e9 --- /dev/null +++ b/app-text/dictd/files/1.10.11/colorit.conf @@ -0,0 +1,32 @@ +dnl /etc/dictd/colorit.conf vim:ft=m4 +dnl +dnl Sample configuration file for colorit(1) program +dnl +divert(-1) +dnl +dnl Define some useful color variables +dnl +define(`black', `0') +define(`red', `1') +define(`green', `2') +define(`brown', `3') +define(`blue', `4') +define(`magenta', `5') +define(`cyan', `6') +define(`white', `7') +dnl +dnl Mark macro arguments: regexp foreground-color [background-color] +dnl +define(`mark', ``mark "$1"'' `ifelse(`$#', `3', ``"\033[3$2;4$3m"'', ``"\033[3$2m"'')' `"\033[m"') +dnl +divert +mark(`^From.*$',red,cyan) +mark(`^ [^ ]+',green) +mark(`^ *Note:',red) +mark(`{[^{]+}',green) +mark(`^ *\[[^\[]+\]', cyan) +mark(`^[ ]*(adj|n|v|adv)? *[0-9]+[\.:]',cyan) +mark(`^ *\([a-z]+\)',cyan) +mark(`(Syn|Ant|syn|ant):', blue, white) +mark(` (t|i|a|adj|adv|n|v)\. ',cyan) +mark(` (t|i|a|adj|adv|n|v)\.$',cyan) diff --git a/app-text/dictd/files/1.10.11/dict.conf b/app-text/dictd/files/1.10.11/dict.conf new file mode 100644 index 0000000..e06c3d2 --- /dev/null +++ b/app-text/dictd/files/1.10.11/dict.conf @@ -0,0 +1,6 @@ +# This is the configuration file for dict. +# Usually all you will ever need here is the server keywords. +# Refer to the dict manpage for other options. +# It will only check the second server if the first fails +server localhost +server dict.org diff --git a/app-text/dictd/files/1.10.11/dictd.conf b/app-text/dictd/files/1.10.11/dictd.conf new file mode 100644 index 0000000..16e41e5 --- /dev/null +++ b/app-text/dictd/files/1.10.11/dictd.conf @@ -0,0 +1,22 @@ +# dictd configuration file + +global { + # Informational message + site site.info +} + +# who's allowed. You might want to change this. +access { + allow * +} + +# Dictionaries are listed below. During dictd startup the initrc script will +# scan ${DLIBDIR} (see /etc/conf.d/dictd) and adds all of the dictionaries it +# finds here. +# +# NOTE: Initrc script will wipe everything below #LASTLINE and replace it with +# what it finds. So add all of your things above. If this is a problem, report +# bug at https://bugs.gentoo.org, please. +# +# Do not remove next line! +#LASTLINE diff --git a/app-text/dictd/files/1.10.11/dictd.confd b/app-text/dictd/files/1.10.11/dictd.confd new file mode 100644 index 0000000..4db9f00 --- /dev/null +++ b/app-text/dictd/files/1.10.11/dictd.confd @@ -0,0 +1,5 @@ +# If have problems starting dictd in an UTF-8 locale, add an appropriate +# --locale switch to DICTD_OPTS, e. g. "--locale=en_US.utf8" +DICTD_OPTS="-s " +DICTDCONF=/etc/dict/dictd.conf +DLIBDIR=/usr/lib/dict diff --git a/app-text/dictd/files/1.10.11/dictd.initd b/app-text/dictd/files/1.10.11/dictd.initd new file mode 100644 index 0000000..6bf1b1c --- /dev/null +++ b/app-text/dictd/files/1.10.11/dictd.initd @@ -0,0 +1,75 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/dictd/files/1.10.11/dictd.initd,v 1.3 2008/11/08 18:36:21 pva Exp $ + +DICTD_PID="/var/run/dictd.pid" + +prepconfig() { + local TMPCONF INDEXFILES CNT DNAME DICT + if [ ! -e "${DICTDCONF}" ]; then + eerror "Config file ${DICTDCONF} not found." + return 1 + fi + + # if no dictionaries, skip startup. + # The new way of doing this is to scan /usr/lib/dict and tweek the conf + einfo "Scanning for dictionaries..." + if [ ! -d "${DLIBDIR}" ]; then + eerror "${DLIBDIR} doesn't exist, no dictionaries found." + return 1 + fi + pushd ${DLIBDIR} >/dev/null + INDEXFILES=$(ls *.index) + if [ -z "${INDEXFILES}" ]; then + eerror "No dictionaries found at ${DLIBDIR}." + eerror "Please, emerge at least one of app-dicts/dictd-* dictionaries." + return 1 + fi + + TMPCONF=$(mktemp -t dictd.conf.XXXXXXXXXX) + cat ${DICTDCONF} | sed -e '/^#LASTLINE/,$d' > ${TMPCONF} + echo "#LASTLINE" >> ${TMPCONF} + + CNT=0 + for i in ${INDEXFILES}; do + DNAME=$(echo $i | sed -e 's/[.]index$//') + #two possible names for a matching dictionary, check which is there. + if [ -f ${DNAME}.dict.dz ]; then + DICT=${DNAME}.dict.dz + elif [ -f ${DNAME}.dict ];then + DICT=${DNAME}.dict + else + ewarn "Index $i has no matching dictionaray..." + fi + + #ok, go an index, and a dixtionary, append. + echo "database ${DNAME} { data \"${DLIBDIR}/${DICT}\"" >> ${TMPCONF} + echo " index \"${DLIBDIR}/$i\" }" >> ${TMPCONF} + + CNT=$(expr ${CNT} + 1) + done + popd >/dev/null + mv "${TMPCONF}" "${DICTDCONF}" + chown 0:dictd "${DICTDCONF}" + chmod g+r "${DICTDCONF}" + einfo "Done, ${CNT} dictionaries found." +} + +depend() { + need localmount +} + +start() { + prepconfig || return 1 + ebegin "Starting dictd" + start-stop-daemon --start --quiet --pidfile ${DICTD_PID} --exec \ + /usr/sbin/dictd -- --pid-file ${DICTD_PID} ${DICTD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping dictd" + start-stop-daemon --stop --quiet --pidfile ${DICTD_PID} --exec /usr/sbin/dictd + eend $? +} diff --git a/app-text/dictd/files/1.10.11/site.info b/app-text/dictd/files/1.10.11/site.info new file mode 100644 index 0000000..23bfdeb --- /dev/null +++ b/app-text/dictd/files/1.10.11/site.info @@ -0,0 +1,6 @@ +Welcome to your dictionary server dictd! + +This is an example site information file. It should contain information +about any restricted databases and how users can obtain access. If may +also contain other random data as you see fit. + diff --git a/app-text/dictd/files/1.9.11-r1/dict.conf b/app-text/dictd/files/1.9.11-r1/dict.conf new file mode 100644 index 0000000..e06c3d2 --- /dev/null +++ b/app-text/dictd/files/1.9.11-r1/dict.conf @@ -0,0 +1,6 @@ +# This is the configuration file for dict. +# Usually all you will ever need here is the server keywords. +# Refer to the dict manpage for other options. +# It will only check the second server if the first fails +server localhost +server dict.org diff --git a/app-text/dictd/files/1.9.11-r1/dictd b/app-text/dictd/files/1.9.11-r1/dictd new file mode 100755 index 0000000..270e4b5 --- /dev/null +++ b/app-text/dictd/files/1.9.11-r1/dictd @@ -0,0 +1,72 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/dictd/files/1.9.11-r1/dictd,v 1.3 2004/07/14 21:37:57 agriffis Exp $ + +# NB: Config is in /etc/conf.d/dictd + + +prepconfig() { + if [ ! -e ${DICTDCONF} ] + then + eerror "dictd not started. Config file not found." + return 1 + fi + # if no dictionaries, skip startup. + + # The new way of doing this is to scan /usr/lib/dict and tweek the conf + einfo "Scanning for dictionaries..." + if [ ! -d "${DLIBDIR}" ]; then + eerror "${DLIBDIR} doesn't exist, no dictionaries found." + return 1 + fi + pushd ${DLIBDIR} >/dev/null + INDEXFILES=`ls *.index` + if [ -z "$INDEXFILES" ]; then + eerror "No dictionaries installed." + return 1 + fi + + cat $DICTDCONF | sed -e '/^#LASTLINE/,$d' > $TMPCONF + echo "#LASTLINE" >> $TMPCONF + + CNT=0 + for i in $INDEXFILES + do + DNAME=`echo $i | awk -F . '{print $1;}'` + #two possible names for a matching dictionary, check which is there. + if [ -f ${DNAME}.dict.dz ]; then + DICT=${DNAME}.dict.dz + elif [ -f ${DNAME}.dict ];then + DICT=${DNAME}.dict + else + einfo "Index $i has no matching dictionaray..." + fi + + #ok, go an index, and a dixtionary, append. + echo "database $DNAME { data \"${DLIBDIR}/${DICT}\"" >> $TMPCONF + echo " index \"${DLIBDIR}/$i\" }" >> $TMPCONF + + CNT=`expr $CNT + 1` + done + popd >/dev/null + mv ${TMPCONF} ${DICTDCONF} + einfo "Done, $CNT dictionary indexes found." +} + +depend() { + need localmount +} + +start() { + ebegin "Starting dictd" + prepconfig || return 1 + start-stop-daemon --start --quiet --exec /usr/sbin/dictd -- $EARGS + eend $? +} + +stop() { + ebegin "Stopping dictd" + start-stop-daemon --stop --quiet --exec /usr/sbin/dictd + eend $? +} diff --git a/app-text/dictd/files/1.9.11-r1/dictd.conf b/app-text/dictd/files/1.9.11-r1/dictd.conf new file mode 100644 index 0000000..4cded97 --- /dev/null +++ b/app-text/dictd/files/1.9.11-r1/dictd.conf @@ -0,0 +1,22 @@ +# dictd configuration file. +# whipped up by michael conrad tilstra <michael@gentoo.org> + +# Informational message +site site.info + +# who's allowed. You might want to change this. +access { + allow * +} + +# Dictionaries are listed below. +# The initrc script scans /usr/lib/dict and adds all of the dictionaries +# it finds here. +# +# The initrc script will delete everything after the the last line and +# replace it with what it finds. So add all of your things above. +# +# If this is a problem for people, contact me and +# we can work out a different method. +# +#LASTLINE diff --git a/app-text/dictd/files/1.9.11-r1/dictd.confd b/app-text/dictd/files/1.9.11-r1/dictd.confd new file mode 100644 index 0000000..91b9d43 --- /dev/null +++ b/app-text/dictd/files/1.9.11-r1/dictd.confd @@ -0,0 +1,7 @@ +# Config file for /etc/init.d/dictd + +EARGS="-s " +DICTDCONF=/etc/dict/dictd.conf +DLIBDIR=/usr/lib/dict +TMPCONF=/etc/dict/dictd.conf.$$ + diff --git a/app-text/dictd/files/1.9.11-r1/site.info b/app-text/dictd/files/1.9.11-r1/site.info new file mode 100644 index 0000000..23bfdeb --- /dev/null +++ b/app-text/dictd/files/1.9.11-r1/site.info @@ -0,0 +1,6 @@ +Welcome to your dictionary server dictd! + +This is an example site information file. It should contain information +about any restricted databases and how users can obtain access. If may +also contain other random data as you see fit. + diff --git a/app-text/dictd/files/dictd-1.10.11-automatic-plugins_build-failure.patch b/app-text/dictd/files/dictd-1.10.11-automatic-plugins_build-failure.patch new file mode 100644 index 0000000..a3d14a9 --- /dev/null +++ b/app-text/dictd/files/dictd-1.10.11-automatic-plugins_build-failure.patch @@ -0,0 +1,133 @@ +https://sourceforge.net/tracker/index.php?func=detail&aid=2218879&group_id=605&atid=300605 + +=== modified file 'Makefile.in' +--- Makefile.in 2008-11-03 11:47:00 +0000 ++++ Makefile.in 2008-11-03 14:01:26 +0000 +@@ -58,7 +58,7 @@ + EXEEXT=@EXEEXT@ + + CONF_DIR=@sysconfdir@/ +-PLUGIN_DIR=${libexecdir}/ ++PLUGIN_DIR=${libexecdir} + DICT_DIR=${datadir}/ + + CC= @CC@ +@@ -80,6 +80,8 @@ + + LDFLAGS= @LDFLAGS@ @LIBS@ + LIBOBJS= @LIBOBJS@ ++MAALIB= @MAALIB@ ++MAACPPFLAGS= @MAACPPFLAGS@ + EXES= dict dictd dictzip dictfmt + + all: $(EXES) $(LIBRARIES) +@@ -155,19 +157,19 @@ + endif + + %.o: %.c +- $(LIBTOOL) --tag=CC --mode=compile $(CC) -c $(CFLAGS) $< -o $@ ++ $(LIBTOOL) --tag=CC --mode=compile $(CC) -c $(CFLAGS) $(MAACPPFLAGS) $< -o $@ + %.o: %.cpp +- $(LIBTOOL) --tag=CXX --mode=compile $(CXX) -c $(CFLAGS) $< -o $@ ++ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) -c $(CFLAGS) $(MAACPPFLAGS) $< -o $@ + + %: %.o + $(LIBTOOL) --tag=CC --mode=link $(CC) -o $@ -static \ + $(filter-out local_regex local_zlib local_libmaa, $^) \ +- $(OBJS) $(LDFLAGS) -lz ++ $(OBJS) $(LDFLAGS) $(MAALIB) -lz + + dictd: dictd.o + $(LIBTOOL) --tag=CC --mode=link $(CC) -o $@ -static \ + $(filter-out local_regex local_zlib local_libmaa, $^) \ +- $(DBILIB) $(OBJS) $(LDFLAGS) -lz ++ $(DBILIB) $(OBJS) $(LDFLAGS) $(MAALIB) -lz + + include $(srcdir)/deps + +@@ -197,14 +199,14 @@ + $(LIBTOOL) --tag=CC --mode=link $(CC) -o $@ -module \ + $(filter-out local_regex local_zlib local_libmaa, $(^:.o=.lo)) \ + -rpath "${PLUGIN_DIR}" \ +- $(LDFLAGS) $(JUDYLIB) ++ $(LDFLAGS) + + dictdplugin_dbi.la : heap.o dictdplugin_dbi.o str.o \ + plugins_common.o $(LIBOBJS) + $(LIBTOOL) --tag=CC --mode=link $(CC) -o $@ -module \ + $(filter-out local_regex local_zlib local_libmaa, $(^:.o=.lo)) \ + -rpath "${PLUGIN_DIR}" \ +- $(LDFLAGS) $(DBILIB) -ldl ++ $(LDFLAGS) -ldl + + .PHONY: plugins + plugins: $(PLUGINS) + +=== modified file 'configure.in' +--- configure.in 2008-11-03 11:47:00 +0000 ++++ configure.in 2008-11-03 13:56:42 +0000 +@@ -215,14 +215,14 @@ + echo Checking for libraries + + if test "$local_libmaa" = 0; then +- AC_CHECK_LIB(maa,maa_shutdown,XLDFLAGS="$XLDFLAGS -lmaa",local_libmaa=1) ++ AC_CHECK_LIB(maa,maa_shutdown,MAALIB="-lmaa",local_libmaa=1) + fi + + if test "$local_libmaa" = 1; then + AC_MSG_CHECKING(for libmaa in local source tree) + if test -d libmaa; then +- XLDFLAGS="$XLDFLAGS -Llibmaa -lmaa" +- XCPPFLAGS="$XCPPFLAGS -Ilibmaa" ++ MAALIB="-Llibmaa -lmaa" ++ MAACPPFLAGS="$XCPPFLAGS -Ilibmaa" + + AC_CONFIG_SUBDIRS(libmaa) + +@@ -234,8 +234,21 @@ + fi + fi + +-AC_CHECK_LIB(Judy, JudySLNext, [JUDYLIB=-lJudy]) +-AC_CHECK_LIB(dbi, dbi_shutdown, [DBILIB=-ldbi]) ++AC_ARG_WITH(dbi, ++[ --with-dbi build libdbi plugin if possible (plugin support should be enabled)], ++[ ++if test "x${withval}" != xno; then ++ AC_CHECK_LIB(dbi, dbi_shutdown, [DBILIB=-ldbi]) ++fi ++]) ++ ++AC_ARG_WITH(judy, ++[ --with-judy build judy plugin if possible (plugin support should be enabled)], ++[ ++if test "x${withval}" != xno; then ++ AC_CHECK_LIB(Judy, JudySLNext, [JUDYLIB=-lJudy]) ++fi ++]) + + AC_CHECK_LIB(socket,main) + AC_CHECK_LIB(c,inet_ntoa, +@@ -364,12 +377,10 @@ + LIBEXECDIR=`eval3 $libexecdir` + DATADIR=`eval3 $datadir` + +-CPPFLAGS="$CPPFLAGS $XCPPFLAGS" + CFLAGS="$CFLAGS $XCFLAGS" + LDFLAGS="$LDFLAGS $XLDFLAGS" + + AC_SUBST(DICT_VERSION) +-AC_SUBST(CPPFLAGS) + AC_SUBST(CFLAGS) + AC_SUBST(USE_PLUGIN) + AC_SUBST(EXEEXT) +@@ -380,6 +391,8 @@ + AC_SUBST(JUDYLIB) + AC_SUBST(DBILIB) + AC_SUBST(LIBTOOL) ++AC_SUBST(MAALIB) ++AC_SUBST(MAACPPFLAGS) + + AC_SUBST(SYSCONFDIR) + AC_SUBST(BINDIR) + diff --git a/app-text/dictd/files/dictd-1.10.11-colorit-nopp-fix.patch b/app-text/dictd/files/dictd-1.10.11-colorit-nopp-fix.patch new file mode 100644 index 0000000..a78d13c --- /dev/null +++ b/app-text/dictd/files/dictd-1.10.11-colorit-nopp-fix.patch @@ -0,0 +1,14 @@ +Made 'colorit -pp -' work + +Index: dictd/colorit.in +=================================================================== +--- dictd.orig/colorit.in 2008-01-23 23:38:35.000000000 +0100 ++++ dictd/colorit.in 2008-01-23 23:39:25.000000000 +0100 +@@ -167,6 +167,7 @@ + + function process_config (){ + if (pp == ""){ ++ pipe = "cat < \"" config_file "\"" + while (0 < (ret = (pipe | getline))){ + process_config_line() + } diff --git a/app-text/dictd/files/dictd-1.10.11-dictd.8-man.patch b/app-text/dictd/files/dictd-1.10.11-dictd.8-man.patch new file mode 100644 index 0000000..1a49a47 --- /dev/null +++ b/app-text/dictd/files/dictd-1.10.11-dictd.8-man.patch @@ -0,0 +1,24 @@ +Use @SYSCONFDIR@ instead of /etc/ + +Index: dictd/dictd.8.in +=================================================================== +--- dictd.orig/dictd.8.in 2008-01-25 21:25:49.000000000 +0100 ++++ dictd/dictd.8.in 2008-01-25 21:26:42.000000000 +0100 +@@ -120,7 +120,7 @@ + .TP + .BI \-c " file\fR or " \-\-config " file" + Specify configuration file. The default is +-.I /etc/dictd.conf ++.I @SYSCONFDIR@/dictd.conf + , but may be changed in the + .I defs.h + file at compile time (DICTD_CONFIG_FILE). +@@ -283,7 +283,7 @@ + .TP + .B Introduction + The configuration file defaults to +-.I /etc/dictd.conf ++.I @SYSCONFDIR@/dictd.conf + but can be specified on the command line with the + .B \-c + option (see above). diff --git a/app-text/dictd/files/dictd-1.10.11-dictdplugin_popen-g++-4.3compile.patch b/app-text/dictd/files/dictd-1.10.11-dictdplugin_popen-g++-4.3compile.patch new file mode 100644 index 0000000..1b1753b --- /dev/null +++ b/app-text/dictd/files/dictd-1.10.11-dictdplugin_popen-g++-4.3compile.patch @@ -0,0 +1,15 @@ +Patch for #454819: FTBFS with GCC 4.3: missing #includes + + +Index: dictd/dictdplugin_popen.cpp +=================================================================== +--- dictd.orig/dictdplugin_popen.cpp 2008-01-20 21:58:30.000000000 +0100 ++++ dictd/dictdplugin_popen.cpp 2008-01-20 21:59:06.000000000 +0100 +@@ -43,6 +43,7 @@ + #include <stdio.h> + #include <errno.h> + #include <string> ++#include <climits> + #include <unistd.h> + #include <sstream> + #include <list> diff --git a/app-text/dictd/files/dictd-1.10.11-dictl-konwert.patch b/app-text/dictd/files/dictd-1.10.11-dictl-konwert.patch new file mode 100644 index 0000000..254fdd1 --- /dev/null +++ b/app-text/dictd/files/dictd-1.10.11-dictl-konwert.patch @@ -0,0 +1,35 @@ +Patch for #401666: dictl: doesn't work with DICTL_USE_KONWERT + +Index: dictd/dictl.in +=================================================================== +--- dictd.orig/dictl.in 2008-01-20 17:58:41.000000000 +0100 ++++ dictd/dictl.in 2008-01-20 18:02:40.000000000 +0100 +@@ -24,11 +24,25 @@ + # `iconv --help' gives more options than `man iconv' (on my SuSE 9.0 system at least) + # the -c makes iconv omit invalid characters from output + iconv -c -f $1 -t $2 +- else if test "$DICTL_USE_KONWERT"; then +- konwert $1-$2 ++ elif test "$DICTL_USE_KONWERT"; then ++ sedexpr=' ++ /(CP)?(437|8(5[0257]|6[0-69]|74))/ { s//cp\2/; q } ++ /8859_([1-9])/ { s//iso\1/; q } ++ /ANSI_X3.4(-19(68|86))?/ { s//ascii/; q } ++ /(US-)?ASCII/ { s//ascii/; q } ++ /(CP|WINDOWS-)(125[0-8])/ { s//cp\1/; q } ++ /ISO([-_]?8859-|8859)([1-9]|1[01345])/ { s//iso\2/; q } ++ /KOI8-?R/ { s//koi8r/; q } ++ /KOI8-?U/ { s//koi8u/; q } ++ /UTF-?8/ { s//utf8/; q } ++ /VISCII/ { s//viscii/; q } ++ /.*/ { s///; q }' ++ from=`echo "$1" | tr a-z A-Z | sed -r -e "$sedexpr"` ++ to=`echo "$2" | tr a-z A-Z | sed -r -e "$sedexpr"` ++ konwert "$from-$to" + else + recode -f $1..$2 +- fi fi ++ fi + } + + ##################################### diff --git a/app-text/dictd/files/dictd-1.10.11-dictl-translit.patch b/app-text/dictd/files/dictd-1.10.11-dictl-translit.patch new file mode 100644 index 0000000..6341120 --- /dev/null +++ b/app-text/dictd/files/dictd-1.10.11-dictl-translit.patch @@ -0,0 +1,16 @@ +Patch for #378792: dictl should use iconv's //translit suffix + + +Index: dictd/dictl.in +=================================================================== +--- dictd.orig/dictl.in 2008-01-21 22:28:01.000000000 +0100 ++++ dictd/dictl.in 2008-01-21 22:28:20.000000000 +0100 +@@ -23,7 +23,7 @@ + if test "$DICTL_USE_ICONV"; then + # `iconv --help' gives more options than `man iconv' (on my SuSE 9.0 system at least) + # the -c makes iconv omit invalid characters from output +- iconv -c -f $1 -t $2 ++ iconv -c -f $1 -t $2//TRANSLIT + elif test "$DICTL_USE_KONWERT"; then + sedexpr=' + /(CP)?(437|8(5[0257]|6[0-69]|74))/ { s//cp\2/; q } diff --git a/app-text/dictd/files/dictd-1.11.0-automagic-plugins.patch b/app-text/dictd/files/dictd-1.11.0-automagic-plugins.patch new file mode 100644 index 0000000..cb7b3b0 --- /dev/null +++ b/app-text/dictd/files/dictd-1.11.0-automagic-plugins.patch @@ -0,0 +1,28 @@ +=== modified file 'configure.in' +--- configure.in 2008-12-08 18:15:58 +0000 ++++ configure.in 2008-12-08 18:17:44 +0000 +@@ -146,8 +146,21 @@ + AC_CHECK_LIB(maa,maa_shutdown,MAALIB="-lmaa", + [AC_MSG_ERROR([Libmaa not found])]) + +-AC_CHECK_LIB(Judy, JudySLNext, [JUDYLIB=-lJudy]) +-AC_CHECK_LIB(dbi, dbi_shutdown, [DBILIB=-ldbi]) ++AC_ARG_WITH(dbi, ++[ --with-dbi build libdbi plugin if possible (plugin support should be enabled)], ++[ ++if test "x${withval}" != xno; then ++ AC_CHECK_LIB(dbi, dbi_shutdown, [DBILIB=-ldbi]) ++fi ++]) ++ ++AC_ARG_WITH(judy, ++[ --with-judy build judy plugin if possible (plugin support should be enabled)], ++[ ++if test "x${withval}" != xno; then ++ AC_CHECK_LIB(Judy, JudySLNext, [JUDYLIB=-lJudy]) ++fi ++]) + + AC_CHECK_LIB(socket,main) + AC_CHECK_LIB(c,inet_ntoa, + diff --git a/app-text/dictd/files/dictd-1.11.0-avoid-libs-in-LDFLAGS.patch b/app-text/dictd/files/dictd-1.11.0-avoid-libs-in-LDFLAGS.patch new file mode 100644 index 0000000..7251023 --- /dev/null +++ b/app-text/dictd/files/dictd-1.11.0-avoid-libs-in-LDFLAGS.patch @@ -0,0 +1,67 @@ +=== modified file 'Makefile.in' +--- Makefile.in 2008-12-08 18:10:53 +0000 ++++ Makefile.in 2008-12-08 18:14:38 +0000 +@@ -78,6 +78,7 @@ + + LDFLAGS= @LDFLAGS@ @LIBS@ + LIBOBJS= @LIBOBJS@ ++MAALIB= @MAALIB@ + EXES= dict dictd dictzip dictfmt + + all: $(EXES) $(LIBRARIES) +@@ -158,12 +159,12 @@ + %: %.o + $(LIBTOOL) --tag=CC --mode=link $(CC) -o $@ -static \ + $(filter-out local_regex local_zlib local_libmaa, $^) \ +- $(OBJS) $(LDFLAGS) -lz ++ $(OBJS) $(LDFLAGS) $(MAALIB) -lz + + dictd: dictd.o + $(LIBTOOL) --tag=CC --mode=link $(CC) -o $@ -static \ + $(filter-out local_regex local_zlib local_libmaa, $^) \ +- $(DBILIB) $(OBJS) $(LDFLAGS) -lz ++ $(DBILIB) $(OBJS) $(LDFLAGS) $(MAALIB) -lz + + include $(srcdir)/deps + + +=== modified file 'configure.in' +--- configure.in 2008-12-08 18:10:53 +0000 ++++ configure.in 2008-12-08 18:08:55 +0000 +@@ -143,26 +143,8 @@ + echo . + echo Checking for libraries + +-if test "$local_libmaa" = 0; then +- AC_CHECK_LIB(maa,maa_shutdown,XLDFLAGS="$XLDFLAGS -lmaa", ++AC_CHECK_LIB(maa,maa_shutdown,MAALIB="-lmaa", + [AC_MSG_ERROR([Libmaa not found])]) +-fi +- +-if test "$local_libmaa" = 1; then +- AC_MSG_CHECKING(for libmaa in local source tree) +- if test -d libmaa; then +- XLDFLAGS="$XLDFLAGS -Llibmaa -lmaa" +- XCPPFLAGS="$XCPPFLAGS -Ilibmaa" +- +- AC_CONFIG_SUBDIRS(libmaa) +- +- allsubdirs="$allsubdirs libmaa" +- AC_MSG_RESULT(yes) +- else +- AC_MSG_RESULT(no) +- AC_MSG_ERROR([Libmaa not found, cannot continue]) +- fi +-fi + + AC_CHECK_LIB(Judy, JudySLNext, [JUDYLIB=-lJudy]) + AC_CHECK_LIB(dbi, dbi_shutdown, [DBILIB=-ldbi]) +@@ -316,6 +298,7 @@ + AC_SUBST(JUDYLIB) + AC_SUBST(DBILIB) + AC_SUBST(LIBTOOL) ++AC_SUBST(MAALIB) + + AC_SUBST(SYSCONFDIR) + AC_SUBST(BINDIR) + diff --git a/app-text/dictd/files/dictd-1.11.0-plugins-install-fix-and-cleanup.patch b/app-text/dictd/files/dictd-1.11.0-plugins-install-fix-and-cleanup.patch new file mode 100644 index 0000000..40837f4 --- /dev/null +++ b/app-text/dictd/files/dictd-1.11.0-plugins-install-fix-and-cleanup.patch @@ -0,0 +1,30 @@ +=== modified file 'Makefile.in' +--- Makefile.in 2008-12-08 18:15:58 +0000 ++++ Makefile.in 2008-12-08 18:24:44 +0000 +@@ -56,7 +56,7 @@ + EXEEXT=@EXEEXT@ + + CONF_DIR=@sysconfdir@/ +-PLUGIN_DIR=${libexecdir}/ ++PLUGIN_DIR=${libexecdir} + DICT_DIR=${datadir}/ + + CC= @CC@ + +=== modified file 'configure.in' +--- configure.in 2008-12-08 18:20:10 +0000 ++++ configure.in 2008-12-08 18:24:03 +0000 +@@ -295,12 +295,10 @@ + LIBEXECDIR=`eval3 $libexecdir` + DATADIR=`eval3 $datadir` + +-CPPFLAGS="$CPPFLAGS $XCPPFLAGS" + CFLAGS="$CFLAGS $XCFLAGS" + LDFLAGS="$LDFLAGS $XLDFLAGS" + + AC_SUBST(DICT_VERSION) +-AC_SUBST(CPPFLAGS) + AC_SUBST(CFLAGS) + AC_SUBST(USE_PLUGIN) + AC_SUBST(EXEEXT) + diff --git a/app-text/dictd/metadata.xml b/app-text/dictd/metadata.xml new file mode 100644 index 0000000..274ba06 --- /dev/null +++ b/app-text/dictd/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>app-dicts</herd> +<use> + <flag name='dbi'>Build dbi plugin, uses <pkg>dev-db/libdbi</pkg> library for implementing DICT database using SQL server</flag> + <flag name='judy'>Build Judy-based (<pkg>dev-libs/judy</pkg>) plugin implementing fast "exact" and especially "lev" strategies</flag> +</use> +</pkgmetadata> |