From: Tomas Chvatal Date: Tue, 13 Sep 2011 09:40:06 +0000 (+0000) Subject: Update the hunspell ebuild a bit, still needs 2 things to be solved. X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=f9c9aab0bd71059331d66f0e11c7d8605673fc3a;p=gentoo.git Update the hunspell ebuild a bit, still needs 2 things to be solved. Package-Manager: portage-2.2.0_alpha55/cvs/Linux x86_64 --- diff --git a/app-text/hunspell/ChangeLog b/app-text/hunspell/ChangeLog index d7bb8de484a3..99b051aaa012 100644 --- a/app-text/hunspell/ChangeLog +++ b/app-text/hunspell/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-text/hunspell # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/hunspell/ChangeLog,v 1.85 2011/06/15 19:30:09 pva Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/hunspell/ChangeLog,v 1.86 2011/09/13 09:40:06 scarabeus Exp $ + + 13 Sep 2011; Tomáš Chvátal -hunspell-1.2.9.ebuild, + -hunspell-1.2.12.ebuild, -hunspell-1.3.2.ebuild, hunspell-1.3.2-r1.ebuild: + Update the hunspell ebuild a bit, still needs 2 things to be solved. 15 Jun 2011; Peter Volkov hunspell-1.3.2-r1.ebuild: Add quotation for ${ED}. diff --git a/app-text/hunspell/Manifest b/app-text/hunspell/Manifest index 371578c5caae..e1394418bae0 100644 --- a/app-text/hunspell/Manifest +++ b/app-text/hunspell/Manifest @@ -1,16 +1,32 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX hunspell-1.2.11-renameexes.patch 4285 RMD160 9657ab71c70e5e4da6807bc80618f03dd05df840 SHA1 2bc5bbb8b7ee65c19caf0c49a13bc88d994e4437 SHA256 d3458b14625194605b101e645b52f02c04b98851b0987d8554391506c9a917a9 AUX hunspell-1.2.12-renameexes.patch 4448 RMD160 cb46c1aa32c8b082e6dab592a2f536c9b5c99428 SHA1 f488a451f4dc6fec8a8119ff0c1f9bd460cfb62e SHA256 af667dc36f89437556b128f962f0373151f0132b871caebb50c083cac56afdab AUX hunspell-1.2.9-renameexes.patch 4285 RMD160 2d8700b2cd9afdd2e6f375562e98d1b5111dd7d2 SHA1 fb0d9f31ceaa075b19cd9a69449c6ff0336fa933 SHA256 d407dafede8c0b71b9bbab97a3dda5805d85f0920a95019ad4126f5cec8897a0 AUX hunspell-1.3-renameexes.patch 5337 RMD160 ede4ade083311df655d2458ebaf9510c498d1559 SHA1 9c234b8835d669761753f000b4535b9ec7dda058 SHA256 4cbeae9c782a2114d09d7920b1dfe355f37711ecd895d800a6b460bb87184f89 DIST hunspell-1.2.11.tar.gz 926658 RMD160 fa67a24131a8ba4d9cdfd5b4ecfb9c728f83fe23 SHA1 0af7cf93a9914790705b670464d2f95a4bea6341 SHA256 3f975c056e0e8883b38ebe75f04a32e3983ea9d951afa035181806b070d06e93 DIST hunspell-1.2.12.tar.gz 969894 RMD160 43bdf7c06d06e8f983b7cce88e71df833c22cd13 SHA1 0a2ab4b1e15c3dad3f05f474d1ae15ee361c35f8 SHA256 5f592a7112df2114cec772574f2837cb9de499e6bf9d35df327a42ab3e820e69 -DIST hunspell-1.2.9.tar.gz 802731 RMD160 62522337eea3dd325615a618005a108bb9d2639b SHA1 1e709814eb1fb29377953b3deef32d6c644bb33a SHA256 1569209541fa1c80db50af68cf96b996b7a9066f772bab52293438068b55fa28 DIST hunspell-1.3.2.tar.gz 975917 RMD160 f193de180f9ac29cfb54824a45366ba57b27e5c4 SHA1 902c76d2b55a22610e2227abc4fd26cbe606a51c SHA256 b4edd4a4ee944cb9f485b35473e46b729ed768e9d24da8e78e4c4c6ca56addbd EBUILD hunspell-1.2.11.ebuild 2615 RMD160 28bdaebc816b9f9ac3be681c3da9873a958b34d6 SHA1 9deba2b51321a1f7004a2c1d293183fc3c4bcdc7 SHA256 088eac8cf44db3bfb276cc49a01f1575f190d68907ea4e46e15ee23152170a02 EBUILD hunspell-1.2.12-r1.ebuild 2703 RMD160 7db6db5440c1b8b963f1e3b0ec8bc789d7cbec00 SHA1 58c122d5033a377611153847a0c9766e4e54a303 SHA256 e0d971af58b91413674d267543112143e24c3614fa11b443c09f646f4aa69cd7 -EBUILD hunspell-1.2.12.ebuild 2621 RMD160 db695fe7f18ce4e17f3c4c6216eea3d0b127b37a SHA1 b82ea264580cd2f8f4fd33f724d413ce678d3561 SHA256 a80195f6d464a0efd916bb2abac61c5d51ebfcff2731fc85e2bab0ed5606b86d -EBUILD hunspell-1.2.9.ebuild 2607 RMD160 a953707108b91b7fdddcde388ffc02b5e73841b3 SHA1 925658d1efca17e1e6919d21288243f280641af2 SHA256 ea2bcb382438fab671fb15761f923eb2dc914d211a045b23d1ffdf57d607f409 -EBUILD hunspell-1.3.2-r1.ebuild 2792 RMD160 4a2d565cd6d383f2b92e211961bfd1c031050cba SHA1 dc8627660239593b7893611254294c7694730351 SHA256 8c19dbffc1bb9785e8f98b99161975ac1c6fc6dcdf8c13b43f4de822bb752b41 -EBUILD hunspell-1.3.2.ebuild 2526 RMD160 7ce8fc209912fed3d5c490d437b95641a7ecb87c SHA1 34dec26f6602448d7c1741eb9cc58cc5d4423071 SHA256 229f24df622acc316c3c9f23fdbd3a6467067b292cb0ae7bc6063399eab0f39a -MISC ChangeLog 12266 RMD160 905e2e158eb2811fc871508d280c6a0b786c4944 SHA1 f3597f23a820110ec6ce1f9f7acb4c7147602409 SHA256 a75a176fddeff9e5e700110e6251529b26eae4368e6688eeef833977f7b099a1 +EBUILD hunspell-1.3.2-r1.ebuild 2792 RMD160 3b32d5b8458afa817c0123583b44ddf1bf604b80 SHA1 1497e893791fa6eecd3ebdfb49683630b28671ec SHA256 90a62d5790359422c01b9f4d23ea9e755dfb4aa55851dc7ac0816756a0e9e5c2 +MISC ChangeLog 12500 RMD160 9ba9e86f2e1078694dbfcbcc44a4ba14e006ea9c SHA1 6fcec8d75527d285e8abdabd752b6240817b9da8 SHA256 b6f298214c330374fa2331d676e71fe098fe0398ce162b51b8cd13521e0b06b6 MISC metadata.xml 163 RMD160 444608d5dce1eb9307c253140c5f6b011fcbece8 SHA1 87029f6d4a8e381a59cad5f8553f0e5163b11a7e SHA256 2a83bf864655c5acb5d551aeb9b060d57545fb7cf1dd9d7fcdc16fbca221cabb +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.18 (GNU/Linux) + +iQIcBAEBAgAGBQJObyXqAAoJEOSiRoyO7jvojz4QAJkKAWRlNzFDWMljKmPasdGm +S/owWM0jXBOCj3worJV2D88XLBBsc9hPUVzCo89edc+QrFO90BdzC5Zu0Ba7ZNjy +psu2dA6+KRt6zNq3HrZ2jQPz2epZLwr2qSzlUwE7asFYVrIzZVJo5De7Qad5dJeV +DL1OKiN6UwSXiyx7rZi+26DLmOA6T5PP/i0BPmhdk9Izxo/THLjnQLUtpPhvsUzU +EXbSSqmbXX3BzR81Sv1FZ9U9AYoh2Juex/wTc0zn180n4Z1LlMBElVUib8yXEC6f +ohn47RduraxmGG6jIjCEmVZa4FeauhjfFEjl7G7C5+dGMAbDkncjjkKC7W4v/pld +gT8vR2jF72usECuSLbqN1IpuFsSRLLfqO0ePHPvzCWkWeucbsdcLLTnWLWQ1W4mR +mINlRKEitfdsy3OZYjjqL3xrXm2gTTN2uxcPWcyIodFrtMHSEg8AHH7WDc1u0He1 +aG3ztsE9y2HMt9+6yGZZZyhyGQKwFyicLcGQ7WyUm3WY/kxIIGvYummVss0bNhu1 +NJW/inTAxFEvzrm+5V5QVu4UlNck1bgArJrMFxAWTTnIlM+E47j/7MIxjurf8Mt2 +ooZa2AQW6y2kukaCt+I1gmmmbV4F5eOkqGY/fkhj7Cdu/xYqaUOehXLdfk9r6yRz +CssMRSNrNtpPFbs6ScJa +=eR5d +-----END PGP SIGNATURE----- diff --git a/app-text/hunspell/hunspell-1.2.12.ebuild b/app-text/hunspell/hunspell-1.2.12.ebuild deleted file mode 100644 index 8d826282118c..000000000000 --- a/app-text/hunspell/hunspell-1.2.12.ebuild +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/hunspell/hunspell-1.2.12.ebuild,v 1.1 2010/10/15 13:36:00 pva Exp $ - -EAPI="2" -inherit eutils multilib autotools flag-o-matic - -MY_P=${PN}-${PV/_beta/b} - -DESCRIPTION="Hunspell spell checker - an improved replacement for myspell in OOo." -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" -HOMEPAGE="http://hunspell.sourceforge.net/" - -SLOT="0" -LICENSE="MPL-1.1 GPL-2 LGPL-2.1" -IUSE="ncurses nls readline" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" - -DEPEND="readline? ( sys-libs/readline ) - ncurses? ( sys-libs/ncurses ) - sys-devel/gettext" -RDEPEND="${DEPEND}" - -#TODO: "ia" "mi" - check what they are and add appropriate desc... -def="app-dicts/myspell-en" -for l in \ -"af" "bg" "ca" "cs" "cy" "da" "de" "el" "en" "eo" "es" "et" "fo" "fr" "ga" \ -"gl" "he" "hr" "hu" "id" "it" "ku" "lt" "lv" "mk" "ms" "nb" "nl" \ -"nn" "pl" "pt" "ro" "ru" "sk" "sl" "sv" "sw" "tn" "uk" "zu" \ -; do - dep="linguas_${l}? ( app-dicts/myspell-${l/pt_BR/pt-br} )" - [[ ${l} = "de" ]] && - dep="linguas_de? ( || ( app-dicts/myspell-de app-dicts/myspell-de-alt ) )" - [[ -z ${PDEPEND} ]] && - PDEPEND="${dep}" || - PDEPEND="${PDEPEND} -${dep}" - def="!linguas_${l}? ( ${def} )" - IUSE="${IUSE} linguas_${l}" -done -PDEPEND="${PDEPEND} -${def}" - -S=${WORKDIR}/${MY_P} - -src_prepare() { - # Upstream package creates some executables which names are too generic - # to be placed in /usr/bin - this patch prefixes them with 'hunspell-'. - # It modifies a Makefile.am file, hence eautoreconf. - epatch "${FILESDIR}"/${PN}-1.2.12-renameexes.patch - eautoreconf -} - -src_configure() { - # missing somehow, and I am too lazy to fix it properly - [[ ${CHOST} == *-darwin* ]] && append-libs -liconv - - # I wanted to put the include files in /usr/include/hunspell - # but this means the openoffice build won't find them. - econf \ - $(use_enable nls) \ - $(use_with ncurses ui) \ - $(use_with readline readline) -} - -src_install() { - emake DESTDIR="${D}" install || die "emake install failed" - dodoc AUTHORS ChangeLog NEWS README THANKS TODO license.hunspell || die "installing docs failed" - # hunspell is derived from myspell - dodoc AUTHORS.myspell README.myspell license.myspell || die "installing myspell docs failed" -} - -pkg_postinst() { - elog "To use this package you will also need a dictionary." - elog "Hunspell uses myspell format dictionaries; find them" - elog "in the app-dicts category as myspell-." -} diff --git a/app-text/hunspell/hunspell-1.2.9.ebuild b/app-text/hunspell/hunspell-1.2.9.ebuild deleted file mode 100644 index f59d515b2bee..000000000000 --- a/app-text/hunspell/hunspell-1.2.9.ebuild +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/hunspell/hunspell-1.2.9.ebuild,v 1.6 2010/06/13 14:57:18 armin76 Exp $ - -EAPI="2" -inherit eutils multilib autotools flag-o-matic - -MY_P=${PN}-${PV/_beta/b} - -DESCRIPTION="Hunspell spell checker - an improved replacement for myspell in OOo." -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" -HOMEPAGE="http://hunspell.sourceforge.net/" - -SLOT="0" -LICENSE="MPL-1.1 GPL-2 LGPL-2.1" -IUSE="ncurses nls readline" -KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" - -DEPEND="readline? ( sys-libs/readline ) - ncurses? ( sys-libs/ncurses ) - sys-devel/gettext" -RDEPEND="${DEPEND}" - -#TODO: "ia" "mi" - check what they are and add appropriate desc... -def="app-dicts/myspell-en" -for l in \ -"af" "bg" "ca" "cs" "cy" "da" "de" "el" "en" "eo" "es" "et" "fo" "fr" "ga" \ -"gl" "he" "hr" "hu" "id" "it" "ku" "lt" "lv" "mk" "ms" "nb" "nl" \ -"nn" "pl" "pt" "ro" "ru" "sk" "sl" "sv" "sw" "tn" "uk" "zu" \ -; do - dep="linguas_${l}? ( app-dicts/myspell-${l/pt_BR/pt-br} )" - [[ ${l} = "de" ]] && - dep="linguas_de? ( || ( app-dicts/myspell-de app-dicts/myspell-de-alt ) )" - [[ -z ${PDEPEND} ]] && - PDEPEND="${dep}" || - PDEPEND="${PDEPEND} -${dep}" - def="!linguas_${l}? ( ${def} )" - IUSE="${IUSE} linguas_${l}" -done -PDEPEND="${PDEPEND} -${def}" - -S=${WORKDIR}/${MY_P} - -src_prepare() { - # Upstream package creates some executables which names are too generic - # to be placed in /usr/bin - this patch prefixes them with 'hunspell-'. - # It modifies a Makefile.am file, hence eautoreconf. - epatch "${FILESDIR}"/${PN}-1.2.9-renameexes.patch - eautoreconf -} - -src_configure() { - # missing somehow, and I am too lazy to fix it properly - [[ ${CHOST} == *-darwin* ]] && append-libs -liconv - - # I wanted to put the include files in /usr/include/hunspell - # but this means the openoffice build won't find them. - econf \ - $(use_enable nls) \ - $(use_with ncurses ui) \ - $(use_with readline readline) -} - -src_install() { - emake DESTDIR="${D}" install || die "emake install failed" - dodoc AUTHORS ChangeLog NEWS README THANKS TODO license.hunspell || die "installing docs failed" - # hunspell is derived from myspell - dodoc AUTHORS.myspell README.myspell license.myspell || die "installing myspell docs failed" -} - -pkg_postinst() { - elog "To use this package you will also need a dictionary." - elog "Hunspell uses myspell format dictionaries; find them" - elog "in the app-dicts category as myspell-." -} diff --git a/app-text/hunspell/hunspell-1.3.2-r1.ebuild b/app-text/hunspell/hunspell-1.3.2-r1.ebuild index 463a74db5a84..c05269ef7df5 100644 --- a/app-text/hunspell/hunspell-1.3.2-r1.ebuild +++ b/app-text/hunspell/hunspell-1.3.2-r1.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/hunspell/hunspell-1.3.2-r1.ebuild,v 1.2 2011/06/15 19:30:09 pva Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/hunspell/hunspell-1.3.2-r1.ebuild,v 1.3 2011/09/13 09:40:06 scarabeus Exp $ -EAPI="4" +EAPI=4 inherit eutils multilib autotools flag-o-matic versionator MY_P=${PN}-${PV/_beta/b} @@ -16,33 +16,42 @@ LICENSE="MPL-1.1 GPL-2 LGPL-2.1" IUSE="ncurses nls readline static-libs" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" -DEPEND="readline? ( sys-libs/readline ) +DEPEND=" + sys-devel/gettext ncurses? ( sys-libs/ncurses ) - sys-devel/gettext" + readline? ( sys-libs/readline ) +" RDEPEND="${DEPEND}" -#TODO: "ia" "mi" - check what they are and add appropriate desc... -def="app-dicts/myspell-en" -for l in \ -"af" "bg" "ca" "cs" "cy" "da" "de" "el" "en" "eo" "es" "et" "fo" "fr" "ga" \ -"gl" "he" "hr" "hu" "id" "it" "ku" "lt" "lv" "mk" "ms" "nb" "nl" \ -"nn" "pl" "pt" "ro" "ru" "sk" "sl" "sv" "sw" "tn" "uk" "zu" \ -; do - dep="linguas_${l}? ( app-dicts/myspell-${l/pt_BR/pt-br} )" - [[ ${l} = "de" ]] && - dep="linguas_de? ( || ( app-dicts/myspell-de app-dicts/myspell-de-alt ) )" - [[ -z ${PDEPEND} ]] && - PDEPEND="${dep}" || - PDEPEND="${PDEPEND} -${dep}" - def="!linguas_${l}? ( ${def} )" - IUSE="${IUSE} linguas_${l}" +# TODO: Add proper desc for mi +LANGS="af bg ca cs cy da de el en eo es et fo fr ga gl he hr hu ia id it ku lt +lv mk ms nb nl nn pl pt ro ru sk sl sv sw tn uk zu" + +DICT_DEP="app-dicts/myspell-en" +for lang in ${LANGS}; do + if [[ ${lang} == de ]] ; then + DICT_DEP+=" linguas_de? ( + || ( + app-dicts/myspell-de + app-dicts/myspell-de-alt + ) + )" + else + DICT_DEP+=" linguas_${lang}? ( app-dicts/myspell-${lang/pt_BR/pt-br} )" + fi + IUSE+=" linguas_${lang}" done -PDEPEND="${PDEPEND} -${def}" +PDEPEND="${DICT_DEP}" + +unset lang LANGS DICT_DEP S=${WORKDIR}/${MY_P} +DOCS=( + AUTHORS ChangeLog NEWS README THANKS TODO license.hunspell + AUTHORS.myspell README.myspell license.myspell +) + src_prepare() { # Upstream package creates some executables which names are too generic # to be placed in /usr/bin - this patch prefixes them with 'hunspell-'. @@ -55,8 +64,12 @@ src_configure() { # missing somehow, and I am too lazy to fix it properly [[ ${CHOST} == *-darwin* ]] && append-libs -liconv - # I wanted to put the include files in /usr/include/hunspell - # but this means the openoffice build won't find them. + # FIXME: installs static library and buildsystem needs to be patched + # to use proper libtool approach converting it onto shared one. + + # I wanted to put the include files in /usr/include/hunspell. + # You can do that, libreoffice can find them anywhere, just + # ping me when you do so ; -- scarabeus econf \ $(use_enable nls) \ $(use_with ncurses ui) \ @@ -65,17 +78,14 @@ src_configure() { } src_install() { - emake DESTDIR="${D}" install + default + + find "${ED}" -name '*.la' -exec rm -f {} + #342449 pushd "${ED}"/usr/$(get_libdir)/ >/dev/null ln -s lib${PN}{-$(get_major_version).$(get_version_component_range 2).so.0.0.0,.so} popd >/dev/null - - dodoc AUTHORS ChangeLog NEWS README THANKS TODO license.hunspell - # hunspell is derived from myspell - dodoc AUTHORS.myspell README.myspell license.myspell - find "${ED}" -name '*.la' -exec rm -f {} + } pkg_postinst() { diff --git a/app-text/hunspell/hunspell-1.3.2.ebuild b/app-text/hunspell/hunspell-1.3.2.ebuild deleted file mode 100644 index 9254e6049f82..000000000000 --- a/app-text/hunspell/hunspell-1.3.2.ebuild +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/hunspell/hunspell-1.3.2.ebuild,v 1.1 2011/05/24 17:42:43 pva Exp $ - -EAPI="4" -inherit eutils multilib autotools flag-o-matic - -MY_P=${PN}-${PV/_beta/b} - -DESCRIPTION="Hunspell spell checker - an improved replacement for myspell in OOo." -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" -HOMEPAGE="http://hunspell.sourceforge.net/" - -SLOT="0" -LICENSE="MPL-1.1 GPL-2 LGPL-2.1" -IUSE="ncurses nls readline" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" - -DEPEND="readline? ( sys-libs/readline ) - ncurses? ( sys-libs/ncurses ) - sys-devel/gettext" -RDEPEND="${DEPEND}" - -#TODO: "ia" "mi" - check what they are and add appropriate desc... -def="app-dicts/myspell-en" -for l in \ -"af" "bg" "ca" "cs" "cy" "da" "de" "el" "en" "eo" "es" "et" "fo" "fr" "ga" \ -"gl" "he" "hr" "hu" "id" "it" "ku" "lt" "lv" "mk" "ms" "nb" "nl" \ -"nn" "pl" "pt" "ro" "ru" "sk" "sl" "sv" "sw" "tn" "uk" "zu" \ -; do - dep="linguas_${l}? ( app-dicts/myspell-${l/pt_BR/pt-br} )" - [[ ${l} = "de" ]] && - dep="linguas_de? ( || ( app-dicts/myspell-de app-dicts/myspell-de-alt ) )" - [[ -z ${PDEPEND} ]] && - PDEPEND="${dep}" || - PDEPEND="${PDEPEND} -${dep}" - def="!linguas_${l}? ( ${def} )" - IUSE="${IUSE} linguas_${l}" -done -PDEPEND="${PDEPEND} -${def}" - -S=${WORKDIR}/${MY_P} - -src_prepare() { - # Upstream package creates some executables which names are too generic - # to be placed in /usr/bin - this patch prefixes them with 'hunspell-'. - # It modifies a Makefile.am file, hence eautoreconf. - epatch "${FILESDIR}"/${PN}-1.3-renameexes.patch - eautoreconf -} - -src_configure() { - # missing somehow, and I am too lazy to fix it properly - [[ ${CHOST} == *-darwin* ]] && append-libs -liconv - - # I wanted to put the include files in /usr/include/hunspell - # but this means the openoffice build won't find them. - econf \ - $(use_enable nls) \ - $(use_with ncurses ui) \ - $(use_with readline readline) -} - -src_install() { - emake DESTDIR="${D}" install - dodoc AUTHORS ChangeLog NEWS README THANKS TODO license.hunspell - # hunspell is derived from myspell - dodoc AUTHORS.myspell README.myspell license.myspell -} - -pkg_postinst() { - elog "To use this package you will also need a dictionary." - elog "Hunspell uses myspell format dictionaries; find them" - elog "in the app-dicts category as myspell-." -}