OLD | NEW |
1 # Copyright 1999-2010 Gentoo Foundation | 1 # Copyright 1999-2010 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.25.ebuild,v 1.
3 2010/12/20 16:27:58 phajdan.jr Exp $ | 3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.9.25.ebuild,v 1.
3 2010/12/20 16:27:58 phajdan.jr 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 } | 105 } |
106 | 106 |
107 src_prepare() { | 107 src_prepare() { |
108 if [ -n "${PATCHVER}" ] ; then | 108 if [ -n "${PATCHVER}" ] ; then |
109 if [[ -L $S/bin/ebuild-helpers/portageq ]] ; then | 109 if [[ -L $S/bin/ebuild-helpers/portageq ]] ; then |
110 rm "$S/bin/ebuild-helpers/portageq" \ | 110 rm "$S/bin/ebuild-helpers/portageq" \ |
111 || die "failed to remove portageq helper symlink
" | 111 || die "failed to remove portageq helper symlink
" |
112 fi | 112 fi |
113 epatch "${WORKDIR}/${PN}-${PATCHVER}.patch" | 113 epatch "${WORKDIR}/${PN}-${PATCHVER}.patch" |
114 fi | 114 fi |
| 115 epatch "${FILESDIR}/${P}-fastbuild".patch |
| 116 epatch "${FILESDIR}/${P}-crossdev".patch |
115 einfo "Setting portage.VERSION to ${PVR} ..." | 117 einfo "Setting portage.VERSION to ${PVR} ..." |
116 sed -e "s/^VERSION=.*/VERSION=\"${PVR}\"/" -i pym/portage/__init__.py ||
\ | 118 sed -e "s/^VERSION=.*/VERSION=\"${PVR}\"/" -i pym/portage/__init__.py ||
\ |
117 die "Failed to patch portage.VERSION" | 119 die "Failed to patch portage.VERSION" |
118 sed -e "1s/VERSION/${PVR}/" -i doc/fragment/version || \ | 120 sed -e "1s/VERSION/${PVR}/" -i doc/fragment/version || \ |
119 die "Failed to patch VERSION in doc/fragment/version" | 121 die "Failed to patch VERSION in doc/fragment/version" |
120 sed -e "1s/VERSION/${PVR}/" -i man/* || \ | 122 sed -e "1s/VERSION/${PVR}/" -i man/* || \ |
121 die "Failed to patch VERSION in man page headers" | 123 die "Failed to patch VERSION in man page headers" |
122 | 124 |
123 if ! use ipc ; then | 125 if ! use ipc ; then |
124 einfo "Disabling ipc..." | 126 einfo "Disabling ipc..." |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 | 306 |
305 einfo | 307 einfo |
306 einfo "For help with using portage please consult the Gentoo Handbook" | 308 einfo "For help with using portage please consult the Gentoo Handbook" |
307 einfo "at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3" | 309 einfo "at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3" |
308 einfo | 310 einfo |
309 } | 311 } |
310 | 312 |
311 pkg_postrm() { | 313 pkg_postrm() { |
312 python_mod_cleanup /usr/$(get_libdir)/portage/pym | 314 python_mod_cleanup /usr/$(get_libdir)/portage/pym |
313 } | 315 } |
OLD | NEW |