1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=(python{2_7,3_6,3_7})
7 PYTHON_REQ_USE="readline(+)"
9 inherit distutils-r1 git-r3
11 DESCRIPTION="Replacement for 'emerge --search' with search-index"
12 HOMEPAGE="https://github.com/fuzzyray/esearch"
13 EGIT_REPO_URI="https://github.com/fuzzyray/esearch.git"
17 IUSE="l10n_fr l10n_it"
21 DEPEND="sys-apps/portage"
24 python_configure_all() {
25 echo VERSION="${PVR}" "${EPYTHON}" setup.py set_version
26 VERSION="${PVR}" "${EPYTHON}" setup.py set_version \
27 || die "setup.py set_version failed"
30 python_install_all() {
31 distutils-r1_python_install_all
34 # Remove unused man pages according to the l10n flags
35 if ! use l10n_fr ; then
36 rm -rf "${ED}"/usr/share/man/fr \
37 || die "rm failed to remove ${ED}/usr/share/man/fr"
40 if ! use l10n_it ; then
41 rm -rf "${ED}"/usr/share/man/it \
42 || die "rm failed to remove ${ED}/usr/share/man/it"