mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 11:51:14 +02:00
sys-devel/gcc-config: Sync with Gentoo
It's from Gentoo commit 2ec9739d7cca1a38bd9b3c058c99dd1b58bf09d3.
This commit is contained in:
parent
236d97af2c
commit
ebd08984af
@ -1,3 +1 @@
|
||||
DIST gcc-config-2.10.tar.xz 18040 BLAKE2B de902fcf9169290a09988b56fa75f1bf24f702ce98a8fe37b6d4fe090bab615716c32a9e219d25a2257c60099eb4424b86cc1a1565c1b4f3dbcd6c9acad6f340 SHA512 cced56c52d97cbace5fb7e1fc9c73b413454bc5c53641c9429a7da88a0b31db2c70a8b90a4b4b0fbe1e732f21a5f979a4721a7bc8537666f8277b7755bd4af52
|
||||
DIST gcc-config-2.11.tar.xz 18068 BLAKE2B 0d76321adea9eff545e042ad847b70a5b3d8ecb8c248fdf58f71c88a7b03c0aca39f7d39e332808b89c3f6d0fb3fc3114bc2d8dfa1ade6460c0b12c3420d876f SHA512 38ea52c2d16287fc2c8efa0ee76e24563851b4fa1ee7dce601507df1530e7a867281f178ad4228505eb2aaf46164024a18825cd6771d847ff1a60a85d6e96d3e
|
||||
DIST gcc-config-2.8.tar.xz 17968 BLAKE2B aa34e681ef0c86bb846d89b816b46276f5c7c32974c785a9611a903a4fe165c997a34664abe17aa4d8720a96f194054e5d8c371a6c9270b1c235d7539094436c SHA512 5e91df44fb7782b9ad41ed06fbd53f74868c059f892c6c2b8195ebaa899905dd9f502562887f1a3765dd6b61698e956d01c6fa6f97a535cf16e26e70fcd902ba
|
||||
|
||||
@ -1,60 +0,0 @@
|
||||
# Copyright 1999-2023 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
|
||||
}
|
||||
@ -14,7 +14,7 @@ fi
|
||||
DESCRIPTION="Utility to manage compilers"
|
||||
HOMEPAGE="https://gitweb.gentoo.org/proj/gcc-config.git/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
LICENSE="GPL-2 GPL-2+"
|
||||
SLOT="0"
|
||||
IUSE="+cc-wrappers +native-symlinks"
|
||||
|
||||
|
||||
@ -1,60 +0,0 @@
|
||||
# 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
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@ -14,7 +14,7 @@ fi
|
||||
DESCRIPTION="Utility to manage compilers"
|
||||
HOMEPAGE="https://gitweb.gentoo.org/proj/gcc-config.git/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
LICENSE="GPL-2 GPL-2+"
|
||||
SLOT="0"
|
||||
IUSE="+cc-wrappers +native-symlinks"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user