aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Bissey <francois.bissey@canterbury.ac.nz>2012-03-16 13:19:00 +1300
committerFrançois Bissey <francois.bissey@canterbury.ac.nz>2012-03-16 13:19:00 +1300
commit723852443e0056bb93919d34cc9e0dbbd1d10358 (patch)
tree4a48c315a97c40a3cf226ba03351c3a3ce480c2c
parentMerge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/sci (diff)
parentAdd a band aid to eselect's alternative2 framework for prefix (diff)
downloadsci-723852443e0056bb93919d34cc9e0dbbd1d10358.tar.gz
sci-723852443e0056bb93919d34cc9e0dbbd1d10358.tar.bz2
sci-723852443e0056bb93919d34cc9e0dbbd1d10358.zip
Merge github.com:gentoo-science/sci
-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() {