summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2023-02-08 02:20:10 -0500
committerIonen Wolkens <ionen@gentoo.org>2023-02-08 02:30:50 -0500
commitbfe65ba38850dd168bf827ee7b9a6d1ed3cd36d4 (patch)
treed984e7292defef07c42ce776f4eefe9d921680c6 /dev-embedded
parentdev-libs/FXdiv: fix building with dev-cpp/gtest-1.13.0 (diff)
downloadgentoo-bfe65ba38850dd168bf827ee7b9a6d1ed3cd36d4.tar.gz
gentoo-bfe65ba38850dd168bf827ee7b9a6d1ed3cd36d4.tar.bz2
gentoo-bfe65ba38850dd168bf827ee7b9a6d1ed3cd36d4.zip
dev-embedded/xa: add 2.3.14
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-embedded')
-rw-r--r--dev-embedded/xa/Manifest1
-rw-r--r--dev-embedded/xa/files/xa-2.3.14-make.patch60
-rw-r--r--dev-embedded/xa/xa-2.3.14.ebuild31
3 files changed, 92 insertions, 0 deletions
diff --git a/dev-embedded/xa/Manifest b/dev-embedded/xa/Manifest
index 1b87076fc499..86eb602c8dc5 100644
--- a/dev-embedded/xa/Manifest
+++ b/dev-embedded/xa/Manifest
@@ -1 +1,2 @@
DIST xa-2.3.13.tar.gz 155606 BLAKE2B 8196f8f88bee29dbab9ad026c0d4e3519159c4ed7579dc7db391c0bdd7b1bfe31e2884644258d863e299ac3b5fcc43718b3d95b9b7d7802541a9d58366728ffe SHA512 b8a4c1856e51bbe212b98be06895987d6fb926a229511a67ea90a934da1fcc84daf29bd289c3c4c2254d2bce345333bb92747947f3286376761613b2e181e99b
+DIST xa-2.3.14.tar.gz 156876 BLAKE2B 3dd4f369d69cd85c7c545e4aba7698deb9402946c755ac2709c43cb4a795d1cde730286a4a0df2615c39367443788cd4314bf526def863fa57bc85d36ca2dc60 SHA512 71d4631cb3e698b6522ca76c4b34078ded0632533bdaaa8b8d584eb27f0958ed288a6765136ff0ad03cd861a2dccbb76c6d8db0abf277a61ae864ad23212653d
diff --git a/dev-embedded/xa/files/xa-2.3.14-make.patch b/dev-embedded/xa/files/xa-2.3.14-make.patch
new file mode 100644
index 000000000000..b62c1cc05261
--- /dev/null
+++ b/dev-embedded/xa/files/xa-2.3.14-make.patch
@@ -0,0 +1,60 @@
+https://bugs.gentoo.org/722600
+--- a/Makefile
++++ b/Makefile
+@@ -2,4 +2,2 @@
+ #
+-CC = gcc
+-LD = gcc
+ # for testing. not to be used; build failures in misc/.
+@@ -7,4 +5,2 @@
+ #CFLAGS = -O2 -g
+-CFLAGS = -O2
+-LDFLAGS = -lc
+
+@@ -37,9 +33,9 @@
+ xa:
+- (cd src && LD=${LD} CC="${CC} ${CFLAGS}" ${MAKE})
++ (cd src && ${MAKE})
+
+ load:
+- (cd loader && CC="${CC} ${CFLAGS}" ${MAKE})
++ (cd loader && ${MAKE})
+
+ uncpk:
+- (cd misc && CC="${CC} ${CFLAGS}" ${MAKE})
++ (cd misc && ${MAKE})
+
+--- a/misc/Makefile
++++ b/misc/Makefile
+@@ -4,3 +4,2 @@
+ # -Wall -ansi et al. cause compile problems.
+-CFLAGS = -O2
+
+@@ -12,15 +11,15 @@
+ ../uncpk: uncpk.c
+- ${CC} ${CFLAGS} uncpk.c -o $(XCBMLIB)/uncpk
++ ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} uncpk.c -o $(XCBMLIB)/uncpk
+
+ ../printcbm: printcbm.c
+- ${CC} ${CFLAGS} printcbm.c -o $(XCBMLIB)/printcbm
++ ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} printcbm.c -o $(XCBMLIB)/printcbm
+
+ ../file65: file65.c
+- ${CC} ${CFLAGS} file65.c -o $(XCBMLIB)/file65
++ ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} file65.c -o $(XCBMLIB)/file65
+
+ ../ldo65: ldo65.c
+- ${CC} ${CFLAGS} ldo65.c -o $(XCBMLIB)/ldo65
++ ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} ldo65.c -o $(XCBMLIB)/ldo65
+
+ ../reloc65: reloc65.c
+- ${CC} ${CFLAGS} reloc65.c -o $(XCBMLIB)/reloc65
++ ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} reloc65.c -o $(XCBMLIB)/reloc65
+
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -10,3 +10,3 @@
+ xa: ${OBJ}
+- ${LD} -o ../xa ${OBJ} ${LDFLAGS}
++ ${CC} ${LDFLAGS} -o ../xa ${OBJ}
+
diff --git a/dev-embedded/xa/xa-2.3.14.ebuild b/dev-embedded/xa/xa-2.3.14.ebuild
new file mode 100644
index 000000000000..c4d17094a27c
--- /dev/null
+++ b/dev-embedded/xa/xa-2.3.14.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2023 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.3.14-make.patch
+)
+
+src_configure() {
+ tc-export CC
+}
+
+src_test() {
+ emake -j1 test
+}
+
+src_install() {
+ emake DESTDIR="${ED}"/usr install
+ einstalldocs
+}