From bf37fc7848e3369526f28fa199247173b014e120 Mon Sep 17 00:00:00 2001 From: David Heidelberg Date: Wed, 30 Oct 2019 21:51:04 +0100 Subject: [PATCH] dev-embedded/xa: New package Thanks to doj@cubic.org. Bug: https://bugs.gentoo.org/686234 Bug: https://github.com/gentoo/gentoo/pull/13504 Signed-off-by: David Heidelberg Signed-off-by: James Le Cuirot --- dev-embedded/xa/Manifest | 1 + dev-embedded/xa/files/xa-2.3.9-Makefile.patch | 18 ++++++++++++++++++ dev-embedded/xa/metadata.xml | 14 ++++++++++++++ dev-embedded/xa/xa-2.3.9.ebuild | 18 ++++++++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 dev-embedded/xa/Manifest create mode 100644 dev-embedded/xa/files/xa-2.3.9-Makefile.patch create mode 100644 dev-embedded/xa/metadata.xml create mode 100644 dev-embedded/xa/xa-2.3.9.ebuild diff --git a/dev-embedded/xa/Manifest b/dev-embedded/xa/Manifest new file mode 100644 index 000000000000..ef97dcae03dc --- /dev/null +++ b/dev-embedded/xa/Manifest @@ -0,0 +1 @@ +DIST xa-2.3.9.tar.gz 151086 BLAKE2B 312d082bf18eebdcd41eb4127a035db5fe2b47121bceadf45aa06e515160cb9233742791447806ee057a1b4e3860ecddda3f85f76d0e9d672dcd00cb8a1871c4 SHA512 9e140192f7daae8b5042a01c81c85f6ec4e53c727fa5af624fbe94a8ce85fbf821a1ee94dc9c11e8087b08a4060010b989f95b77cbcd2b550ab552c3b5455dfe diff --git a/dev-embedded/xa/files/xa-2.3.9-Makefile.patch b/dev-embedded/xa/files/xa-2.3.9-Makefile.patch new file mode 100644 index 000000000000..d8db42615989 --- /dev/null +++ b/dev-embedded/xa/files/xa-2.3.9-Makefile.patch @@ -0,0 +1,18 @@ +--- 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/metadata.xml b/dev-embedded/xa/metadata.xml new file mode 100644 index 000000000000..78ab730110bc --- /dev/null +++ b/dev-embedded/xa/metadata.xml @@ -0,0 +1,14 @@ + + + + + games@gentoo.org + Gentoo Games Project + + + xa is a high-speed, two-pass portable cross-assembler. It + understands mnemonics and generates code for NMOS 6502s (such as + 6502A, 6504, 6507, 6510, 7501, 8500, 8501, 8502 ...), CMOS 6502s + (65C02 and Rockwell R65C02) and the 65816. + + diff --git a/dev-embedded/xa/xa-2.3.9.ebuild b/dev-embedded/xa/xa-2.3.9.ebuild new file mode 100644 index 000000000000..9c585f7bea74 --- /dev/null +++ b/dev-embedded/xa/xa-2.3.9.ebuild @@ -0,0 +1,18 @@ +# 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" +) -- 2.26.2