summaryrefslogtreecommitdiff
path: root/app-emulation
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-08-17 02:31:41 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-08-17 02:31:41 +0100
commit91e1f8a90b85372d757efd9a1fb7dd1685ea6b50 (patch)
treeebeff59a4470abb242c47417f217e36e21fe6a0c /app-emulation
parentae99f3df3fb5c7ebb085d4a198c1854a4c9a1bee (diff)
gentoo auto-resync : 17:08:2022 - 02:31:41
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/Manifest.gzbin14815 -> 14980 bytes
-rw-r--r--app-emulation/uxn/Manifest5
-rw-r--r--app-emulation/uxn/files/uxn-build.sh.patch11
-rw-r--r--app-emulation/uxn/metadata.xml15
-rw-r--r--app-emulation/uxn/uxn-0_p20220815.ebuild53
-rw-r--r--app-emulation/uxn/uxn-9999.ebuild53
6 files changed, 137 insertions, 0 deletions
diff --git a/app-emulation/Manifest.gz b/app-emulation/Manifest.gz
index 3a4c2d3f0f33..0ce9ab80451d 100644
--- a/app-emulation/Manifest.gz
+++ b/app-emulation/Manifest.gz
Binary files differ
diff --git a/app-emulation/uxn/Manifest b/app-emulation/uxn/Manifest
new file mode 100644
index 000000000000..8e68923a6733
--- /dev/null
+++ b/app-emulation/uxn/Manifest
@@ -0,0 +1,5 @@
+AUX uxn-build.sh.patch 363 BLAKE2B 5283c0a42a2e2ec96bbc15ea88bd7a4ff2a3b0f81274f87f6508fde09f1b6563b0bda6d96c2939e4a6d7bf4fc2fa5cadc1c79a7ab29bb0ffebaa3cdf03b86eb3 SHA512 f5b1df9b62ee9dc88a11e0950f7dd606e699ef6b23664cb37ba75c96e663cca1364fbff1597333db06bd6b3a7b5f797af612e2ea52002254dd30f03f13d723d0
+DIST uxn-0_p20220815.tar.gz 286763 BLAKE2B d50e52da1614fdd2939ad09d5c372c103cbfa074b10e1a17560baa3ad5e09a81b9627efdc5f17c7572798d06f1e6a388cb473348950cef5ba45c7d40b3716ec6 SHA512 237c6d633783006d8503b6b4726aaa1d8ed22209c0c6368e78a3da0703d92cb8b1e9c5c7372faecc374082be56608ac1857efc0629e0dff6e374a2adbf1d20ea
+EBUILD uxn-0_p20220815.ebuild 1135 BLAKE2B c7bbe65d7cefcaf2906269c1cbf6b4b80fc87a90bd8e50160130847cca3a5a5557324acdab8bcf5981c503a0857162fcd5d7a4b800755605d2f889fa6c71b5eb SHA512 d3f79d6f5ca928081b885c8e62c7d52c4339eae336e0c07d22484edceab01ce79b3f0671a0f7cc09ec0a3120d3181faf906df193987be30d5fd643d7fb7745b7
+EBUILD uxn-9999.ebuild 1135 BLAKE2B c7bbe65d7cefcaf2906269c1cbf6b4b80fc87a90bd8e50160130847cca3a5a5557324acdab8bcf5981c503a0857162fcd5d7a4b800755605d2f889fa6c71b5eb SHA512 d3f79d6f5ca928081b885c8e62c7d52c4339eae336e0c07d22484edceab01ce79b3f0671a0f7cc09ec0a3120d3181faf906df193987be30d5fd643d7fb7745b7
+MISC metadata.xml 559 BLAKE2B 9cce4a7863a95959384b58eb583e10efd781b71f7bcf3026fc877886f02bb988c4d716bd021eb8dbaef18e2ad3ecd80370fd841ab4e2c476ac17ccf3820f8a18 SHA512 9efe351c1e38606660ccc97c5069837f710fcb2226dafe8950a4dbc693d75b83fcdfe89d8da0930dc490daf807f32d9ab4bc07190653f8bd5bd556f9eff6142a
diff --git a/app-emulation/uxn/files/uxn-build.sh.patch b/app-emulation/uxn/files/uxn-build.sh.patch
new file mode 100644
index 000000000000..a99ed23d737e
--- /dev/null
+++ b/app-emulation/uxn/files/uxn-build.sh.patch
@@ -0,0 +1,11 @@
+--- a/build.sh
++++ b/build.sh
+@@ -94,7 +94,7 @@ then
+ CFLAGS="${CFLAGS} -DDEBUG -Wpedantic -Wshadow -Wextra -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Wvla -g -Og -fsanitize=address -fsanitize=undefined"
+ CORE='src/uxn.c'
+ else
+- CFLAGS="${CFLAGS} -DNDEBUG -Os -g0 -s"
++ CFLAGS="${CFLAGS} -DNDEBUG"
+ CORE='src/uxn.c'
+ fi
+
diff --git a/app-emulation/uxn/metadata.xml b/app-emulation/uxn/metadata.xml
new file mode 100644
index 000000000000..e7efab8c0508
--- /dev/null
+++ b/app-emulation/uxn/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+ <maintainer type="person">
+ <email>xgqt@gentoo.org</email>
+ <name>Maciej Barć</name>
+ </maintainer>
+ <longdescription>
+ Uxn is a virtual machine with 32 instructions. This one-page computer is
+ capable of hosting small applications, programmable in a unique language.
+ It was designed with an implementation-first mindset with a focus on
+ creating portable tools and games.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-emulation/uxn/uxn-0_p20220815.ebuild b/app-emulation/uxn/uxn-0_p20220815.ebuild
new file mode 100644
index 000000000000..ada1e5c54013
--- /dev/null
+++ b/app-emulation/uxn/uxn-0_p20220815.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+H=85ae1f6ebea635f35974218be8faf7557390a7e9
+
+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/uxn.git"
+else
+ SRC_URI="https://git.sr.ht/~rabbits/uxn/archive/${H}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}"/${PN}-${H}
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+
+RDEPEND="media-libs/libsdl2:="
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/uxn-build.sh.patch )
+
+src_compile() {
+ CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${LDFLAGS}" ./build.sh --no-run ||
+ die "build failed"
+
+ local f
+ for f in ./projects/{examples/*,software,utils}/*.tal ; do
+ ./bin/uxnasm "${f}" "$(dirname "${f}")"/"$(basename "${f}" .tal)".rom ||
+ die "failed to assemble ${f}"
+ done
+}
+
+src_install() {
+ exeinto /usr/bin
+ doexe bin/uxn*
+
+ insinto /usr/share/uxn
+ doins bin/*.rom
+ doins -r projects
+
+ einstalldocs
+}
diff --git a/app-emulation/uxn/uxn-9999.ebuild b/app-emulation/uxn/uxn-9999.ebuild
new file mode 100644
index 000000000000..ada1e5c54013
--- /dev/null
+++ b/app-emulation/uxn/uxn-9999.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+H=85ae1f6ebea635f35974218be8faf7557390a7e9
+
+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/uxn.git"
+else
+ SRC_URI="https://git.sr.ht/~rabbits/uxn/archive/${H}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}"/${PN}-${H}
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+
+RDEPEND="media-libs/libsdl2:="
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/uxn-build.sh.patch )
+
+src_compile() {
+ CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${LDFLAGS}" ./build.sh --no-run ||
+ die "build failed"
+
+ local f
+ for f in ./projects/{examples/*,software,utils}/*.tal ; do
+ ./bin/uxnasm "${f}" "$(dirname "${f}")"/"$(basename "${f}" .tal)".rom ||
+ die "failed to assemble ${f}"
+ done
+}
+
+src_install() {
+ exeinto /usr/bin
+ doexe bin/uxn*
+
+ insinto /usr/share/uxn
+ doins bin/*.rom
+ doins -r projects
+
+ einstalldocs
+}