diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-01-15 15:51:32 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-01-15 15:51:32 +0000 |
commit | 21435953e16cda318a82334ddbadb3b5c36d9ea7 (patch) | |
tree | e1810a4b135afce04b34862ef0fab2bfaeb8aeca /sys-devel/gcc-config | |
parent | 7bc9c63c9da678a7e6fceb095d56c634afd22c56 (diff) |
gentoo resync : 15.01.2020
Diffstat (limited to 'sys-devel/gcc-config')
-rw-r--r-- | sys-devel/gcc-config/Manifest | 2 | ||||
-rw-r--r-- | sys-devel/gcc-config/gcc-config-2.2.ebuild | 54 |
2 files changed, 56 insertions, 0 deletions
diff --git a/sys-devel/gcc-config/Manifest b/sys-devel/gcc-config/Manifest index 2f70d857bdce..65fa3dc1a9de 100644 --- a/sys-devel/gcc-config/Manifest +++ b/sys-devel/gcc-config/Manifest @@ -1,4 +1,6 @@ DIST gcc-config-2.1.tar.xz 15520 BLAKE2B 0e37762877116d90265a31cf6d9bc99da9b358afc26c0f7cb6fdbbb44dce23ebf59a1d5c2e481d456c03fbcc383efb7a56559af0bbd1f2bd78f407a853c88369 SHA512 0b19cb758a1e8c5e2e1f7901799fa1eb598d9d5c8d89ceace2e294ec569bfa90978bef72f52b9c2a3455f2ffd21be0899fb3e23b5fbdf62b70e978c153961272 +DIST gcc-config-2.2.tar.xz 15956 BLAKE2B c83c1e2584c42d5e6317e044fc6681f5006d9158ecb8d7127383a773e0b51fc2388aab9462088c087a877d77f8ee0631eb00b48b4ef13125af2bbb3871ea2582 SHA512 501d870488ebbeab2e704cab046b6432379c0dcf430fa24737fc97d9a0aa635e25fd4f7c0b7983f349ffd4c378b1971e4c8c82dc524b4916415985a6e0e7480b EBUILD gcc-config-2.1.ebuild 1186 BLAKE2B 3905cecbc57750da47ac4358cd367c513d84baf69e6470c08c5ecc641c69671d6d5a84c4c7c5ea81b273dc5f208c75bac25a6f61641cdb620f164c5bd51a3f37 SHA512 2866e4c3dc8a4ada5ce0fac596271281a31355ea16e1e54428e6062257dce5c655c258853fce7b8470405923ff6b711faec945baf707774cf7c23b66463f22fe +EBUILD gcc-config-2.2.ebuild 1199 BLAKE2B 907baa9a57b1691667ef09b8721bf9d53e84849b58ffd5a4e512067cd36f253d25e795397b636596b7efe2e4f7eb83938be9f81f31dd4b078070c01babf0ba00 SHA512 05e5d6053e8fc02d879dd882fa23c0fde1e0e6b0488ff640a443842fcda20f0633548bb245f7246502c0391669a0fd8be055a6126b4e24800a727049410ed1ec EBUILD gcc-config-9999.ebuild 1195 BLAKE2B b5ec2af87244bfe98a13861e0114c12c72bf0adfc656e53fc425d88adce6c32700079ef5e03d469a0eb87bd77add159b5d453eaa2a6866deea8152e1fc38f842 SHA512 26bae4dfa89fcaeca9d9600eda7350b7cfec9239b9529b5e1cbfeadb2aef9ca2049a1253c306dfa09c7509c6dac806459250bbe3dbfd0c53ab684a6f4448c95c MISC metadata.xml 257 BLAKE2B 468bd91200194cf2104205cb18f54d629954ed0d86d85a5d3e90af1942eb199d777a0ebc17d1f610f69326d3e0caa686255709f165466f5e0a675380373b30f9 SHA512 fd85d9cf15f6b7db96e4d184e32ae6f1503a5b70cb4cb1ce930ba13a1d5d4c4b24971781e95b7f3f9ead58b31760f84c368bc6fa2a793b4b5baf78259b047ff1 diff --git a/sys-devel/gcc-config/gcc-config-2.2.ebuild b/sys-devel/gcc-config/gcc-config-2.2.ebuild new file mode 100644 index 000000000000..14719662eb89 --- /dev/null +++ b/sys-devel/gcc-config/gcc-config-2.2.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/gcc-config.git" + inherit git-r3 +else + SRC_URI="mirror://gentoo/${P}.tar.xz + https://dev.gentoo.org/~slyfox/distfiles/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86" +fi + +DESCRIPTION="Utility to manage compilers" +HOMEPAGE="https://gitweb.gentoo.org/proj/gcc-config.git/" +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +RDEPEND=">=sys-apps/gentoo-functions-0.10" + +src_compile() { + emake CC="$(tc-getCC)" \ + PV="${PV}" \ + SUBLIBDIR="$(get_libdir)" +} + +src_install() { + emake \ + DESTDIR="${D}" \ + PV="${PV}" \ + SUBLIBDIR="$(get_libdir)" \ + install +} + +pkg_postinst() { + # Scrub eselect-compiler remains + rm -f "${ROOT}"/etc/env.d/05compiler & + + # We not longer use the /usr/include/g++-v3 hacks, as + # it is not needed ... + rm -f "${ROOT}"/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 +} |