diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-08-17 02:31:41 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-08-17 02:31:41 +0100 |
commit | 91e1f8a90b85372d757efd9a1fb7dd1685ea6b50 (patch) | |
tree | ebeff59a4470abb242c47417f217e36e21fe6a0c /app-emulation/uxn/uxn-9999.ebuild | |
parent | ae99f3df3fb5c7ebb085d4a198c1854a4c9a1bee (diff) |
gentoo auto-resync : 17:08:2022 - 02:31:41
Diffstat (limited to 'app-emulation/uxn/uxn-9999.ebuild')
-rw-r--r-- | app-emulation/uxn/uxn-9999.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
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 +} |