You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1002 B
52 lines
1002 B
8 years ago
|
# Copyright 1999-2017 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
8 years ago
|
EAPI=6
|
||
8 years ago
|
|
||
8 years ago
|
PYTHON_COMPAT=( python2_7 )
|
||
13 years ago
|
|
||
8 years ago
|
inherit python-single-r1
|
||
13 years ago
|
|
||
10 years ago
|
DESCRIPTION="A checker for English grammar, for people who are not native English"
|
||
13 years ago
|
HOMEPAGE="http://queequeg.sourceforge.net/"
|
||
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
IUSE=""
|
||
8 years ago
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||
13 years ago
|
|
||
8 years ago
|
DEPEND="${PYTHON_DEPS}
|
||
|
app-dicts/wordnet"
|
||
13 years ago
|
RDEPEND="${DEPEND}"
|
||
|
|
||
|
src_compile() {
|
||
|
local dictdir=/usr/dict
|
||
|
|
||
|
if has_version ">=app-dicts/wordnet-2.0"; then
|
||
|
dictdir=/usr/share/wordnet/dict
|
||
|
fi
|
||
|
|
||
8 years ago
|
emake dict WORDNETDICT=${dictdir}
|
||
|
|
||
|
python_fix_shebang qq
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
8 years ago
|
local prefix=/usr/lib/queequeg
|
||
13 years ago
|
|
||
8 years ago
|
python_moduleinto "${prefix}"
|
||
|
python_domodule *.py
|
||
|
insinto "${prefix}"
|
||
13 years ago
|
[[ -f "dict.txt" ]] && doins dict.txt || doins dict.cdb
|
||
|
|
||
8 years ago
|
exeinto "${prefix}"
|
||
13 years ago
|
doexe qq
|
||
8 years ago
|
dodir /usr/bin
|
||
|
dosym ../lib/queequeg/qq /usr/bin/qq
|
||
13 years ago
|
|
||
|
dodoc README TODO
|
||
8 years ago
|
dodoc htdocs/*
|
||
13 years ago
|
}
|