summaryrefslogtreecommitdiff
path: root/dev-embedded/xa
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-02-12 09:56:54 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-02-12 09:56:54 +0000
commitebc282ef4dfa408accac685565b8ee5f6faec119 (patch)
treec0a4f713228cda0ab17eed46f0bb7ca8cb8be2f6 /dev-embedded/xa
parent6c8694a707151d59555b0e4e48235f085ce166c3 (diff)
gentoo auto-resync : 12:02:2023 - 09:56:54
Diffstat (limited to 'dev-embedded/xa')
-rw-r--r--dev-embedded/xa/Manifest3
-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, 94 insertions, 0 deletions
diff --git a/dev-embedded/xa/Manifest b/dev-embedded/xa/Manifest
index 2af09d9f3594..f1e6c6a63e5b 100644
--- a/dev-embedded/xa/Manifest
+++ b/dev-embedded/xa/Manifest
@@ -1,4 +1,7 @@
AUX xa-2.3.10-Makefile.patch 1840 BLAKE2B 1d8b4d7ed1ed97991dd611f77ff8daf6bb404e2892e271404d9b4b02e475b863e8ad3c45c79d07f5bbb9e69c19fd64f4b895a1868444729137ae97837e698b73 SHA512 b16462153b12604c6e3d8fba54e3d1fe19b5d907bed4141319d863d497582fe46fddfa15b0ab1c697ea4536e6fa3e5f86b68266a3b8da2c7d43f9577a10036e7
+AUX xa-2.3.14-make.patch 1475 BLAKE2B e138d9843a41d58830d3786ae39872191d28954a1fc7c1be48b3fffd39b5527b180181972f7419260e0a1207047f693ab7a0328973bafde441f4a87fcd14879a SHA512 43fca125536f06a066b4886e0e5d629348dbd12fd0769e84d3eb73282c94dfa6fa6cb6eefc72286db48769aed28d4171f1eecc14a215ab109a7630c80f227ba3
DIST xa-2.3.13.tar.gz 155606 BLAKE2B 8196f8f88bee29dbab9ad026c0d4e3519159c4ed7579dc7db391c0bdd7b1bfe31e2884644258d863e299ac3b5fcc43718b3d95b9b7d7802541a9d58366728ffe SHA512 b8a4c1856e51bbe212b98be06895987d6fb926a229511a67ea90a934da1fcc84daf29bd289c3c4c2254d2bce345333bb92747947f3286376761613b2e181e99b
+DIST xa-2.3.14.tar.gz 156876 BLAKE2B 3dd4f369d69cd85c7c545e4aba7698deb9402946c755ac2709c43cb4a795d1cde730286a4a0df2615c39367443788cd4314bf526def863fa57bc85d36ca2dc60 SHA512 71d4631cb3e698b6522ca76c4b34078ded0632533bdaaa8b8d584eb27f0958ed288a6765136ff0ad03cd861a2dccbb76c6d8db0abf277a61ae864ad23212653d
EBUILD xa-2.3.13.ebuild 570 BLAKE2B 1a893dde63dc4d49e663aba4f51b0c60add907575cbf42c1c002094dd5822d5e8201ccd98e17a04d2d2b244340196bdd1b92a171d62c3b9a18b621d7ed48d76e SHA512 8e6e6889519838291647320d347b9116dcc0d669fec8d11f7ef52988ea4d697a13bf59223402a96c5b15b6bf1fb3a419246648a75095516a9653da77245555ea
+EBUILD xa-2.3.14.ebuild 568 BLAKE2B 917260ab6bcb71ebc1997c3728e67cde7627a811eeb9510bcc53f31b50e68c05e0fdea84838216c5c2853b647cd0366a80899e05fc71e39bb12631196c75a498 SHA512 42ff141500fe0d0b828c97bec9463012d2ca09feecb502cd10fc9f8bb1817463072f880944914c2ab1a0feabea0e6db1210e2a22003f4c6b343cf3fc1c69353b
MISC metadata.xml 548 BLAKE2B 3acb4c1e9192f25578d0e57f4527c1fd9af3738f48978cd5af39e9728336a23576f19e48568028c47b9db1394539280553590bcd29c206d11ab4acba50c5dbda SHA512 6b1274a1ee5456a5e2cdee2e1bfd34777b66d5178034b11f314549640c3085d069d96e71da9d476c03977540b6a08f8acb034b8df938b8caac1005eee4d2066d
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
+}