summaryrefslogtreecommitdiff
path: root/dev-embedded
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-08-07 12:37:21 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-08-07 12:37:21 +0100
commitb8c7370a682e4e29cda623222d17a790c01c3642 (patch)
treef6caa14689bd00a5760eadaa381ff41e50ef3c1b /dev-embedded
parent8a4997a7e2d1e36c089d4d76935b5a902d98d3d0 (diff)
gentoo auto-resync : 07:08:2024 - 12:37:20
Diffstat (limited to 'dev-embedded')
-rw-r--r--dev-embedded/Manifest.gzbin9384 -> 9387 bytes
-rw-r--r--dev-embedded/arduino/Manifest3
-rw-r--r--dev-embedded/arduino/arduino-1.8.19-r1.ebuild2
-rw-r--r--dev-embedded/arduino/arduino-1.8.19.ebuild118
-rw-r--r--dev-embedded/u-boot-tools/Manifest4
-rw-r--r--dev-embedded/u-boot-tools/u-boot-tools-2023.10-r1.ebuild86
-rw-r--r--dev-embedded/u-boot-tools/u-boot-tools-2024.01-r1.ebuild (renamed from dev-embedded/u-boot-tools/u-boot-tools-2024.01.ebuild)8
-rw-r--r--dev-embedded/xa/Manifest3
-rw-r--r--dev-embedded/xa/files/xa-2.4.1-make.patch28
-rw-r--r--dev-embedded/xa/xa-2.4.1.ebuild31
10 files changed, 71 insertions, 212 deletions
diff --git a/dev-embedded/Manifest.gz b/dev-embedded/Manifest.gz
index 9d99eafe237f..5189ebc731f9 100644
--- a/dev-embedded/Manifest.gz
+++ b/dev-embedded/Manifest.gz
Binary files differ
diff --git a/dev-embedded/arduino/Manifest b/dev-embedded/arduino/Manifest
index bd62302c9fd5..638faa8ccb09 100644
--- a/dev-embedded/arduino/Manifest
+++ b/dev-embedded/arduino/Manifest
@@ -4,6 +4,5 @@ DIST arduino-1.8.19.tar.gz 34715155 BLAKE2B d0bb23548db5b5c402e418f85339c1ace9a2
DIST arduino-WiFi101-Updater-ArduinoIDE-Plugin-0.12.0.zip 21873817 BLAKE2B ef2ee6291c452b58b990594a1cbae0daf86e1b6078b51225a7253d782554648610d39c2761ed67914e54a757d1345c7de4c8a63fbe12483f0134c21eac5dc303 SHA512 17e2d07fbdca491a8d80abb6f2ceb000c68af59b755da7db70dce2d5f781204340f43365c40e641acf0b084b2073b3b056f63d68990f405adefb76887f4c5b72
DIST arduino-avr-1.8.3.tar.bz2 4941548 BLAKE2B 48d84a30f3ccf1074df6ec006ccc58d702a572dee51cff1753121055d660ad6cea4176e74488af93227a9eeea4d3a9c0c0856711ebded26ee14a755fb519dd6f SHA512 c8a63ad79f16c380def83b1215762f5cbddfc51480d658853370c3210724bb04627272f3affc0ad01af4463a68980665a4e1c37cc8fabcec16e97c4550d1bb03
DIST arduino-examples-1.9.1.zip 4810227 BLAKE2B 0781ecb330adc444e660f6db89533dfb01995ec87dec7b5f55e28e65bfaf7f505aa79362f5815193ea6500cb1d6a16a86d5f300acf70fc4eaff0265c2891d371 SHA512 c0e21dd374b2751a1e5f2b790202d4883879da2e26e9a23ccbaec478647e2b8160cbc085e76888deafc05b9b14b1aff4ce2a9b834a7b83e8226c3bc41801015c
-EBUILD arduino-1.8.19-r1.ebuild 4330 BLAKE2B 6d72a7d814868d06cfd51e59ad85d17c471583178d1a064c023473ff840aed961a57c1881160262ed3786f4ccaa9b157f819ac1e048fb9e429ac0b005921f948 SHA512 b94aa905b172ee03f01ab4c7e63c53e55bba1bb3fbc37d03c7ad12d379339e10581d57f5c6ea45eb92d8b7ee30a7eba62603766ffe73c52a9d5314b10926ccdc
-EBUILD arduino-1.8.19.ebuild 4266 BLAKE2B 6af8ff54ceabf53225cb3dc5624be7a8e9ea7ea5e883290acd3340158dd68e8ee3661263c63d9df5c6af0c319050d340a4863aa7036818176d9fc94c4c444ca5 SHA512 1cce98090b29e1033f851cae757a5b3d96e2ef06c465ee1cc54678d4663d848805dd6e5f60c462c8f50acc249a6d8733cfbaaaeb63142250b49458aa4110f29c
+EBUILD arduino-1.8.19-r1.ebuild 4328 BLAKE2B efc846693bc1ee24b5a7662f02419183d02378e25cffdda2216a3cee9dcb73ad53021e4e7600d5bf29bbeb4fb1da7ab004e12c5471c5f645e089c6829ab06385 SHA512 61ecc51d8a99088350d5c200701818b4313c143e21aea7406f3c73f4bd64048b47fae4a88b5e9de848d874c8f68b2a42efdd0a05dea161011efb4a714c49c104
MISC metadata.xml 332 BLAKE2B 384c8751a6538aaca49c8fd242c5493d8321e957a1d186c9c6cf8db579ab74fe9bd25c96dda56a19afa063ade2833fe4b6d307163be7a7681421c65620fe40b7 SHA512 1d58a915f882ee70c55b5541e66cd33a1367e2f686949e1a13d7dcad62d1f1ec180d433898e5ba41f52ba9630a116b92c52cb5ad3be02127c144c1d37cfa35a0
diff --git a/dev-embedded/arduino/arduino-1.8.19-r1.ebuild b/dev-embedded/arduino/arduino-1.8.19-r1.ebuild
index 458ce8fcbd07..33921c46fe52 100644
--- a/dev-embedded/arduino/arduino-1.8.19-r1.ebuild
+++ b/dev-embedded/arduino/arduino-1.8.19-r1.ebuild
@@ -21,7 +21,7 @@ S="${WORKDIR}/Arduino-${PV}"
LICENSE="GPL-2 LGPL-2.1 CC-BY-SA-3.0"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="amd64 x86"
BDEPEND=">=dev-java/ant-1.10.14-r3:0"
CDEPEND="dev-embedded/arduino-builder"
diff --git a/dev-embedded/arduino/arduino-1.8.19.ebuild b/dev-embedded/arduino/arduino-1.8.19.ebuild
deleted file mode 100644
index 4dd3c76f3613..000000000000
--- a/dev-embedded/arduino/arduino-1.8.19.ebuild
+++ /dev/null
@@ -1,118 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit java-pkg-2 java-ant-2 desktop xdg-utils
-
-DESCRIPTION="An open-source AVR electronics prototyping platform"
-HOMEPAGE="https://www.arduino.cc/ https://github.com/arduino/"
-
-AVR_VERSION="1.8.3"
-EXAMPLES_VERSION="1.9.1"
-PLUGIN_VERSION="0.12.0"
-
-SRC_URI="https://github.com/arduino/Arduino/archive/${PV}.tar.gz -> ${P}.tar.gz
- https://downloads.arduino.cc/cores/avr-${AVR_VERSION}.tar.bz2 -> ${PN}-avr-${AVR_VERSION}.tar.bz2
- https://github.com/arduino/arduino-examples/archive/refs/tags/${EXAMPLES_VERSION}.zip -> ${PN}-examples-${EXAMPLES_VERSION}.zip
- https://github.com/arduino/WiFi101-FirmwareUpdater-Plugin/releases/download/v${PLUGIN_VERSION}/WiFi101-Updater-ArduinoIDE-Plugin-${PLUGIN_VERSION}.zip -> ${PN}-WiFi101-Updater-ArduinoIDE-Plugin-${PLUGIN_VERSION}.zip
- "
-
-LICENSE="GPL-2 LGPL-2.1 CC-BY-SA-3.0"
-SLOT="0"
-KEYWORDS="amd64 x86"
-
-CDEPEND="dev-embedded/arduino-builder"
-
-RDEPEND="${CDEPEND}
- >=dev-util/astyle-3.1[java]
- dev-embedded/arduino-listserialportsc
- >=virtual/jre-1.8"
-
-DEPEND="${CDEPEND}
- app-arch/unzip
- >=virtual/jdk-1.8"
-
-EANT_BUILD_TARGET="build"
-# don't run the default "javadoc" target, we don't have one.
-EANT_DOC_TARGET=""
-EANT_BUILD_XML="build/build.xml"
-EANT_EXTRA_ARGS=" -Dlight_bundle=1 -Dlocal_sources=1 -Dno_arduino_builder=1 -Dversion=${PV}"
-
-RESTRICT="strip"
-QA_PREBUILT="usr/share/arduino/hardware/arduino/avr/firmwares/*"
-
-S="${WORKDIR}/Arduino-${PV}"
-
-PATCHES=(
- # We need to load system astyle/listserialportsc instead of bundled ones.
- "${FILESDIR}/${PN}-1.8.5-lib-loading.patch"
-)
-
-src_unpack() {
- # We don't want to unpack tools, just move zip files into the work dir
- local a=( ${A} )
- unpack "${a[0]}"
-
- cp "${DISTDIR}/${PN}-avr-${AVR_VERSION}.tar.bz2" "${S}/build/avr-${AVR_VERSION}.tar.bz2" || die
- cp "${DISTDIR}/${PN}-examples-${EXAMPLES_VERSION}.zip" "${S}/build/" || die
- cp "${DISTDIR}/${PN}-WiFi101-Updater-ArduinoIDE-Plugin-${PLUGIN_VERSION}.zip" "${S}/build/shared/WiFi101-Updater-ArduinoIDE-Plugin-${PLUGIN_VERSION}.zip" || die
-}
-
-src_prepare() {
- default
-
- # Unbundle libastyle
- sed -i 's/\(target name="linux-libastyle-[a-zA-Z0-9]*"\)/\1 if="never"/g' "$S/build/build.xml" || die
-
- # Unbundle avr toolchain
- sed -i 's/target name="avr-toolchain-bundle" unless="light_bundle"/target name="avr-toolchain-bundle" if="never"/' "$S/build/build.xml" || die
-
- # Install avr hardware
- sed -i 's/target name="assemble-hardware" unless="light_bundle"/target name="assemble-hardware"/' "$S/build/build.xml" || die
-}
-
-src_install() {
- cd "${S}"/build/linux/work || die
-
- # We need to replace relative paths for toolchain executable by paths to system ones.
- sed -i -e 's@^compiler.path=.*@compiler.path=/usr/bin/@' -e 's@^tools.avrdude.path=.*@tools.avrdude.path=/usr@' \
- -e 's@^tools.avrdude.config.path=.*@tools.avrdude.config.path=/etc/avrdude.conf@' hardware/arduino/avr/platform.txt || die
-
- java-pkg_dojar lib/*.jar
- java-pkg_dolauncher ${PN} \
- --pwd "/usr/share/${PN}" \
- --main "processing.app.Base" \
- --java_args "-DAPP_DIR=/usr/share/${PN} -Djava.library.path=${EPREFIX}/usr/$(get_libdir)"
-
- insinto "/usr/share/${PN}"
-
- doins -r examples hardware lib tools
-
- # In upstream's build process, we copy these fiels below from the bundled arduino-builder.
- # Here we do the same thing, but from the system arduino-builder.
- dosym "../../arduino-builder/platform.txt" "/usr/share/${PN}/hardware/platform.txt"
- dosym "../../arduino-builder/platform.keys.rewrite.txt" "/usr/share/${PN}/hardware/platform.keys.rewrite.txt"
- dosym "../../bin/arduino-builder" "/usr/share/${PN}/arduino-builder"
-
- # hardware/tools/avr needs to exist or arduino-builder will
- # complain about missing required -tools arg
- dodir "/usr/share/${PN}/hardware/tools/avr"
-
- # Install menu and icons
- domenu "${FILESDIR}/${PN}.desktop"
- cd lib/icons || die
- local icondir
- for icondir in *; do
- # icondir name is something like "24x24" we want the "24" part
- local iconsize=`cut -dx -f1 <<< "${icondir}"`
- newicon -s $iconsize \
- "${icondir}/apps/arduino.png" \
- "${PN}.png"
- done
-}
-
-pkg_postinst() {
- xdg_icon_cache_update
- [[ ! -x /usr/bin/avr-g++ ]] && ewarn "Missing avr-g++; you need to crossdev -s4 avr"
-}
diff --git a/dev-embedded/u-boot-tools/Manifest b/dev-embedded/u-boot-tools/Manifest
index d9d9e02df96f..c15102932102 100644
--- a/dev-embedded/u-boot-tools/Manifest
+++ b/dev-embedded/u-boot-tools/Manifest
@@ -1,8 +1,6 @@
AUX disable-unused-mkeficapsule.patch 558 BLAKE2B 139a3f6a7637984c3dfd2ac1fac8e3907fe99fc9f3a48e729de503cf6430a3bd2842a7f650e1e6afd20591d50e40e12cdfea4aaa1c79d3bdb619612a8d8b5005 SHA512 f88bbe68a258931dcf72c329fe1dcecda21eedd267900f481ccdc4f12dce86f4158373fe0c4481029dc0fa66709b9d9bac8e0bdbd472fcfd71f521a5d233a00b
AUX disable-unused-pylibfdt.patch 471 BLAKE2B eeb65f9a5b158d4b13b633419d0e174d65903c5e23114862cfd49a7467d641e28968bd2893bf32492976609b4922becd7565f477d6fee1a545ba75b9068491b3 SHA512 0bbc980b092c33af1d4be750dedce374b3b2fd420268ceffb6f7029e6199a6f753d2708f6fba9a61020b4adec47996d8de858a1e7e64e8d09bd7405b66694d0c
-DIST u-boot-2023.10.tar.bz2 19645392 BLAKE2B 1404ab42e8b0c821fbfdf612cc00ed5d6b1a1d15d4e69647e788cf97536234f89fe000f480107f8a78b56f7dae7a022f5e742c06ca7f381050e2251889fcdb83 SHA512 f238a69b9cc08ee0a69ea8ca2fa26975f2f2ede14e978b4db274b1e4095e43af0052307ac39034658a72ec9706951cd03c0f316d0591f391adecaf2cc9496fc4
DIST u-boot-2024.01.tar.bz2 19926911 BLAKE2B c62a22f56276426917b0db508ad7dc82efa4fe7be14c5e7d79ecdea172b2b383981b7e65b7e920b196d0162a17fb362ef97a8d758a1b30e509e3c66748d2c106 SHA512 45bd093ba3bda23e43cdde83d8656c1ee1348ac2886ecff1fee475f101ac4965a5be6565408fa5b990c723f3fdc833edfca60a719f735a43040cd14a1b59a88b
DIST u-boot-tools-2024.01-fix-invalid-escape-sequence.patch 1285 BLAKE2B ad0af975b59794f21a44472a1f1b4542e75e478d51e649a6c339a4af9963cb4b822e6eba6819cbd3d35c09f3c33f1995288ef296e07466a427cf1f0dd0a399e1 SHA512 8675c267ca5a234924bdf8fc03dcaf75501cf86ac7a9b2e7fbc7982b9620e8863af289c124c5e91cccee58cc116b4d2798be745dedc1b28099a143f3464ad4d6
-EBUILD u-boot-tools-2023.10-r1.ebuild 1671 BLAKE2B 3f20384f8aa8d982341c0c596a03968d39512879087cec89b2a3de474889f1c098d680a670f40a12bccf75f62ef22d9e447bddacf01813a38a50bf4eddc05857 SHA512 07bf471cbcdabcb894dfb7f6d4a297dea6a818b368824a1f87eb3a171626e461c2bd8c5789d7daa4b793459e7602e48ef1926f288a1d15abb94a5d8395985421
-EBUILD u-boot-tools-2024.01.ebuild 1841 BLAKE2B e55ea90fb3ec1fe2f67e03b11f3b9431a73c60f0d70c2b69f0fdc964a5b21cf9cda25e4cd2d6f19340d79dddb27c2ea0f805b1e6fc0bec4fd3fbc130139481d2 SHA512 6be9d4630ae18242952bf0315f8e3441a07a01cb7e424428811cd1ef50901f30be997dd8257aa3a1eea6a5811fc66648df1f1d738306c9823c80a61b4ce36c92
+EBUILD u-boot-tools-2024.01-r1.ebuild 1899 BLAKE2B e88bdcebeaea50e8a27638367cef6561bba5f1be2e6b836cead7fa8751d1256d9379513575acac0d8195deae952af7d333a52a168cf90c3dedf741a11368269f SHA512 f7ffe79cbdd9aa816e37e2fa862dbb4a5caee6d3cebdced974319a52a8ddbc10b6001258901ec705db80f887778c2a2e6dc1932da6f353683746b0758751eed0
MISC metadata.xml 343 BLAKE2B 4115ff47d73727feb01367f4f6a419d46cfed433ac0f8e0b40366f61cefa9beef9c28511a0f8db727b22e04e38b0c741b415bf6edc3b8b4ef0867255beed1935 SHA512 1523312fc43fd850cf4d24b17d17a2607f5dd2786c4827c48014f750b97088ff95c97148cb8e9cbac2fc6b3e759dee32d04a9b5da62c130a7708b34db82e5196
diff --git a/dev-embedded/u-boot-tools/u-boot-tools-2023.10-r1.ebuild b/dev-embedded/u-boot-tools/u-boot-tools-2023.10-r1.ebuild
deleted file mode 100644
index 05e693d9e34a..000000000000
--- a/dev-embedded/u-boot-tools/u-boot-tools-2023.10-r1.ebuild
+++ /dev/null
@@ -1,86 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit toolchain-funcs
-
-MY_P="u-boot-${PV/_/-}"
-DESCRIPTION="utilities for working with Das U-Boot"
-HOMEPAGE="https://www.denx.de/wiki/U-Boot/WebHome"
-SRC_URI="https://ftp.denx.de/pub/u-boot/${MY_P}.tar.bz2"
-S="${WORKDIR}/${MY_P}"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 arm arm64 ppc ppc64 ~riscv x86"
-IUSE="envtools"
-
-RDEPEND="dev-libs/openssl:="
-DEPEND="${RDEPEND}"
-BDEPEND="
- app-alternatives/yacc
- app-alternatives/lex
- sys-apps/which
- virtual/pkgconfig
-"
-
-PATCHES=(
- "${FILESDIR}/disable-unused-mkeficapsule.patch"
- "${FILESDIR}/disable-unused-pylibfdt.patch"
-)
-
-src_prepare() {
- default
- sed -i 's:\bpkg-config\b:${PKG_CONFIG}:g' \
- scripts/kconfig/{g,m,n,q}conf-cfg.sh \
- scripts/kconfig/Makefile \
- tools/Makefile || die
-}
-
-src_configure() {
- tc-export AR BUILD_CC CC PKG_CONFIG
- tc-export_build_env
-}
-
-src_compile() {
- # Unset a few KBUILD variables. Bug #540476
- unset KBUILD_OUTPUT KBUILD_SRC
-
- local myemakeargs=(
- V=1
- AR="${AR}"
- CC="${CC}"
- HOSTCC="${BUILD_CC}"
- HOSTCFLAGS="${BUILD_CFLAGS} ${BUILD_CPPFLAGS}"' $(HOSTCPPFLAGS)'
- HOSTLDFLAGS="${BUILD_LDFLAGS}"
- )
-
- emake "${myemakeargs[@]}" tools-only_defconfig
-
- emake "${myemakeargs[@]}" \
- NO_SDL=1 \
- HOSTSTRIP=: \
- STRIP=: \
- CONFIG_ENV_OVERWRITE=y \
- $(usex envtools envtools tools-all)
-}
-
-src_test() { :; }
-
-src_install() {
- cd tools || die
-
- if ! use envtools; then
- dobin dumpimage fdtgrep gen_eth_addr img2srec mkenvimage mkimage
- fi
-
- dobin env/fw_printenv
-
- dosym fw_printenv /usr/bin/fw_setenv
-
- insinto /etc
- doins env/fw_env.config
-
- doman ../doc/mkimage.1
-}
diff --git a/dev-embedded/u-boot-tools/u-boot-tools-2024.01.ebuild b/dev-embedded/u-boot-tools/u-boot-tools-2024.01-r1.ebuild
index f4ac4ba3e697..1e13270fe5ad 100644
--- a/dev-embedded/u-boot-tools/u-boot-tools-2024.01.ebuild
+++ b/dev-embedded/u-boot-tools/u-boot-tools-2024.01-r1.ebuild
@@ -20,7 +20,11 @@ SLOT="0"
KEYWORDS="amd64 arm arm64 ppc ppc64 ~riscv x86"
IUSE="envtools"
-RDEPEND="dev-libs/openssl:="
+RDEPEND="
+ dev-libs/openssl:=
+ net-libs/gnutls:=
+ sys-apps/util-linux:=
+"
DEPEND="${RDEPEND}"
BDEPEND="
dev-lang/swig
@@ -76,7 +80,7 @@ src_install() {
cd tools || die
if ! use envtools; then
- dobin dumpimage fdtgrep gen_eth_addr img2srec mkenvimage mkimage
+ dobin dumpimage fdtgrep gen_eth_addr img2srec mkeficapsule mkenvimage mkimage
fi
dobin env/fw_printenv
diff --git a/dev-embedded/xa/Manifest b/dev-embedded/xa/Manifest
index db7143a36091..a20fb90a1f10 100644
--- a/dev-embedded/xa/Manifest
+++ b/dev-embedded/xa/Manifest
@@ -1,4 +1,7 @@
AUX xa-2.4.0-make.patch 599 BLAKE2B c36cbebe508944f9d730596d4ef2e68691e083afce97df5d4c402497d431babcd213debb9cdae4231b3f0a8f4dbdb5d006942a62ddf6712df2b7ff03da08b57f SHA512 89b8c3f40bf6beee05db1a10078e0facab24e03afe9c3c31d0647c11c415cf51904307019cb2868756e4b4d58e0def715b13771696d1a9af3ce76c0decc80c7a
+AUX xa-2.4.1-make.patch 601 BLAKE2B 6d1d14c79ea7bb733b946c240e35e66c5eb0ef4c93aa67533f0837e39d08f89102eb1095ce746fa4b5428a2c78d3554bcf8027ec9b0e3c6d6d7a516f23eb657c SHA512 996434d11b42ed6fb79353e9c6e88e84954dada178b1ba8651625725c711927f77ed5b79ac0a4409cc42827f5ed1edf092a06bb19b598ea2a1d4b5eccfd9e353
DIST xa-2.4.0.tar.gz 197862 BLAKE2B 27f8b41dafee9c1c4158681d57f971297a0a63e09df164469f665528cffae0cdd78441c0a939d742463e851f32a73ee30a95f2b2b41e2fe42137041a03041255 SHA512 eebaf67715324735203405016df7311bf2ed568ab0e609c0fec7d9d803c173cde5dea161b7f713cb5215454d1ce69acbde43372016dfe9866ed99acecb9aafb1
+DIST xa-2.4.1.tar.gz 208553 BLAKE2B 86092d2a215d141f76bb8a31861f20e5124f2ec7125a5649b9b28a86e727d5f201826581c38aea8693d16692d8be13103a917c1152980d6a4764555751af7dac SHA512 aaec796bec362ab253abc33320cb36ef879fa661c2091c7e3b2ce96ccc56063c59335fb7eb1d6a3de9486ab8973cbbc71c445e1ef816572a55a1338ffed19dc0
EBUILD xa-2.4.0.ebuild 565 BLAKE2B dd7ee16286af4c88ff1e833c058827b94a1ab670853fc073ad7caec5c4a710d7bb52ad42bc1931d1915980c32106655d583ea0ed8466e03f73b4952b91c8bce2 SHA512 4e9131999b233fc8bb1d27e7ae156c3748858f2d86162433e3c959d22c386dbfeb779b98b0c9b0e1a1279a4bb59e920bb7922a2a815a2d40d941747deac3a548
+EBUILD xa-2.4.1.ebuild 567 BLAKE2B 0f71bbb5dfb4370e20c498664aa14be4706b0e77ec9ef1979599567b8ce531b9c60c1ea17e8828a348649416d00ee22816372d245dbfc752291bf6e574303725 SHA512 c532958e90315385eebb61c47d106898f42ac19cd545da6e3a72adafecce13e8f73dad606c898b0b9ea8e96e7f227ce66c9da85dd36611d12ca295473d446e5d
MISC metadata.xml 548 BLAKE2B 3acb4c1e9192f25578d0e57f4527c1fd9af3738f48978cd5af39e9728336a23576f19e48568028c47b9db1394539280553590bcd29c206d11ab4acba50c5dbda SHA512 6b1274a1ee5456a5e2cdee2e1bfd34777b66d5178034b11f314549640c3085d069d96e71da9d476c03977540b6a08f8acb034b8df938b8caac1005eee4d2066d
diff --git a/dev-embedded/xa/files/xa-2.4.1-make.patch b/dev-embedded/xa/files/xa-2.4.1-make.patch
new file mode 100644
index 000000000000..c4fd2f667584
--- /dev/null
+++ b/dev-embedded/xa/files/xa-2.4.1-make.patch
@@ -0,0 +1,28 @@
+https://bugs.gentoo.org/722600
+--- a/Makefile
++++ b/Makefile
+@@ -4,2 +3,0 @@
+-CC = gcc
+-LD = gcc
+@@ -8,2 +5,0 @@
+-CFLAGS = -O2 -g
+-LDFLAGS = -lc
+@@ -32 +28 @@
+-all: killxa xa uncpk
++all: xa uncpk
+@@ -38 +34 @@
+- (cd src && LD=${LD} CC="${CC} ${CFLAGS}" ${MAKE})
++ (cd src && ${MAKE})
+@@ -44 +40 @@
+- (cd misc && CC="${CC} ${CFLAGS}" ${MAKE})
++ (cd misc && ${MAKE})
+--- a/misc/Makefile
++++ b/misc/Makefile
+@@ -5 +5 @@
+-CFLAGS = -O2 -g
++CFLAGS := $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -12 +12 @@
+- ${LD} -o ../xa ${OBJ} ${LDFLAGS}
++ ${CC} ${LDFLAGS} -o ../xa ${OBJ}
diff --git a/dev-embedded/xa/xa-2.4.1.ebuild b/dev-embedded/xa/xa-2.4.1.ebuild
new file mode 100644
index 000000000000..35f2dd66f1e2
--- /dev/null
+++ b/dev-embedded/xa/xa-2.4.1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="High-speed, two-pass portable 6502 cross-assembler"
+HOMEPAGE="https://www.floodgap.com/retrotech/xa/"
+SRC_URI="https://www.floodgap.com/retrotech/xa/dists/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.4.1-make.patch
+)
+
+src_configure() {
+ tc-export CC
+}
+
+src_test() {
+ emake -j1 test
+}
+
+src_install() {
+ emake DESTDIR="${ED}"/usr install
+ einstalldocs
+}