/[gentoo-alt]/trunk/prefix/app-portage/gentoolkit/gentoolkit-0.2.2.ebuild
Gentoo

Contents of /trunk/prefix/app-portage/gentoolkit/gentoolkit-0.2.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1386 - (show annotations) (download)
Fri Sep 8 07:48:06 2006 UTC (8 years, 4 months ago) by grobian
File size: 1709 byte(s)
bump + prefix awareness


1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-portage/gentoolkit/gentoolkit-0.2.2.ebuild,v 1.11 2006/07/09 02:47:27 kumba Exp $
4
5 EAPI="prefix"
6
7 inherit eutils python
8
9 DESCRIPTION="Collection of administration scripts for Gentoo"
10 HOMEPAGE="http://www.gentoo.org/proj/en/portage/tools/index.xml"
11 SRC_URI="mirror://gentoo/${P}.tar.gz http://dev.gentoo.org/~fuzzyray/distfiles/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 IUSE=""
16
17 KEYWORDS="amd64 ppc-macos x86"
18
19 DEPEND=">=sys-apps/portage-2.0.51_pre21
20 >=dev-lang/python-2.0
21 >=dev-lang/perl-5.6
22 >=sys-apps/grep-2.4
23 userland_GNU? ( sys-apps/debianutils )"
24
25 src_unpack() {
26 unpack ${A}
27 epatch "${FILESDIR}"/${P}-prefix.patch
28 ebegin "Adjusting to prefix"
29 sed -i \
30 -e "s|GENTOO_PORTAGE_EPREFIX|${EPREFIX}|g" \
31 "${S}"/src/99gentoolkit-env
32 eend $?
33 }
34
35 src_install() {
36 # does no configure, so D is fine
37 make DESTDIR="${D}" install-gentoolkit || die
38 }
39
40 pkg_preinst() {
41 # FIXME: Remove from future ebuilds after gentoolkit-0.2.2 is stable
42 rm -f ${ROOT}/usr/lib/gentoolkit/pym/gentoolkit.py[co] ${ROOT}/usr/lib/gentoolkit/pym/gentoolkit/*.py[co]
43 }
44
45 pkg_postinst() {
46 python_mod_optimize ${ROOT}/usr/lib/gentoolkit
47 echo
48 ewarn "The qpkg and etcat tools are deprecated in favor of equery and"
49 ewarn "are no longer installed in ${ROOT}/usr/bin in this release."
50 ewarn "They are still available in ${ROOT}/usr/share/doc/${PF}/deprecated/"
51 ewarn "if you *really* want to use them."
52 echo
53 einfo "Another alternative to qpkg and equery are the q applets in"
54 einfo "app-portage/portage-utils"
55 echo
56 }
57
58 pkg_postrm() {
59 python_mod_cleanup ${ROOT}/usr/lib/gentoolkit
60 }

  ViewVC Help
Powered by ViewVC 1.1.20