aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gmail.com>2015-11-25 23:37:23 +0900
committerBenda Xu <heroxbd@gmail.com>2015-12-04 07:41:53 +0900
commit7fd182316f62c5323e034a785bf440f81de2f698 (patch)
tree032ae59f479309d941479086adb06c826e9993e7 /eclass/alternatives-2.eclass
parentsci-biology/pysam: version bump to 0.8.4 (diff)
downloadsci-7fd182316f62c5323e034a785bf440f81de2f698.tar.gz
sci-7fd182316f62c5323e034a785bf440f81de2f698.tar.bz2
sci-7fd182316f62c5323e034a785bf440f81de2f698.zip
eclass/alternatives-2.eclass: support Prefix.
Use ALTERNATIVESDIR_ROOT for ${D}. app-admin/eselect-* has been renamed to app-select/eselect-*.
Diffstat (limited to 'eclass/alternatives-2.eclass')
-rw-r--r--eclass/alternatives-2.eclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/alternatives-2.eclass b/eclass/alternatives-2.eclass
index 4ec9f2bbc..a0c18d97e 100644
--- a/eclass/alternatives-2.eclass
+++ b/eclass/alternatives-2.eclass
@@ -33,9 +33,9 @@ esac
DEPEND=">=app-admin/eselect-1.4.5-r102"
RDEPEND="${DEPEND}
- !app-admin/eselect-blas
- !app-admin/eselect-cblas
- !app-admin/eselect-lapack"
+ !app-eselect/eselect-blas
+ !app-eselect/eselect-cblas
+ !app-eselect/eselect-lapack"
# @ECLASS-VARIABLE: ALTERNATIVES_DIR
# @INTERNAL
@@ -58,7 +58,7 @@ alternatives_for() {
dodir /etc/env.d/alternatives
- ALTERNATIVESDIR_ROOTLESS="${ED}/etc/env.d/alternatives" \
+ ALTERNATIVESDIR_ROOT="${D%/}" \
eselect alternatives add ${@} || die
ALTERNATIVES_CREATED+=( ${1} )