summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuud Koolen <redlizard@redlizard.nl>2016-06-14 23:26:32 +0200
committerRuud Koolen <redlizard@redlizard.nl>2016-06-15 06:59:33 +0200
commit5ec95b0c2d5c3a962f03b0ee378316127eb7e0c3 (patch)
tree013ef407b476b1ccee8d423700f552c2b0b42df1
parentbinutils-config: Added cross-prefix support. (diff)
downloadandroid-5ec95b0c2d5c3a962f03b0ee378316127eb7e0c3.tar.gz
android-5ec95b0c2d5c3a962f03b0ee378316127eb7e0c3.tar.bz2
android-5ec95b0c2d5c3a962f03b0ee378316127eb7e0c3.zip
sys-devel/gcc-config: Added cross-prefix support.
-rw-r--r--sys-devel/gcc-config/Manifest3
-rw-r--r--sys-devel/gcc-config/gcc-config-1.8.1_p20160614.ebuild52
2 files changed, 53 insertions, 2 deletions
diff --git a/sys-devel/gcc-config/Manifest b/sys-devel/gcc-config/Manifest
index d280716..f35258f 100644
--- a/sys-devel/gcc-config/Manifest
+++ b/sys-devel/gcc-config/Manifest
@@ -1,3 +1,2 @@
+DIST gcc-config-1.8.1_p20160614.tar.bz2 250012 SHA256 84d31988b49db86d75f24233108e69e93f11ab6136a1f75434060c526f863809 SHA512 1ec7b4318ecf8bc03ccd1b7bbf4ed96efd0a155b9764423d2eb5e1f03dc9abfac0f028e0df33fd00069aa413013853302e26ea317fe4a4847d3f2f63874ac7db WHIRLPOOL 585d039cbf572e578ada942718826abc9bdd247ce40cbaca7ec49bdb9391374598ba8d689f98f9fde99ac61745cbd2c7c2aa043ccb995f8939ceeda6aba9572c
DIST gcc-config-1.8_p20160608.tar.bz2 17446 SHA256 cef5de71a77d9cef4298ec42dd69b9694e53b07ed13a9dd674c5d5ff13fe2432 SHA512 ed3a1dd78a8123435b90283b708cc6141836be93d062606b4262d5c6aeb753efa0f549ac5b75556a1d193cc935e014c69418052cd6f6cab52d3597dcc2b05c12 WHIRLPOOL d3c510526ca76f7a634bafd3a553f017853e76046c16ca4887ffa7c327371e226d434c9c0472f04abf22c626cdc2975231ed182ca58cd59dcfa5ce06ff01a354
-EBUILD gcc-config-1.8_p20160608.ebuild 1250 SHA256 35b4558a113eac240214384680025c968cca540bdc900502eff3fd07ff7d3740 SHA512 f36b5be38b6b3f7fab66f724bf9fec7229d149d8ef2d80481062c17790d9301ca79d9ecca94d43e67b20ccd322186f6412ac89aff0905be3c510e540e2fad1ac WHIRLPOOL 69a0e8ed0f3d176ebb2f746d7132e007c6205b482afaf7a2fc7b7502495bcbf1119f19c3f8cc66ec136d3b4c725780fc50190978df0b3fbcdc93d4a369fbe201
-MISC metadata.xml 162 SHA256 65a915d44de1f01d4b7f72d313b4192c38374a9835d24988c00c1e73dca5805a SHA512 2a857e10b277827773a6c7967e070d7bfff23d75f44fa4d4fa8a7339df3225e6dba512a865d91c9c55bdb013dafdce85dface1b845acfbb5473e232666cdda45 WHIRLPOOL f7586c1570803b3e646f0be89ba6c767e82ec6889ef92d15f62a38f1410ed9d82c36892e5e83f694471959783d0d5ad667f1a39b7eb51f2080c269d5fa23d819
diff --git a/sys-devel/gcc-config/gcc-config-1.8.1_p20160614.ebuild b/sys-devel/gcc-config/gcc-config-1.8.1_p20160614.ebuild
new file mode 100644
index 0000000..2606706
--- /dev/null
+++ b/sys-devel/gcc-config/gcc-config-1.8.1_p20160614.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils unpacker toolchain-funcs multilib
+
+DESCRIPTION="utility to manage compilers"
+HOMEPAGE="https://gitweb.gentoo.org/proj/gcc-config.git/"
+SRC_URI="http://dev.gentoo.org/~redlizard/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
+IUSE=""
+
+RDEPEND=">=sys-apps/gentoo-functions-0.10"
+S="${WORKDIR}/gcc-config"
+
+src_compile() {
+ emake EPREFIX="${EPREFIX}" CC="$(tc-getCC)"
+}
+
+src_install() {
+ emake \
+ EPREFIX="${EPREFIX}" \
+ DESTDIR="${D}" \
+ PV="${PV}" \
+ SUBLIBDIR="$(get_libdir)" \
+ install
+}
+
+pkg_postinst() {
+ # Scrub eselect-compiler remains
+ rm -f "${EROOT}"/etc/env.d/05compiler &
+
+ # Make sure old versions dont exist #79062
+ rm -f "${EROOT}"/usr/sbin/gcc-config &
+
+ # We not longer use the /usr/include/g++-v3 hacks, as
+ # it is not needed ...
+ rm -f "${EROOT}"/usr/include/g++{,-v3} &
+
+ # Do we have a valid multi ver setup ?
+ local x
+ for x in $(gcc-config -C -l 2>/dev/null | awk '$NF == "*" { print $2 }') ; do
+ gcc-config ${x}
+ done
+
+ wait
+}