diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2023-11-22 10:19:01 -0500 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2023-11-22 10:20:31 -0500 |
commit | 4b137bf898afd0f5caaaa24c163006a42525676a (patch) | |
tree | 7085abcdb6bab9ead975efdf25e673804433252c /dev-embedded/xa | |
parent | dev-qt/qtwebengine: enable v8 for pdfium in live (qt6) (diff) | |
download | gentoo-4b137bf898afd0f5caaaa24c163006a42525676a.tar.gz gentoo-4b137bf898afd0f5caaaa24c163006a42525676a.tar.bz2 gentoo-4b137bf898afd0f5caaaa24c163006a42525676a.zip |
dev-embedded/xa: add 2.4.0
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-embedded/xa')
-rw-r--r-- | dev-embedded/xa/Manifest | 1 | ||||
-rw-r--r-- | dev-embedded/xa/files/xa-2.4.0-make.patch | 28 | ||||
-rw-r--r-- | dev-embedded/xa/xa-2.4.0.ebuild | 31 |
3 files changed, 60 insertions, 0 deletions
diff --git a/dev-embedded/xa/Manifest b/dev-embedded/xa/Manifest index 483ed5ecd16b..fa038a5830e3 100644 --- a/dev-embedded/xa/Manifest +++ b/dev-embedded/xa/Manifest @@ -1 +1,2 @@ DIST xa-2.3.14.tar.gz 156876 BLAKE2B 3dd4f369d69cd85c7c545e4aba7698deb9402946c755ac2709c43cb4a795d1cde730286a4a0df2615c39367443788cd4314bf526def863fa57bc85d36ca2dc60 SHA512 71d4631cb3e698b6522ca76c4b34078ded0632533bdaaa8b8d584eb27f0958ed288a6765136ff0ad03cd861a2dccbb76c6d8db0abf277a61ae864ad23212653d +DIST xa-2.4.0.tar.gz 197862 BLAKE2B 27f8b41dafee9c1c4158681d57f971297a0a63e09df164469f665528cffae0cdd78441c0a939d742463e851f32a73ee30a95f2b2b41e2fe42137041a03041255 SHA512 eebaf67715324735203405016df7311bf2ed568ab0e609c0fec7d9d803c173cde5dea161b7f713cb5215454d1ce69acbde43372016dfe9866ed99acecb9aafb1 diff --git a/dev-embedded/xa/files/xa-2.4.0-make.patch b/dev-embedded/xa/files/xa-2.4.0-make.patch new file mode 100644 index 000000000000..a71ceef23bd7 --- /dev/null +++ b/dev-embedded/xa/files/xa-2.4.0-make.patch @@ -0,0 +1,28 @@ +https://bugs.gentoo.org/722600 +--- a/Makefile ++++ b/Makefile +@@ -4,2 +3,0 @@ +-CC = gcc +-LD = gcc +@@ -9,2 +6,0 @@ +-CFLAGS = -O2 +-LDFLAGS = -lc +@@ -33 +29 @@ +-all: killxa xa uncpk ++all: xa uncpk +@@ -39 +35 @@ +- (cd src && LD=${LD} CC="${CC} ${CFLAGS}" ${MAKE}) ++ (cd src && ${MAKE}) +@@ -45 +41 @@ +- (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.0.ebuild b/dev-embedded/xa/xa-2.4.0.ebuild new file mode 100644 index 000000000000..7ad46858840c --- /dev/null +++ b/dev-embedded/xa/xa-2.4.0.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.4.0-make.patch +) + +src_configure() { + tc-export CC +} + +src_test() { + emake -j1 test +} + +src_install() { + emake DESTDIR="${ED}"/usr install + einstalldocs +} |