/[gentoo-x86]/app-portage/esearch/esearch-1.1-r2.ebuild
Gentoo

Contents of /app-portage/esearch/esearch-1.1-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (hide annotations) (download)
Sun Jul 1 16:44:56 2012 UTC (2 years, 2 months ago) by armin76
Branch: MAIN
Changes since 1.7: +2 -2 lines
alpha/ia64/s390/sh/sparc stable wrt #418631

(Portage version: 2.1.10.53/cvs/Linux ia64)

1 fuzzyray 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 armin76 1.8 # $Header: /var/cvsroot/gentoo-x86/app-portage/esearch/esearch-1.1-r2.ebuild,v 1.7 2012/06/07 22:27:34 ranger Exp $
4 fuzzyray 1.1
5     EAPI="3"
6     SUPPORT_PYTHON_ABIS="1"
7     RESTRICT_PYTHON_ABIS="2.[45] 2.7-pypy-* *-jython"
8     PYTHON_USE_WITH="readline"
9     PYTHON_NONVERSIONED_EXECUTABLES=(".*")
10    
11     inherit base distutils python
12    
13     DESCRIPTION="Replacement for 'emerge --search' with search-index"
14     HOMEPAGE="http://david-peter.de/esearch.html"
15     SRC_URI="mirror://github/fuzzyray/${PN}/${P}.tar.gz"
16    
17     LICENSE="GPL-2"
18     SLOT="0"
19     IUSE="linguas_fr linguas_it"
20    
21 armin76 1.8 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris"
22 fuzzyray 1.1
23     DEPEND="sys-apps/portage"
24     RDEPEND="${DEPEND}"
25    
26     # Populate the patches array for any patches for -rX releases
27     # It is an array of patch file names of the form:
28     # "${FILESDIR}"/${PV}-fix-EPREFIX-capability.patch
29     PATCHES=( "${FILESDIR}"/${PV}-Reprint-warnings-detected-during-layman-sync-API.patch
30     "${FILESDIR}"/${PV}-Use-of-undefined-variable-in-sync.patch )
31    
32     distutils_src_compile_pre_hook() {
33     echo VERSION="${PVR}" "$(PYTHON)" setup.py set_version
34     VERSION="${PVR}" "$(PYTHON)" setup.py set_version \
35     || die "setup.py set_version failed"
36     }
37    
38     src_prepare() {
39     base_src_prepare
40     distutils_src_prepare
41     }
42    
43     src_compile() {
44     distutils_src_compile
45     }
46    
47     src_install() {
48     python_convert_shebangs -r "" build-*/scripts-*
49     distutils_src_install
50     dodoc eupdatedb.cron || die "dodoc failed"
51    
52     # Remove unused man pages according to the linguas flags
53     if ! use linguas_fr ; then
54     rm -rf "${ED}"/usr/share/man/fr
55     fi
56    
57     if ! use linguas_it ; then
58     rm -rf "${ED}"/usr/share/man/it
59     fi
60     }

  ViewVC Help
Powered by ViewVC 1.1.20