diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/queequeg/queequeg-0.91-r2.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/queequeg/queequeg-0.91-r2.ebuild')
-rw-r--r-- | app-text/queequeg/queequeg-0.91-r2.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/app-text/queequeg/queequeg-0.91-r2.ebuild b/app-text/queequeg/queequeg-0.91-r2.ebuild new file mode 100644 index 000000000000..bd13a71a2779 --- /dev/null +++ b/app-text/queequeg/queequeg-0.91-r2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit python-single-r1 + +DESCRIPTION="A checker for English grammar, for people who are not native English" +HOMEPAGE="http://queequeg.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="${PYTHON_DEPS} + app-dicts/wordnet" +RDEPEND="${DEPEND}" + +src_compile() { + local dictdir=/usr/dict + + if has_version ">=app-dicts/wordnet-2.0"; then + dictdir=/usr/share/wordnet/dict + fi + + emake dict WORDNETDICT=${dictdir} + + python_fix_shebang qq +} + +src_install() { + local prefix=/usr/lib/queequeg + + python_moduleinto "${prefix}" + python_domodule *.py + insinto "${prefix}" + [[ -f "dict.txt" ]] && doins dict.txt || doins dict.cdb + + exeinto "${prefix}" + doexe qq + dodir /usr/bin + dosym ../lib/queequeg/qq /usr/bin/qq + + dodoc README TODO + dodoc htdocs/* +} |