gcc-arm-none-eabi-11.2_p202202.ebuild

This commit is contained in:
Anton Bolshakov 2022-04-17 19:41:32 +08:00
parent 61459c62cf
commit fa69c1047a
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
2 changed files with 59 additions and 0 deletions

View file

@ -1,2 +1,3 @@
DIST gcc-arm-11.2-2022.02-x86_64-aarch64-none-linux-gnu.tar.xz 120127944 BLAKE2B c490938d720f7caac44b29cd6cb9f934abb3cd4047bcb2329b3b130a5e8d16febf204daa4b787e804f8282c3958674b9eca26a2bd6aed18c1007a762876981d7 SHA512 1f9ec9cac7b7835ca9f4e750ad170c111489cbeb7d4c2876be6a688aa14e5fc019353ea1566d9796cb908a57e27f08689ab8e9d6ad00c482ff1a6f3c507e3647
DIST gcc-arm-none-eabi-10.3-2021.10-aarch64-linux.tar.bz2 168772350 BLAKE2B 2b62821e07ded92f18575085b8e43baeed941191df3fbe8483c63d0e109c29ce18e528cea5a8208d585e122f2032a511ff11d6a2b4be0e93d64b57e76a7426a2 SHA512 3bf11934cf47935a659c8d69d38a6c01b86ba3097101e3fd2d11118ab239c7a083d612845cc3db81ae10ce83a17039024a7150d6db2792d5b84f4da4a7b67309
DIST gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 157089706 BLAKE2B 52b1747b3a9ef8a608c4f235821d221719fdc9bfe1ad47cc56a8807a16e50113809cd7dc937ba17caee8a6bdb57bbcab472c74e6656cf54fbbbc9c93a4f02b53 SHA512 34f23fe41a82cdeebe866ebd91d7d6e579e82b3dd4e653f49eb814a2d7d83f9f6c8ea2ccdef709428072bd65c8f259a3a38def31338fbab43d05f308b71a8df7

View file

@ -0,0 +1,58 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
#https://bugs.launchpad.net/gcc-arm-embedded/+bug/1949004
#major/update
#MY_PV1="$(ver_cut 1)-$(ver_cut 2)-q$(ver_cut 3)-major"
#MY_PV2="$(ver_cut 1)-$(ver_cut 2)q$(ver_cut 3)"
AVC=( $(ver_rs 1- ' ') )
MY_PV="${AVC[0]}.${AVC[1]}-${AVC[3]:0:4}.${AVC[3]:4:5}"
DESCRIPTION="GNU Arm Embedded Toolchain"
HOMEPAGE="https://developer.arm.com/open-source/gnu-toolchain/gnu-rm"
#SRC_SUFFIX="https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-rm"
#SRC_URI="amd64? ( ${SRC_SUFFIX}/${MY_PV2}/gcc-arm-none-eabi--x86_64-linux.tar.bz2 )
# arm64? ( ${SRC_SUFFIX}/${MY_PV2}/gcc-arm-none-eabi-${MY_PV1}-aarch64-linux.tar.bz2 )"
SRC_URI="amd64? ( https://developer.arm.com/-/media/Files/downloads/gnu/${MY_PV}/binrel/gcc-arm-${MY_PV}-x86_64-aarch64-none-linux-gnu.tar.xz )"
# arm64? ( https://developer.arm.com/-/media/Files/downloads/gnu/${MY_PV}/binrel/gcc-arm-${MY_PV}-aarch64-aarch64-none-elf.tar.xz )"
LICENSE="BSD GPL-2 LGPL-2 LGPL-3 MIT NEWLIB ZLIB"
SLOT="0"
KEYWORDS="amd64"
IUSE="python3"
RESTRICT="strip"
QA_PREBUILT="*"
DEPEND=""
RDEPEND="sys-libs/ncurses-compat
virtual/libcrypt
python3? ( =dev-lang/python-3* )"
S="${WORKDIR}/gcc-arm-${MY_PV}-x86_64-aarch64-none-linux-gnu"
#S=${WORKDIR}/gcc-arm-${MY_PV}-aarch64-aarch64-none-elf
src_install() {
dodir /opt/${PN}
\cp -r "${S}"/* "${ED}"/opt/${PN}
use python2 || 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/doc/arm-arm-none-eabi/man
EOF
newenvd "${T}/env" 99gcc-arm-embedded-bin
}
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
}