diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-29 02:14:02 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-29 02:14:02 +0000 |
commit | a493ba7d75043e8e649ee8d6d4942c1f4b31d1c5 (patch) | |
tree | d9aef2725cb8f60bd6f5a47afa9778eb94114793 /sys-devel/gcc-config | |
parent | d7ef5a07f47da6898dcb2d1503790c59b0470571 (diff) |
gentoo auto-resync : 29:12:2022 - 02:14:02
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.9.ebuild | 60 |
2 files changed, 62 insertions, 0 deletions
diff --git a/sys-devel/gcc-config/Manifest b/sys-devel/gcc-config/Manifest index f407c72212bb..a9c667babd76 100644 --- a/sys-devel/gcc-config/Manifest +++ b/sys-devel/gcc-config/Manifest @@ -1,4 +1,6 @@ DIST gcc-config-2.8.tar.xz 17968 BLAKE2B aa34e681ef0c86bb846d89b816b46276f5c7c32974c785a9611a903a4fe165c997a34664abe17aa4d8720a96f194054e5d8c371a6c9270b1c235d7539094436c SHA512 5e91df44fb7782b9ad41ed06fbd53f74868c059f892c6c2b8195ebaa899905dd9f502562887f1a3765dd6b61698e956d01c6fa6f97a535cf16e26e70fcd902ba +DIST gcc-config-2.9.tar.xz 18032 BLAKE2B 6ee4d89a7fc2c211cb2ce0f6b0802ac300b30deccf6e54cd80a548d6e2e878097ad93cb0174485df8611780cf29e0c3c7590f726409f369a92c6d780db5c167f SHA512 11fa782699ffcca38eee9ef3ca8dbdfdda68459bdad80ca3378ae07e0ee7c114a494c3362e05dc39d69d9770808f2b97bc682aec49e3c3483e7ba0c4498d57f3 EBUILD gcc-config-2.8.ebuild 1671 BLAKE2B e02d37cb1ce4b15e7bf315c3998db51e5b444a17c84a2b012315fcfba583d8ff3bdd622a83d97cb857069e59992013085a5e1e037b16e3498cdbfe1f1c99ca4c SHA512 efb4e4d37dcdfed5a92d00920fdd71ad13b7bef6784b2798981bb8b97a55cf572aefd02553d4c0ff6088df0cd68dfb5af2dd85a5b8be9f5d26316a3acb855a16 +EBUILD gcc-config-2.9.ebuild 1679 BLAKE2B 07b599672153259777e9d2cd67066378bb1bc5725487d84e71958b2b34cd059e8c04227a2b8ec52c732313356594c7c5bc05fd39979f9b08c3a038d90840e037 SHA512 99b1269318b5fbd6f44b48a9712871578c5758939cb88f0d808d89b55cbc20cec683e12fa39672a30575cba224e62fd4850bc981c058d74cbf37581e87399805 EBUILD gcc-config-9999.ebuild 1679 BLAKE2B 07b599672153259777e9d2cd67066378bb1bc5725487d84e71958b2b34cd059e8c04227a2b8ec52c732313356594c7c5bc05fd39979f9b08c3a038d90840e037 SHA512 99b1269318b5fbd6f44b48a9712871578c5758939cb88f0d808d89b55cbc20cec683e12fa39672a30575cba224e62fd4850bc981c058d74cbf37581e87399805 MISC metadata.xml 533 BLAKE2B 09d7ad23670553dc578f92d35dddd92b9421d7ef75e8920498bb16e451cce64a626a7479ece4c1ae1f8d7b67b5cd79c7033d0cf87cd48a788639b6f746fda5cc SHA512 ce12b8cbbe543ee3a1f51cd06c577ec5e99f48863445053858f36ae50ea68e1100da598dd44cef787de0cce8ad392350f95e7fd9071b70aa488a0d31cce7e22c diff --git a/sys-devel/gcc-config/gcc-config-2.9.ebuild b/sys-devel/gcc-config/gcc-config-2.9.ebuild new file mode 100644 index 000000000000..7ff12f007e38 --- /dev/null +++ b/sys-devel/gcc-config/gcc-config-2.9.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/gcc-config.git" + inherit git-r3 +else + SRC_URI="https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +fi + +DESCRIPTION="Utility to manage compilers" +HOMEPAGE="https://gitweb.gentoo.org/proj/gcc-config.git/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="+cc-wrappers +native-symlinks" + +RDEPEND=">=sys-apps/gentoo-functions-0.10" + +_emake() { + emake \ + PV="${PVR}" \ + SUBLIBDIR="$(get_libdir)" \ + USE_CC_WRAPPERS="$(usex cc-wrappers)" \ + USE_NATIVE_LINKS="$(usex native-symlinks)" \ + TOOLCHAIN_PREFIX="${CHOST}-" \ + "$@" +} + +src_compile() { + _emake +} + +src_install() { + _emake DESTDIR="${D}" install +} + +pkg_postinst() { + # 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 + + # USE flag change can add or delete files in /usr/bin worth recaching + if [[ ! ${ROOT} && -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then + eselect compiler-shadow update all + fi + + if ! has_version "sys-devel/gcc[gcj(-)]" && [[ -x "${EROOT}"/usr/bin/gcj ]] ; then + # Warn about obsolete /usr/bin/gcj for bug #804178 + ewarn "Obsolete GCJ wrapper found: ${EROOT}/usr/bin/gcj!" + ewarn "Please delete this file unless you know it is needed (e.g. custom gcj install)." + ewarn "If you have no idea what this means, please delete the file:" + ewarn " rm ${EROOT}/usr/bin/gcj" + fi +} |