1 |
commit: c9e93c41ade14ff88cf0fc7c81a49f97a32cc97e |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 30 02:06:29 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 30 02:09:05 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9e93c41 |
7 |
|
8 |
app-emulation/uxn: bump to 0_p20220921 |
9 |
|
10 |
monthly snapshot, from |
11 |
https://git.sr.ht/~rabbits/uxn/commit/cbc61578b77881232fda4cc42aa914a0806b786f |
12 |
|
13 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
14 |
|
15 |
app-emulation/uxn/Manifest | 1 + |
16 |
app-emulation/uxn/uxn-0_p20220921.ebuild | 53 ++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 54 insertions(+) |
18 |
|
19 |
diff --git a/app-emulation/uxn/Manifest b/app-emulation/uxn/Manifest |
20 |
index 9f90f4c25b63..3fe474684cb7 100644 |
21 |
--- a/app-emulation/uxn/Manifest |
22 |
+++ b/app-emulation/uxn/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST uxn-0_p20220815.tar.gz 286763 BLAKE2B d50e52da1614fdd2939ad09d5c372c103cbfa074b10e1a17560baa3ad5e09a81b9627efdc5f17c7572798d06f1e6a388cb473348950cef5ba45c7d40b3716ec6 SHA512 237c6d633783006d8503b6b4726aaa1d8ed22209c0c6368e78a3da0703d92cb8b1e9c5c7372faecc374082be56608ac1857efc0629e0dff6e374a2adbf1d20ea |
25 |
+DIST uxn-0_p20220921.tar.gz 286803 BLAKE2B 98230eec1f5071451a25dbe0136f3fd2d7e9ad08287df40bef611ae3012e3775d787a653a43fb4f1cb6c8f213cb8d39684e48c4f6c225bc19e86f1e4b94d73ba SHA512 8568114ddd98672aab4ca59ab279d39ff7a30c04d0b2a53da85b342a17a80d82b5b0ab90f04f63aa0491f8feaa91655f8fa725ec0d76a559b6201407b47bf1f5 |
26 |
|
27 |
diff --git a/app-emulation/uxn/uxn-0_p20220921.ebuild b/app-emulation/uxn/uxn-0_p20220921.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..734928959333 |
30 |
--- /dev/null |
31 |
+++ b/app-emulation/uxn/uxn-0_p20220921.ebuild |
32 |
@@ -0,0 +1,53 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+H=cbc61578b77881232fda4cc42aa914a0806b786f |
39 |
+ |
40 |
+inherit toolchain-funcs |
41 |
+ |
42 |
+DESCRIPTION="An assembler and emulator for the Uxn stack-machine, written in ANSI C" |
43 |
+HOMEPAGE=" |
44 |
+ https://wiki.xxiivv.com/site/uxn.html |
45 |
+ https://git.sr.ht/~rabbits/uxn/ |
46 |
+" |
47 |
+ |
48 |
+if [[ ${PV} == *9999* ]] ; then |
49 |
+ inherit git-r3 |
50 |
+ EGIT_REPO_URI="https://git.sr.ht/~rabbits/uxn.git" |
51 |
+else |
52 |
+ SRC_URI="https://git.sr.ht/~rabbits/uxn/archive/${H}.tar.gz -> ${P}.tar.gz" |
53 |
+ S="${WORKDIR}"/${PN}-${H} |
54 |
+ KEYWORDS="~amd64 ~x86" |
55 |
+fi |
56 |
+ |
57 |
+LICENSE="MIT" |
58 |
+SLOT="0" |
59 |
+ |
60 |
+RDEPEND="media-libs/libsdl2:=" |
61 |
+DEPEND="${RDEPEND}" |
62 |
+ |
63 |
+PATCHES=( "${FILESDIR}"/uxn-build.sh.patch ) |
64 |
+ |
65 |
+src_compile() { |
66 |
+ CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${LDFLAGS}" ./build.sh --no-run || |
67 |
+ die "build failed" |
68 |
+ |
69 |
+ local f |
70 |
+ for f in ./projects/{examples/*,software,utils}/*.tal ; do |
71 |
+ ./bin/uxnasm "${f}" "$(dirname "${f}")"/"$(basename "${f}" .tal)".rom || |
72 |
+ die "failed to assemble ${f}" |
73 |
+ done |
74 |
+} |
75 |
+ |
76 |
+src_install() { |
77 |
+ exeinto /usr/bin |
78 |
+ doexe bin/uxn* |
79 |
+ |
80 |
+ insinto /usr/share/uxn |
81 |
+ doins bin/*.rom |
82 |
+ doins -r projects |
83 |
+ |
84 |
+ einstalldocs |
85 |
+} |