OLD | NEW |
1 # Copyright 1999-2011 Gentoo Foundation | 1 # Copyright 1999-2011 Gentoo Foundation |
2 # Distributed under the terms of the GNU General Public License v2 | 2 # Distributed under the terms of the GNU General Public License v2 |
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.9.45.ebuild,v 1.
1 2011/03/27 23:26:23 zmedico Exp $ | 3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.9.45.ebuild,v 1.
1 2011/03/27 23:26:23 zmedico Exp $ |
4 | 4 |
5 # Require EAPI 2 since we now require at least python-2.6 (for python 3 | 5 # Require EAPI 2 since we now require at least python-2.6 (for python 3 |
6 # syntax support) which also requires EAPI 2. | 6 # syntax support) which also requires EAPI 2. |
7 EAPI=2 | 7 EAPI=2 |
8 inherit eutils multilib python | 8 inherit eutils multilib python |
9 | 9 |
10 DESCRIPTION="Portage is the package management and distribution system for Gento
o" | 10 DESCRIPTION="Portage is the package management and distribution system for Gento
o" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 } | 116 } |
117 | 117 |
118 src_prepare() { | 118 src_prepare() { |
119 if [ -n "${PATCHVER}" ] ; then | 119 if [ -n "${PATCHVER}" ] ; then |
120 if [[ -L $S/bin/ebuild-helpers/portageq ]] ; then | 120 if [[ -L $S/bin/ebuild-helpers/portageq ]] ; then |
121 rm "$S/bin/ebuild-helpers/portageq" \ | 121 rm "$S/bin/ebuild-helpers/portageq" \ |
122 || die "failed to remove portageq helper symlink
" | 122 || die "failed to remove portageq helper symlink
" |
123 fi | 123 fi |
124 epatch "${WORKDIR}/${PN}-${PATCHVER}.patch" | 124 epatch "${WORKDIR}/${PN}-${PATCHVER}.patch" |
125 fi | 125 fi |
| 126 epatch "${FILESDIR}/${P}-crossdev".patch |
| 127 epatch "${FILESDIR}/${P}-fastbuild".patch |
| 128 epatch "${FILESDIR}/${P}-allow-missing-digests".patch |
| 129 epatch "${FILESDIR}/${P}-atoms".patch |
| 130 epatch "${FILESDIR}/${P}-mergeprocess".patch |
| 131 epatch "${FILESDIR}/${P}-force-mirror".patch |
126 einfo "Setting portage.VERSION to ${PVR} ..." | 132 einfo "Setting portage.VERSION to ${PVR} ..." |
127 sed -e "s/^VERSION=.*/VERSION=\"${PVR}\"/" -i pym/portage/__init__.py ||
\ | 133 sed -e "s/^VERSION=.*/VERSION=\"${PVR}\"/" -i pym/portage/__init__.py ||
\ |
128 die "Failed to patch portage.VERSION" | 134 die "Failed to patch portage.VERSION" |
129 sed -e "1s/VERSION/${PVR}/" -i doc/fragment/version || \ | 135 sed -e "1s/VERSION/${PVR}/" -i doc/fragment/version || \ |
130 die "Failed to patch VERSION in doc/fragment/version" | 136 die "Failed to patch VERSION in doc/fragment/version" |
131 sed -e "1s/VERSION/${PVR}/" -i man/* || \ | 137 sed -e "1s/VERSION/${PVR}/" -i man/* || \ |
132 die "Failed to patch VERSION in man page headers" | 138 die "Failed to patch VERSION in man page headers" |
133 | 139 |
134 if ! use ipc ; then | 140 if ! use ipc ; then |
135 einfo "Disabling ipc..." | 141 einfo "Disabling ipc..." |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 | 326 |
321 einfo | 327 einfo |
322 einfo "For help with using portage please consult the Gentoo Handbook" | 328 einfo "For help with using portage please consult the Gentoo Handbook" |
323 einfo "at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3" | 329 einfo "at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3" |
324 einfo | 330 einfo |
325 } | 331 } |
326 | 332 |
327 pkg_postrm() { | 333 pkg_postrm() { |
328 python_mod_cleanup /usr/$(get_libdir)/portage/pym | 334 python_mod_cleanup /usr/$(get_libdir)/portage/pym |
329 } | 335 } |
OLD | NEW |