dev-embedded/xa: Bump to 2.3.10, drop 2.3.9, respect flags
authorJames Le Cuirot <chewi@gentoo.org>
Mon, 18 Nov 2019 23:27:07 +0000 (23:27 +0000)
committerJames Le Cuirot <chewi@gentoo.org>
Mon, 18 Nov 2019 23:33:08 +0000 (23:33 +0000)
Package-Manager: Portage-2.3.79, Repoman-2.3.17
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
dev-embedded/xa/Manifest
dev-embedded/xa/files/xa-2.3.9-Makefile.patch [deleted file]
dev-embedded/xa/xa-2.3.10.ebuild [new file with mode: 0644]
dev-embedded/xa/xa-2.3.9.ebuild [deleted file]

index ef97dcae03dcb0f48a63be7a2d6f44233371eb17..0066fff628ec8a635f0ab898ca20d9ea23ff1438 100644 (file)
@@ -1 +1 @@
-DIST xa-2.3.9.tar.gz 151086 BLAKE2B 312d082bf18eebdcd41eb4127a035db5fe2b47121bceadf45aa06e515160cb9233742791447806ee057a1b4e3860ecddda3f85f76d0e9d672dcd00cb8a1871c4 SHA512 9e140192f7daae8b5042a01c81c85f6ec4e53c727fa5af624fbe94a8ce85fbf821a1ee94dc9c11e8087b08a4060010b989f95b77cbcd2b550ab552c3b5455dfe
+DIST xa-2.3.10.tar.gz 152433 BLAKE2B af9ab28e6596f6c96abd075779670955e7bfe79b3e9e18c5c75f35ffb166c705a0ebb60dcca1928c49a836eefcd7b15d12437579fbe645c0b5ce51e81da92d8d SHA512 08b9994e295495744d5252fa983b111f41d0447cdb32d0c065f8fbd942ffa0899476d6cfebe1162e4aa08b1d0a2d8df74c2a60987d2509b8bca45da670f4a67f
diff --git a/dev-embedded/xa/files/xa-2.3.9-Makefile.patch b/dev-embedded/xa/files/xa-2.3.9-Makefile.patch
deleted file mode 100644 (file)
index d8db426..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
---- a/Makefile.orig    2019-05-18 09:07:31.331089966 -0700
-+++ b/Makefile 2019-05-18 09:10:15.274673364 -0700
-@@ -17,11 +17,11 @@
- #CFLAGS =
- #LD = ld
--DESTDIR = /usr/local
-+PREFIX ?= /usr
--BINDIR = $(DESTDIR)/bin
--MANDIR = $(DESTDIR)/share/man/man1
--DOCDIR = $(DESTDIR)/share/doc
-+BINDIR = $(DESTDIR)/$(PREFIX)/bin
-+MANDIR = $(DESTDIR)/$(PREFIX)/share/man/man1
-+DOCDIR = $(DESTDIR)/$(PREFIX)/share/doc
- MKDIR = mkdir -p
- INSTALL = install
diff --git a/dev-embedded/xa/xa-2.3.10.ebuild b/dev-embedded/xa/xa-2.3.10.ebuild
new file mode 100644 (file)
index 0000000..0b4aabb
--- /dev/null
@@ -0,0 +1,27 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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/${PN}/dists/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+src_compile() {
+       emake \
+               CC="$(tc-getCC)" \
+               LD="$(tc-getCC) " \
+               CFLAGS="${CFLAGS} ${LDFLAGS}" \
+               LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+       emake install DESTDIR="${ED}/usr"
+       einstalldocs
+}
diff --git a/dev-embedded/xa/xa-2.3.9.ebuild b/dev-embedded/xa/xa-2.3.9.ebuild
deleted file mode 100644 (file)
index 9c585f7..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit autotools
-
-DESCRIPTION="xa high-speed, two-pass portable 6502 cross-assembler"
-HOMEPAGE="https://www.floodgap.com/retrotech/xa/"
-SRC_URI="https://www.floodgap.com/retrotech/${PN}/dists/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-PATCHES=(
-       "${FILESDIR}/${P}-Makefile.patch"
-)