/[gentoo-x86]/app-portage/eix/eix-0.25.4.ebuild
Gentoo

Contents of /app-portage/eix/eix-0.25.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue May 22 13:30:57 2012 UTC (12 months ago) by darkside
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
remove old versions

(Portage version: 2.1.10.60/cvs/Linux x86_64)

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/eix/eix-0.25.4.ebuild,v 1.1 2012/05/06 20:28:51 darkside Exp $
4
5 EAPI=4
6
7 inherit multilib bash-completion-r1
8
9 DESCRIPTION="Search and query ebuilds, portage incl. local settings, ext. overlays, version changes, and more"
10 HOMEPAGE="http://eix.berlios.de"
11 SRC_URI="mirror://berlios/${PN}/${P}.tar.xz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris"
16 IUSE="debug +dep doc nls optimization security strong-optimization sqlite tools zsh-completion"
17
18 RDEPEND="sqlite? ( >=dev-db/sqlite-3 )
19 nls? ( virtual/libintl )
20 zsh-completion? ( !!<app-shells/zsh-completion-20091203-r1 )"
21 DEPEND="${RDEPEND}
22 app-arch/xz-utils
23 nls? ( sys-devel/gettext )"
24
25 pkg_setup() {
26 if has_version "<${CATEGORY}/${PN}-0.25.3"; then
27 local eixcache="${EROOT}"/var/cache/${PN}
28 [[ -f ${eixcache} ]] && rm -f "${eixcache}"
29 fi
30 }
31
32 src_configure() {
33 econf $(use_with sqlite) $(use_with doc extra-doc) \
34 $(use_with zsh-completion) \
35 $(use_enable nls) $(use_enable tools separate-tools) \
36 $(use_enable security) $(use_enable optimization) \
37 $(use_enable strong-optimization) $(use_enable debug debugging) \
38 $(use_with prefix always-accept-keywords) \
39 $(use_with dep dep-default) \
40 --with-ebuild-sh-default="/usr/$(get_libdir)/portage/bin/ebuild.sh" \
41 --with-portage-rootpath="${ROOTPATH}" \
42 --with-eprefix-default="${EPREFIX}" \
43 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
44 --htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
45 }
46
47 src_install() {
48 default
49 dobashcomp bash/eix
50 keepdir "/var/cache/${PN}"
51 fowners portage:portage "/var/cache/${PN}"
52 fperms 775 "/var/cache/${PN}"
53 }
54
55 pkg_postinst() {
56 # fowners in src_install doesn't work for owner/group portage:
57 # merging changes this owner/group back to root.
58 use prefix || chown portage:portage "${EROOT}var/cache/${PN}"
59 local obs="${EROOT}var/cache/eix.previous"
60 ! test -f "${obs}" || ewarn "Found obsolete ${obs}, please remove it"
61 }

  ViewVC Help
Powered by ViewVC 1.1.13