summaryrefslogtreecommitdiff
path: root/sys-devel/base-gcc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2015-07-12 15:57:04 +0100
committerV3n3RiX <venerix@rogentos.ro>2015-07-12 15:57:04 +0100
commit4cf4bd71a639dbdfff8b9b9c8a9c8491fa7714ab (patch)
tree10fd9a3f941793c6b28f50b7856705cac92fd403 /sys-devel/base-gcc
parentdf63a25eedc6d55c1d5574b0ff44bf8e712e6ad3 (diff)
use CHOST variable instead of our homebaked variable, fix profile setting...mark as stable
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