| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-portage/esearch/esearch-9999.ebuild,v 1.3 2012/02/26 08:57:59 patrick Exp $
|
| 4 |
|
| 5 |
EAPI="3"
|
| 6 |
SUPPORT_PYTHON_ABIS="1"
|
| 7 |
RESTRICT_PYTHON_ABIS="2.[45] *-jython 2.7-pypy-*"
|
| 8 |
PYTHON_USE_WITH="readline"
|
| 9 |
PYTHON_NONVERSIONED_EXECUTABLES=(".*")
|
| 10 |
|
| 11 |
inherit distutils python git-2
|
| 12 |
|
| 13 |
EGIT_REPO_URI="git://github.com/fuzzyray/esearch.git"
|
| 14 |
|
| 15 |
DESCRIPTION="Replacement for 'emerge --search' with search-index"
|
| 16 |
HOMEPAGE="http://david-peter.de/esearch.html"
|
| 17 |
SRC_URI=""
|
| 18 |
|
| 19 |
LICENSE="GPL-2"
|
| 20 |
SLOT="0"
|
| 21 |
IUSE="linguas_fr linguas_it"
|
| 22 |
|
| 23 |
KEYWORDS=""
|
| 24 |
|
| 25 |
DEPEND="sys-apps/portage"
|
| 26 |
RDEPEND="${DEPEND}"
|
| 27 |
|
| 28 |
distutils_src_compile_pre_hook() {
|
| 29 |
echo VERSION="9999-${EGIT_VERSION}" "$(PYTHON)" setup.py set_version
|
| 30 |
VERSION="9999-${EGIT_VERSION}" "$(PYTHON)" setup.py set_version
|
| 31 |
}
|
| 32 |
|
| 33 |
src_compile() {
|
| 34 |
distutils_src_compile
|
| 35 |
}
|
| 36 |
|
| 37 |
src_install() {
|
| 38 |
python_convert_shebangs -r "" build-*/scripts-*
|
| 39 |
distutils_src_install
|
| 40 |
dodoc eupdatedb.cron || die "dodoc failed"
|
| 41 |
|
| 42 |
# Remove unused man pages according to the linguas flags
|
| 43 |
if ! use linguas_fr ; then
|
| 44 |
rm -rf "${ED}"/usr/share/man/fr
|
| 45 |
fi
|
| 46 |
|
| 47 |
if ! use linguas_it ; then
|
| 48 |
rm -rf "${ED}"/usr/share/man/it
|
| 49 |
fi
|
| 50 |
}
|