From: "Maciej Barć" <xgqt@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/uxn/
Date: Wed, 22 Jan 2025 16:20:58 +0000 (UTC) [thread overview]
Message-ID: <1737562853.534e5bdbc751af4851ee34a876ef12aaad389899.xgqt@gentoo> (raw)
commit: 534e5bdbc751af4851ee34a876ef12aaad389899
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 22 15:27:58 2025 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Wed Jan 22 16:20:53 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=534e5bdb
app-emulation/uxn: bump to 0_p20250122
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
app-emulation/uxn/Manifest | 1 +
app-emulation/uxn/uxn-0_p20250122.ebuild | 74 ++++++++++++++++++++++++++++++++
2 files changed, 75 insertions(+)
diff --git a/app-emulation/uxn/Manifest b/app-emulation/uxn/Manifest
index ae733c986e80..9410fe61d1a2 100644
--- a/app-emulation/uxn/Manifest
+++ b/app-emulation/uxn/Manifest
@@ -1 +1,2 @@
DIST uxn-0_p20241112.tar.gz 303651 BLAKE2B d632d59bb6b271b8dd9e03ff9efc6e4cf822793b06c3f95278d9e9b0be2242c615611ba87560b5ce9c6cde549752b6f4f578ad4872682665b3c019fcf07efeb5 SHA512 66b3c8ccdd6a79f507f6672161660b3d2f491ac1a186bff963f156e322cdf11494269e73d4bb08b22bb1fe7c7bacb59cb5ba850fef6cb4fe183777fdd8cba2ac
+DIST uxn-0_p20250122.tar.gz 302511 BLAKE2B 1c750abd5a50a869428b82dcdc817897badb4801a0b206597977726c1e3df2c4dee90464968f42152245f33c0767fb54783b786a98e6558b9efec21ad09000ef SHA512 67f4c51e91ac2d46c371bec7e218ce221edbfe4eac38511a6a2ceeb7e80b634b2303b4983918921ceacf387f5a1a11f7b5227003c515259ea1337a46bd018f0e
diff --git a/app-emulation/uxn/uxn-0_p20250122.ebuild b/app-emulation/uxn/uxn-0_p20250122.ebuild
new file mode 100644
index 000000000000..0087bb553567
--- /dev/null
+++ b/app-emulation/uxn/uxn-0_p20250122.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="An assembler and emulator for the Uxn stack-machine, written in ANSI C"
+HOMEPAGE="https://wiki.xxiivv.com/site/uxn.html
+ https://git.sr.ht/~rabbits/uxn/"
+
+if [[ "${PV}" == *9999* ]] ; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://git.sr.ht/~rabbits/${PN}"
+elif [[ "${PV}" == *_p20250122 ]] ; then
+ COMMIT="e17c610d735f45e7397d750ec82f791d0fdb496b"
+
+ SRC_URI="https://git.sr.ht/~rabbits/${PN}/archive/${COMMIT}.tar.gz
+ -> ${P}.tar.gz"
+ S="${WORKDIR}/uxn-${COMMIT}"
+
+ KEYWORDS="~amd64 ~x86"
+else
+ die "Wrong package version, please update the ebuild, given: ${PV}"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+
+RDEPEND="
+ media-libs/libsdl2:=
+"
+DEPEND="
+ ${RDEPEND}
+"
+
+PATCHES=(
+ "${FILESDIR}/uxn-0_p20230609-build.sh.patch"
+)
+
+src_compile() {
+ local -x CC="$(tc-getCC)"
+ local -x CFLAGS="${CFLAGS} ${LDFLAGS}"
+
+ ./build.sh --no-run || die "building with \"build.sh\" failed"
+
+ # Fails to assemble via following loop.
+ # Possibly not mean to be assembled by hand.
+ rm -rf ./projects/library ./projects/software/{asma,launcher}.tal || die
+
+ local tal_file=""
+ local tal_file_base=""
+
+ while read -r tal_file ; do
+ tal_file_base="$(basename "${tal_file}" .tal)"
+
+ ebegin "Assembling ROM ${tal_file_base}"
+ ./bin/uxnasm "${tal_file}" "$(dirname "${tal_file}")/${tal_file_base}.rom"
+ eend ${?} || die "failed to assemble ${tal_file}"
+ done < \
+ <(find projects -type f -name "*.tal")
+}
+
+src_install() {
+ insinto /usr/bin
+ doins ./bin/uxn{asm,cli,emu}
+ fperms 0755 /usr/bin/uxn{asm,cli,emu}
+
+ insinto /usr/share/uxn
+ doins -r ./projects
+
+ einstalldocs
+}
next reply other threads:[~2025-01-22 16:21 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-22 16:20 Maciej Barć [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-02-25 23:12 [gentoo-commits] repo/gentoo:master commit in: app-emulation/uxn/ Maciej Barć
2025-02-23 16:57 Sam James
2025-01-09 21:22 Maciej Barć
2024-12-28 15:59 Sam James
2024-11-13 18:16 Maciej Barć
2024-04-09 9:30 Maciej Barć
2024-04-06 16:37 Arthur Zamarin
2024-03-06 14:23 Maciej Barć
2024-03-05 23:07 Maciej Barć
2024-03-05 23:07 Maciej Barć
2023-09-16 14:48 Maciej Barć
2023-09-07 19:51 Sam James
2023-08-03 19:03 Maciej Barć
2023-08-03 19:03 Maciej Barć
2023-07-29 19:46 Maciej Barć
2023-07-25 13:45 Sam James
2023-06-22 23:18 Maciej Barć
2023-06-22 23:18 Maciej Barć
2023-06-22 23:18 Maciej Barć
2023-06-07 16:11 Sam James
2023-05-02 0:39 Maciej Barć
2023-04-03 19:16 Sam James
2023-02-10 20:59 Maciej Barć
2023-02-08 1:55 Sam James
2023-02-02 17:46 Maciej Barć
2023-02-02 17:46 Maciej Barć
2023-02-02 17:46 Maciej Barć
2022-12-24 22:26 Maciej Barć
2022-12-24 22:26 Maciej Barć
2022-11-06 20:11 Maciej Barć
2022-09-30 2:09 Maciej Barć
2022-08-17 1:22 Sam James
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1737562853.534e5bdbc751af4851ee34a876ef12aaad389899.xgqt@gentoo \
--to=xgqt@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox