/[gentoo-alt]/trunk/prefix/sys-apps/portage/portage-2.1.13.4497-r1.ebuild
Gentoo

Contents of /trunk/prefix/sys-apps/portage/portage-2.1.13.4497-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1586 - (show annotations) (download)
Fri Sep 22 18:35:05 2006 UTC (7 years, 6 months ago) by grobian
File size: 2627 byte(s)
Bump


1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI="prefix"
6
7 inherit eutils toolchain-funcs autotools
8
9 DESCRIPTION="Prefix branch of the Portage Package Management System. The primary package management and distribution system for Gentoo."
10 HOMEPAGE="http://www.gentoo.org/"
11 SRC_URI="http://dev.gentoo.org/~grobian/distfiles/prefix-${PN}-${PV}.tar.bz2"
12 LICENSE="GPL-2"
13
14 KEYWORDS="~amd64 ~ppc-macos ~x86 ~x86-macos"
15
16 SLOT="0"
17 IUSE="build doc selinux"
18 DEPEND=">=dev-lang/python-2.3"
19 RDEPEND="!build? ( >=sys-apps/sed-4.0.5 \
20 dev-python/python-fchksum \
21 >=dev-lang/python-2.3 \
22 userland_GNU? ( sys-apps/debianutils ) \
23 >=app-shells/bash-2.05a ) \
24 selinux? ( >=dev-python/python-selinux-2.15 ) \
25 doc? ( app-portage/portage-manpages )
26 >=dev-python/pycrypto-2.0.1"
27 # !userland_Darwin? ( app-misc/pax-utils sys-apps/sandbox ) \
28
29 PROVIDE="virtual/portage"
30
31 S=${WORKDIR}/prefix-${PN}-${PV/-r1/}
32
33 src_compile() {
34 echo ${S}
35 econf \
36 --with-user=${PORTAGE_USER:-portage} \
37 --with-group=${PORTAGE_GROUP:-portage} \
38 --with-rootuser=${PORTAGE_INST_USER:-root} \
39 --with-wheelgid=${PORTAGE_INST_GID:-0} \
40 --with-offset-prefix=${EPREFIX} \
41 || die "econf failed"
42
43 if use elibc_FreeBSD; then
44 cd "${S}"/src/bsd-flags
45 chmod +x setup.py
46 ./setup.py build || die "Failed to install bsd-chflags module"
47 fi
48
49 emake || die "emake failed"
50 }
51
52 src_install() {
53 make DESTDIR="${EDEST}" install || die "make install failed."
54 dodir /usr/lib/portage/bin
55 dodir /etc/portage
56 dodir /var/lib/portage
57 dodir /var/log/portage
58 keepdir /etc/portage
59
60 ebegin "Adjusting to prefix"
61 sed \
62 -e "s|GENTOO_PORTAGE_EPREFIX|${EPREFIX}|g" \
63 "${FILESDIR}"/05portage.envd \
64 > "${T}"/05portage.envd
65 eend $?
66 doenvd "${T}"/05portage.envd
67 }
68
69 pkg_preinst() {
70 if has livecvsportage ${FEATURES} && [ "${ROOT}" = "/" ]; then
71 rm -rf ${D}/usr/lib/portage/pym/*
72 mv ${D}/usr/lib/portage/bin/tbz2tool ${T}
73 rm -rf ${D}/usr/lib/portage/bin/*
74 mv ${T}/tbz2tool ${D}/usr/lib/portage/bin/
75 else
76 rm ${EPREFIX}/usr/lib/portage/pym/*.pyc >& /dev/null
77 rm ${EPREFIX}/usr/lib/portage/pym/*.pyo >& /dev/null
78 fi
79 }
80
81 pkg_postinst() {
82 local x
83
84 if [ ! -f "${ROOT}/var/lib/portage/world" ] &&
85 [ -f ${ROOT}/var/cache/edb/world ] &&
86 [ ! -h ${ROOT}/var/cache/edb/world ]; then
87 mv ${ROOT}/var/cache/edb/world ${ROOT}/var/lib/portage/world
88 ln -s ../../lib/portage/world ${EPREFIX}/var/cache/edb/world
89 fi
90
91 for x in ${ROOT}/etc/._cfg????_make.globals; do
92 # Overwrite the globals file automatically.
93 [ -e "${x}" ] && mv -f "${x}" "${ROOT}/etc/make.globals"
94 done
95 }

  ViewVC Help
Powered by ViewVC 1.1.20