summaryrefslogtreecommitdiffstats
path: root/bin/phase-helpers.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-12-08 09:46:55 -0800
committerZac Medico <zmedico@gentoo.org>2011-12-08 09:46:55 -0800
commit3bd94dbffd4cf338de8cc786f60525b0a84d2562 (patch)
tree97dfe70a2b0ab376b22c8bf40cb547beced0bfc4 /bin/phase-helpers.sh
parentc281c323adf14ece439b98dcf35531666266a0a5 (diff)
downloadportage-3bd94dbffd4cf338de8cc786f60525b0a84d2562.tar.gz
portage-3bd94dbffd4cf338de8cc786f60525b0a84d2562.tar.bz2
portage-3bd94dbffd4cf338de8cc786f60525b0a84d2562.zip
Support FEATURES=force-prefix.
This adjusts the logic from commit ff52f9dc31004becb8022e6437088d01917f413c to use FEATURES=force-prefix instead of USE=prefix. This has the advantage that we don't have to make any assumptions about the USE=prefix.
Diffstat (limited to 'bin/phase-helpers.sh')
-rw-r--r--bin/phase-helpers.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh
index aadfac17d..969cecfe0 100644
--- a/bin/phase-helpers.sh
+++ b/bin/phase-helpers.sh
@@ -19,7 +19,7 @@ into() {
export DESTTREE=""
else
export DESTTREE=$1
- [[ " ${USE} " == *" prefix "* ]] || \
+ [[ " ${FEATURES} " == *" force-prefix "* ]] || \
case "$EAPI" in 0|1|2) local ED=${D} ;; esac
if [ ! -d "${ED}${DESTTREE}" ]; then
install -d "${ED}${DESTTREE}"
@@ -37,7 +37,7 @@ insinto() {
export INSDESTTREE=""
else
export INSDESTTREE=$1
- [[ " ${USE} " == *" prefix "* ]] || \
+ [[ " ${FEATURES} " == *" force-prefix "* ]] || \
case "$EAPI" in 0|1|2) local ED=${D} ;; esac
if [ ! -d "${ED}${INSDESTTREE}" ]; then
install -d "${ED}${INSDESTTREE}"
@@ -55,7 +55,7 @@ exeinto() {
export _E_EXEDESTTREE_=""
else
export _E_EXEDESTTREE_="$1"
- [[ " ${USE} " == *" prefix "* ]] || \
+ [[ " ${FEATURES} " == *" force-prefix "* ]] || \
case "$EAPI" in 0|1|2) local ED=${D} ;; esac
if [ ! -d "${ED}${_E_EXEDESTTREE_}" ]; then
install -d "${ED}${_E_EXEDESTTREE_}"
@@ -73,7 +73,7 @@ docinto() {
export _E_DOCDESTTREE_=""
else
export _E_DOCDESTTREE_="$1"
- [[ " ${USE} " == *" prefix "* ]] || \
+ [[ " ${FEATURES} " == *" force-prefix "* ]] || \
case "$EAPI" in 0|1|2) local ED=${D} ;; esac
if [ ! -d "${ED}usr/share/doc/${PF}/${_E_DOCDESTTREE_}" ]; then
install -d "${ED}usr/share/doc/${PF}/${_E_DOCDESTTREE_}"
@@ -141,7 +141,7 @@ docompress() {
keepdir() {
dodir "$@"
local x
- [[ " ${USE} " == *" prefix "* ]] || \
+ [[ " ${FEATURES} " == *" force-prefix "* ]] || \
case "$EAPI" in 0|1|2) local ED=${D} ;; esac
if [ "$1" == "-R" ] || [ "$1" == "-r" ]; then
shift
@@ -379,7 +379,7 @@ unpack() {
econf() {
local x
- [[ " ${USE} " == *" prefix "* ]] || \
+ [[ " ${FEATURES} " == *" force-prefix "* ]] || \
case "$EAPI" in 0|1|2) local EPREFIX= ;; esac
_hasg() {
@@ -476,7 +476,7 @@ econf() {
einstall() {
# CONF_PREFIX is only set if they didn't pass in libdir above.
local LOCAL_EXTRA_EINSTALL="${EXTRA_EINSTALL}"
- [[ " ${USE} " == *" prefix "* ]] || \
+ [[ " ${FEATURES} " == *" force-prefix "* ]] || \
case "$EAPI" in 0|1|2) local ED=${D} ;; esac
LIBDIR_VAR="LIBDIR_${ABI}"
if [ -n "${ABI}" -a -n "${!LIBDIR_VAR}" ]; then
@@ -607,7 +607,7 @@ has_version() {
local eroot
case "$EAPI" in
0|1|2)
- [[ " ${USE} " == *" prefix "* ]] && \
+ [[ " ${FEATURES} " == *" force-prefix "* ]] && \
eroot=${ROOT%/}${EPREFIX}/ || eroot=${ROOT}
;;
*)
@@ -642,7 +642,7 @@ best_version() {
local eroot
case "$EAPI" in
0|1|2)
- [[ " ${USE} " == *" prefix "* ]] && \
+ [[ " ${FEATURES} " == *" force-prefix "* ]] && \
eroot=${ROOT%/}${EPREFIX}/ || eroot=${ROOT}
;;
*)