Gentoo Archives: gentoo-commits

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