|
|
|
# Copyright 1999-2014 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: /var/cvsroot/gentoo-x86/app-portage/esearch/esearch-9999.ebuild,v 1.7 2014/11/26 10:41:10 pacho Exp $
|
|
|
|
|
|
|
|
EAPI="5"
|
|
|
|
PYTHON_COMPAT=(python{2_6,2_7,3_2,3_3,3_4})
|
|
|
|
PYTHON_REQ_USE="readline(+)"
|
|
|
|
|
|
|
|
inherit distutils-r1 git-2
|
|
|
|
|
|
|
|
EGIT_REPO_URI="git://github.com/fuzzyray/esearch.git"
|
|
|
|
|
|
|
|
DESCRIPTION="Replacement for 'emerge --search' with search-index"
|
|
|
|
HOMEPAGE="http://david-peter.de/esearch.html"
|
|
|
|
SRC_URI=""
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
IUSE="linguas_fr linguas_it"
|
|
|
|
|
|
|
|
KEYWORDS=""
|
|
|
|
|
|
|
|
DEPEND="sys-apps/portage"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
|
|
|
python_prepare_all() {
|
|
|
|
python_export_best
|
|
|
|
echo VERSION="9999-${EGIT_VERSION}" "${PYTHON}" setup.py set_version
|
|
|
|
VERSION="9999-${EGIT_VERSION}" "${PYTHON}" setup.py set_version
|
|
|
|
distutils-r1_python_prepare_all
|
|
|
|
}
|
|
|
|
|
|
|
|
python_install_all() {
|
|
|
|
distutils-r1_python_install_all
|
|
|
|
dodoc eupdatedb.cron || die "dodoc failed"
|
|
|
|
|
|
|
|
# Remove unused man pages according to the linguas flags
|
|
|
|
if ! use linguas_fr ; then
|
|
|
|
rm -rf "${ED}"/usr/share/man/fr \
|
|
|
|
|| die "rm failed to remove ${ED}/usr/share/man/fr"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if ! use linguas_it ; then
|
|
|
|
rm -rf "${ED}"/usr/share/man/it \
|
|
|
|
|| die "rm failed to remove ${ED}/usr/share/man/it"
|
|
|
|
fi
|
|
|
|
}
|