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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Thu Feb 13 20:28:18 2014 UTC (6 months, 1 week ago) by fuzzyray
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Remove old versions, update ebuilds to EAPI5, and add patches to fix python
egg info and python 3 compatability.

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xDCB4A7FF)

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-1.0-r2.ebuild,v 1.8 2012/03/02 20:26:34 ranger Exp $
4
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 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
23 DEPEND="sys-apps/portage"
24 RDEPEND="${DEPEND}"
25
26 PATCHES=("${FILESDIR}"/${PV}-fix-EPREFIX-capability.patch
27 "${FILESDIR}"/${PV}-fix-portage-eprefix-compatibility.patch )
28
29 distutils_src_compile_pre_hook() {
30 echo VERSION="${PVR}" "$(PYTHON)" setup.py set_version
31 VERSION="${PVR}" "$(PYTHON)" setup.py set_version \
32 || die "setup.py set_version failed"
33 }
34
35 src_prepare() {
36 base_src_prepare
37 distutils_src_prepare
38 }
39
40 src_compile() {
41 distutils_src_compile
42 }
43
44 src_install() {
45 python_convert_shebangs -r "" build-*/scripts-*
46 distutils_src_install
47 dodoc eupdatedb.cron || die "dodoc failed"
48
49 # Remove unused man pages according to the linguas flags
50 if ! use linguas_fr ; then
51 rm -rf "${ED}"/usr/share/man/fr
52 fi
53
54 if ! use linguas_it ; then
55 rm -rf "${ED}"/usr/share/man/it
56 fi
57 }
58
59 pkg_postinst() {
60 distutils_pkg_postinst
61 ewarn "Because file locations have changed, please run 'hash -r' in your active shells."
62 }

  ViewVC Help
Powered by ViewVC 1.1.20