Merge pull request #2234 from blshkv/master

gcc-arm-none-eabi-14.2_p1.ebuild
This commit is contained in:
github-actions[bot] 2025-02-25 08:27:23 +00:00 committed by GitHub
commit e772b3c56e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 69 additions and 2 deletions

View file

@ -2,3 +2,5 @@ DIST arm-gnu-toolchain-12.2.rel1-aarch64-arm-none-eabi.tar.xz 147612960 BLAKE2B
DIST arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi.tar.xz 155407328 BLAKE2B 8efcbbc93c630bfe8a9ec380b555d4b2a2444a525477ee827cfc6a07dacb0b504058a1ea3786601d8996a2d1abb5e42c3c2f1d6d28fdb4a15998053ca9e63a45 SHA512 2f6756c1c5de0bf800faaff9de5bb95254ff8634c0c0cfa417865823bd9df1f25af186d6fbc381f89ee60bcb4ed055339f9500c04cbe2537ac640679d2680336
DIST arm-gnu-toolchain-13.2.Rel1-aarch64-arm-none-eabi.tar.xz 176409124 BLAKE2B cfd2d00fb7a8ab43e9bb91cb29727e1528468acefb04495ebe729692375bf3bac08b16a844b040e77140862291c7ef7186ecd5e96e109b95db362af1a2c287a2 SHA512 ce2645690887ffbd50b823ccfea114dad389352b02075d7376568528b0949914b09d99df578a3666ad771d77055d2426f3a0319543fe279a716e2b813e4b6063
DIST arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi.tar.xz 179347712 BLAKE2B 1582ebccb3a554b14bd3b44279b09ce67aed47697fe5c53c611efa594d84e0e1d50bddd1ec4cdb06e5474edf1e8cf56bb1e2972e726cbdb2a7e2ebde005c9e37 SHA512 12f189b910ec6212a1905212d9ed403ffe912831de448da942a736cd040e039af0489f7c99b469571ffc09fd2cb8b61870037434af29925ab08ef1f672aff42c
DIST arm-gnu-toolchain-14.2.Rel1-aarch64-arm-none-eabi.tar.xz 151967360 BLAKE2B 9794e0fe81eb8e0f37ca8295091e9825a06a9c3cfd0c64de97910a77c4ad324733ca9dbaaa746855699dacf2d6267fc696e61521b0e0a2e28cd22034c34453bb SHA512 d01d38a5df364e926055f4c679d74b4f34442c1c74bc4badbbb4f59ba31f1e74115adca2fc3eb220bc51b206602a53af88f6c6f27c98a18722d9fda469c01ea3
DIST arm-gnu-toolchain-14.2.Rel1-x86_64-arm-none-eabi.tar.xz 149739784 BLAKE2B fd33a6df9dd2c86f5bacda5666e6529cd920637b7eb3bec6ac7fe51c76e5c8f44fbc5032a8ad3246a2af470d23b4d614f9f281872554d74c5ae322db1b9beb49 SHA512 3955cd63e8a823a8087f2057ea6871d143b513c21f1ca3d6ddf8d093468b05c0f2e066fca3227d85394a1606404e4c24769ae952b530175a639d115d48cb140e

View file

@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..12} )
PYTHON_COMPAT=( python3_{11..13} )
inherit python-r1
MY_PV="${PV/_p/.rel}"

View file

@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..12} )
PYTHON_COMPAT=( python3_{11..13} )
inherit python-r1
# https://bugs.launchpad.net/gcc-arm-embedded/+bug/1949004

View file

@ -0,0 +1,65 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..13} )
inherit python-r1
MY_PV="${PV/_p/.Rel}"
MY_PV2="${PV/_p/.rel}"
DESCRIPTION="GNU Arm Embedded Toolchain"
HOMEPAGE="https://developer.arm.com/open-source/gnu-toolchain/gnu-rm"
# https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads
# https://repology.org/project/arm-gnu-toolchain/versions
SRC_URI="amd64? ( https://developer.arm.com/-/media/Files/downloads/gnu/${MY_PV}/binrel/arm-gnu-toolchain-${MY_PV}-x86_64-arm-none-eabi.tar.xz )
arm64? ( https://developer.arm.com/-/media/Files/downloads/gnu/${MY_PV}/binrel/arm-gnu-toolchain-${MY_PV}-aarch64-arm-none-eabi.tar.xz )"
if [[ "${ARCH}" = "amd64" ]]; then
S="${WORKDIR}/arm-gnu-toolchain-${MY_PV2}-x86_64-arm-none-eabi"
elif [[ "${ARCH}" = "arm64" ]]; then
S="${WORKDIR}/arm-gnu-toolchain-${MY_PV2}-aarch64-arm-none-eabi"
fi
LICENSE="BSD GPL-2 LGPL-2 LGPL-3 MIT NEWLIB ZLIB"
SLOT="0"
KEYWORDS="amd64"
IUSE="python"
RESTRICT="strip"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
QA_PREBUILT="*"
RDEPEND="sys-libs/ncurses-compat:5
virtual/libcrypt
dev-libs/expat
python? ( ${PYTHON_DEPS} )"
src_install() {
dodir /opt/${PN}
cp -r "${S}"/* "${ED}"/opt/${PN}
use python || rm "${ED}"/opt/gcc-arm-none-eabi/bin/arm-none-eabi-gdb-py
fowners -R root:0 /opt/${PN}
local DEST="${EPREFIX}/opt/${PN}"
cat > "${T}/env" << EOF
PATH=${DEST}/bin
ROOTPATH=${DEST}/bin
LDPATH=${DEST}/lib
MANPATH=${DEST}/share/man
EOF
newenvd "${T}/env" 99gcc-arm-embedded-bin
#tell revdep-rebuild to ignore binaries meant for the target
dodir /etc/revdep-rebuild
cat <<-EOF > "${ED}"/etc/revdep-rebuild/99-${P}
SEARCH_DIRS_MASK="${DEST}"
EOF
}
pkg_postinst() {
if [[ -z "${REPLACING_VERSIONS}" ]] ; then
elog "Before use you should run 'env-update' and '. /etc/profile'"
elog "otherwise you may be missing important environmental variables."
fi
}