summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2016-05-26 19:06:58 +0900
committerBenda Xu <heroxbd@gentoo.org>2016-05-26 19:08:03 +0900
commitfa9a0ed449140fb75b3567f735c1853fd312f7b1 (patch)
treebd33553fe813dc5ea9556bd199bf10c225ddf49e /profiles/prefix/linux-standalone
parentdev-ml/deriving: bump to 0.7.1 (diff)
downloadgentoo-fa9a0ed449140fb75b3567f735c1853fd312f7b1.tar.gz
gentoo-fa9a0ed449140fb75b3567f735c1853fd312f7b1.tar.bz2
gentoo-fa9a0ed449140fb75b3567f735c1853fd312f7b1.zip
p/p/l-s/profile.bashrc: refactorize with elif.
Diffstat (limited to 'profiles/prefix/linux-standalone')
-rw-r--r--profiles/prefix/linux-standalone/profile.bashrc12
1 files changed, 3 insertions, 9 deletions
diff --git a/profiles/prefix/linux-standalone/profile.bashrc b/profiles/prefix/linux-standalone/profile.bashrc
index 121ac7b6b9bf..37635eaafee4 100644
--- a/profiles/prefix/linux-standalone/profile.bashrc
+++ b/profiles/prefix/linux-standalone/profile.bashrc
@@ -22,17 +22,13 @@ if [[ ${CATEGORY}/${PN} == sys-devel/gcc && ${EBUILD_PHASE} == configure ]]; the
sed -i 's/--sysroot=%R//' \
gcc/gcc.c || eerror "Please file a bug about this"
eend $?
-fi
-
-if [[ ${CATEGORY}/${PN} == sys-devel/binutils && ${EBUILD_PHASE} == prepare ]]; then
+elif [[ ${CATEGORY}/${PN} == sys-devel/binutils && ${EBUILD_PHASE} == prepare ]]; then
cd "${S}"
ebegin "Prefixifying native library path"
sed -i -r "/NATIVE_LIB_DIRS/s,((/usr(/local|)|)/lib),${EPREFIX}\1,g" \
ld/configure.tgt || eerror "Please file a bug about this"
eend $?
-fi
-
-if [[ ${CATEGORY}/${PN} == sys-libs/glibc && ${EBUILD_PHASE} == configure ]]; then
+elif [[ ${CATEGORY}/${PN} == sys-libs/glibc && ${EBUILD_PHASE} == configure ]]; then
cd "${S}"
einfo "Prefixifying hardcoded path"
@@ -53,9 +49,7 @@ if [[ ${CATEGORY}/${PN} == sys-libs/glibc && ${EBUILD_PHASE} == configure ]]; th
-e "s,/(etc|var),${EPREFIX}/\1,g" \
nss/db-Makefile || eerror "Please file a bug about this"
eend $?
-fi
-
-if [[ ${CATEGORY}/${PN} == dev-lang/python && ${EBUILD_PHASE} == configure ]]; then
+elif [[ ${CATEGORY}/${PN} == dev-lang/python && ${EBUILD_PHASE} == configure ]]; then
# Guide h2py to look into glibc of Prefix
ebegin "Guide h2py to look into Prefix"
export include="${EPREFIX}"/usr/include