summaryrefslogtreecommitdiff
path: root/sys-devel/base-gcc
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2015-07-12 18:00:40 +0300
committerBlackNoxis <steven.darklight@gmail.com>2015-07-12 18:00:40 +0300
commit2569d2fe5f05a78c4c907821da9f2ade94e66765 (patch)
treec65e4b9083502a689270195d8cbc64283228f31e /sys-devel/base-gcc
parent5763644d6a002cd1b6733cbf313cbe8a22a99b26 (diff)
parent4cf4bd71a639dbdfff8b9b9c8a9c8491fa7714ab (diff)
Merge remote-tracking branch 'venerix/master'. Part 143144431
Diffstat (limited to 'sys-devel/base-gcc')
-rw-r--r--sys-devel/base-gcc/base-gcc-4.8.4.ebuild28
1 files changed, 8 insertions, 20 deletions
diff --git a/sys-devel/base-gcc/base-gcc-4.8.4.ebuild b/sys-devel/base-gcc/base-gcc-4.8.4.ebuild
index 7d108875..42e15817 100644
--- a/sys-devel/base-gcc/base-gcc-4.8.4.ebuild
+++ b/sys-devel/base-gcc/base-gcc-4.8.4.ebuild
@@ -21,7 +21,7 @@ SSP_UCLIBC_STABLE="x86 amd64"
inherit eutils toolchain
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="amd64 x86"
RDEPEND=""
DEPEND="${RDEPEND}
@@ -53,12 +53,12 @@ src_install() {
# define folders to be dropped, as they are provided by sys-devel/gcc-${PV}
export local bindir="${D}usr/bin"
export local libexecdir="${D}usr/libexec"
- export local usrdir="${D}usr/$(uname -m)-pc-linux-gnu"
+ export local usrdir="${D}usr/${CHOST}"
export local sharedir="${D}usr/share"
export local debugdir="${D}usr/lib/debug"
- export local libdir="${D}usr/lib/gcc/$(uname -m)-pc-linux-gnu/${PV}"
+ export local libdir="${D}usr/lib/gcc/${CHOST}/${PV}"
if use multilib ; then
- export local multilibdir="${D}usr/lib/gcc/$(uname -m)-pc-linux-gnu/${PV}/32"
+ export local multilibdir="${D}usr/lib/gcc/${CHOST}/${PV}/32"
fi
# drop binaries, debug symbols && headers, they're provided by sys-devel/gcc-${PV}
@@ -73,22 +73,10 @@ pkg_preinst() {
pkg_postinst() {
# RogentOS specific bits to always force the latest gcc profile
- export local gcc_atom=$(best_version sys-devel/base-gcc)
- export local gcc_ver=
- if [[ -n "${gcc_atom}" ]] ; then
- elog "Found latest base-gcc to be: ${gcc_atom}, forcing this profile"
- gcc_ver=$(portageq metadata "${ROOT}" installed "${gcc_atom}" PV)
- else
- eerror "No sys-devel/base-gcc installed"
- fi
-
- if [[ -n "${gcc_ver}" ]] ; then
- export local target="${CTARGET:${CHOST}}-${gcc_ver}"
- export local env_target="${ROOT}/etc/env.d/gcc/${target}"
- if [[ -e "${env_target}-vanilla" ]] ; then
- elog "Setting: ${target} GCC profile"
- gcc-config "${target}"
- fi
+ export local target="${ROOT}etc/env.d/gcc/${CHOST}-${PV}-vanilla"
+ if [[ -f "$target" ]] ; then
+ elog "Setting: ${target} GCC profile"
+ gcc-config "${target}"
else
eerror "No sys-devel/base-gcc version installed? Cannot set a proper GCC profile"
fi