aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/eselect')
-rw-r--r--app-admin/eselect/ChangeLog4
-rw-r--r--app-admin/eselect/eselect-1.3.1-r1.ebuild6
2 files changed, 10 insertions, 0 deletions
diff --git a/app-admin/eselect/ChangeLog b/app-admin/eselect/ChangeLog
index eb42fad72..bb06deb76 100644
--- a/app-admin/eselect/ChangeLog
+++ b/app-admin/eselect/ChangeLog
@@ -2,6 +2,10 @@
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect/ChangeLog,v 1.179 2011/01/22 21:38:52 ulm Exp $
+ 15 Mar 2012; François Bissey <francois.bissey@canterbury.ac.nz>
+ eselect-1.3.1-r1.ebuild:
+ add a band aid for prefix
+
*eselect-1.3.1-r1 (13 Feb 2012)
13 Feb 2012; Sébastien Fabbro <bicatali@gentoo.org> -eselect-1.3-r2.ebuild,
diff --git a/app-admin/eselect/eselect-1.3.1-r1.ebuild b/app-admin/eselect/eselect-1.3.1-r1.ebuild
index 7ca2190cc..d9f45fcb7 100644
--- a/app-admin/eselect/eselect-1.3.1-r1.ebuild
+++ b/app-admin/eselect/eselect-1.3.1-r1.ebuild
@@ -59,6 +59,12 @@ src_install() {
keepdir /var/lib/gentoo/news
fowners root:portage /var/lib/gentoo/news || die
fperms g+w /var/lib/gentoo/news || die
+
+ # band aid for prefix
+ if use prefix; then
+ cd "${ED}"/usr/share/eselect/libs
+ sed -i "s:ALTERNATIVESDIR_ROOTLESS=\"${EPREFIX}:ALTERNATIVESDIR_ROOTLESS=\":" alternatives.bash
+ fi
}
pkg_postinst() {