summaryrefslogtreecommitdiff
path: root/dev-embedded/xa
diff options
context:
space:
mode:
Diffstat (limited to 'dev-embedded/xa')
-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
3 files changed, 62 insertions, 0 deletions
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
+}