diff options
author | Ethan Kiang <chocopuff298@gmail.com> | 2017-04-23 15:15:01 +0800 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-04-26 16:04:29 +0200 |
commit | 2536b924a6ea1050361636d0aabf3aa9dcce2f51 (patch) | |
tree | 06ee210c97b91436ef6417d0b8ac1d19673df81c /app-dicts/wordnet | |
parent | app-dicts/wordnet: Take maintenance over, #615006 (diff) | |
download | gentoo-2536b924a6ea1050361636d0aabf3aa9dcce2f51.tar.gz gentoo-2536b924a6ea1050361636d0aabf3aa9dcce2f51.tar.bz2 gentoo-2536b924a6ea1050361636d0aabf3aa9dcce2f51.zip |
app-dicts/wordnet: Update database files to 3.1
Closes: https://github.com/gentoo/gentoo/pull/4474
Diffstat (limited to 'app-dicts/wordnet')
-rw-r--r-- | app-dicts/wordnet/Manifest | 1 | ||||
-rw-r--r-- | app-dicts/wordnet/wordnet-3.1.ebuild | 94 |
2 files changed, 95 insertions, 0 deletions
diff --git a/app-dicts/wordnet/Manifest b/app-dicts/wordnet/Manifest index 0c1ab1f84396..23ab21dfe039 100644 --- a/app-dicts/wordnet/Manifest +++ b/app-dicts/wordnet/Manifest @@ -1,2 +1,3 @@ DIST WordNet-3.0.tar.gz 11537227 SHA256 b4d8b1feeb22defe686cf1c5062d723bd854997614da9547fa135e5137843531 SHA512 d39c008cec41de8f1b2aeacb4ad818f9997a13b30a992fda100b6dcc9c11c253530b00a1909b55ff7b564bafc33f7763c1ce9b0a6ae3e591695db2083e9ead7a WHIRLPOOL cfba84209b4366b1ab381957f82cc2a32039d073baf8fbd44252c829c9291be76f05b214e014157f3ec03a354aaec68a14e20103dde37d11f13b846056aa90f4 +DIST wn3.1.dict.tar.gz 16358468 SHA256 3f7d8be8ef6ecc7167d39b10d66954ec734280b5bdcd57f7d9eafe429d11c22a SHA512 16dca17a87026d8a0b7b4758219cd21a869c3ef3da23ce7875924546f2eacac4c2f376cb271b798b2c458fe8c078fb43d681356e3d9beef40f4bd88d3579394f WHIRLPOOL 67b1dd7cfc0df9957d2dedf405dea72ef2aeffb0e696778d88550405070aad11ae59d4cf8f1063f9d828edd88f6032e6e07c351be546e672b44df4a063305997 DIST wordnet-3.0-patchset-1.tar.bz2 8076 SHA256 d8333b107f53e188981e9ec0e1e53890c8bd7155924ae140c777c3f443d8aba7 SHA512 17668d736dd6dfe83e4d5d328729cbcdfb4dbca9a9707651534169bd2ce6fc2238d5c820d63330c51c20ab9b2964b56a609f58242b05dabbcfdfc0da61c048cb WHIRLPOOL 30e3820c2679148206bc14d5acf8eb7a2bde422f13ce2e9b0a90145e510667d70b1c1ef5d3486c85eddf6492c72b2243672683164f917f8ff5910370e30bd0f8 diff --git a/app-dicts/wordnet/wordnet-3.1.ebuild b/app-dicts/wordnet/wordnet-3.1.ebuild new file mode 100644 index 000000000000..48f463038ef0 --- /dev/null +++ b/app-dicts/wordnet/wordnet-3.1.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils flag-o-matic + +DESCRIPTION="A lexical database for the English language" +HOMEPAGE="http://wordnet.princeton.edu/" +SRC_URI=" + http://wordnetcode.princeton.edu/3.0/WordNet-3.0.tar.gz + mirror://gentoo/${PN}-3.0-patchset-1.tar.bz2 + http://wordnetcode.princeton.edu/wn3.1.dict.tar.gz" +LICENSE="Princeton" + +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris" +IUSE="doc" + +# In contrast to what the configure script seems to imply, Tcl/Tk is NOT +# optional. cf. bug 163478 for details. (Yes, it's about 2.1 but it's +# still the same here.) +DEPEND=" + dev-lang/tcl:0= + dev-lang/tk:0=" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/WordNet-3.0" + +PATCHES1=( + # Don't install into PREFIX/dict but PREFIX/share/wordnet/dict + "${WORKDIR}/"${PN}-3.0"-dict-location.patch" + # Fixes bug 130024, make an additional shared lib + "${WORKDIR}/"${PN}-3.0"-shared-lib.patch" + # Don't install the docs directly into PREFIX/doc but PREFIX/doc/PN + "${WORKDIR}/"${PN}-3.0"-docs-path.patch" + "${WORKDIR}"/"${PN}-3.0"-CVE-2008-3908.patch #211491 + + "${FILESDIR}"/"${PN}-3.0"-tcl8.6.patch + "${FILESDIR}"/"${PN}-3.0"-format-security.patch + "${FILESDIR}"/"${PN}-3.0"-src_stubs_c.patch + "${FILESDIR}"/"${PN}-3.0"-fix-indexing-bug-314799.patch +) + +PATCHES0=( + "${WORKDIR}"/"${PN}-3.0"-CVE-2008-2149.patch #211491 +) + +src_prepare() { + eapply -p1 "${PATCHES1[@]}" + eapply -p0 "${PATCHES0[@]}" + eapply_user + + # Don't install all the extra docs (html, pdf, ps) without doc USE flag. + if ! use doc; then + sed -i -e "s:SUBDIRS =.*:SUBDIRS = man:" doc/Makefile.am || die + fi + + # Drop installation of OLD tk.h headers #255590 + sed '/^SUBDIRS/d' -i include/Makefile.am || die + sed 's: include/tk/Makefile::' -i configure.ac || die + eautoreconf +} + +src_configure() { + append-cppflags -DUNIX -I"${T}"/usr/include + + PLATFORM=linux WN_ROOT="${T}/usr" \ + WN_DICTDIR="${T}/usr/share/wordnet/dict" \ + WN_MANDIR="${T}/usr/share/man" \ + WN_DOCDIR="${T}/usr/share/doc/wordnet-3.0" \ + WNHOME="${EPREFIX}/usr/share/wordnet" \ + econf \ + --with-tcl="${EPREFIX}"/usr/$(get_libdir) \ + --with-tk="${EPREFIX}"/usr/$(get_libdir) +} + +src_compile(){ + emake -e || die "emake failed" +} + +src_install(){ + # For clarification, WN is still on version 3.0. Only the database files + # have been updated to 3.1 as a package for 3.1 does not currently exist. + emake -e DESTDIR="${D}" install + einstalldocs + rm -r "${D}/usr/share/wordnet/dict" || die + mv "${WORKDIR}/dict" "${D}/usr/share/wordnet" || die +} + +pkg_postinst(){ + elog "The WordNet 3.1 ebuild has installed WordNet v3.0 with v3.1 database files instead." + elog "See http://wordnet.princeton.edu/wordnet/download/current-version/ for more." +} |