diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-25 02:03:50 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-25 02:03:50 +0000 |
commit | 426aa983e40197a69c600c42e0679b2161ca225c (patch) | |
tree | 0d279fe549a8f3cc4b684897eaf275d91c8411fe /app-emulation/uxn/uxn-0_p20221211.ebuild | |
parent | ec9f79e1d3358df31a704f16a76a269ccceae2b2 (diff) |
gentoo auto-resync : 25:12:2022 - 02:03:49
Diffstat (limited to 'app-emulation/uxn/uxn-0_p20221211.ebuild')
-rw-r--r-- | app-emulation/uxn/uxn-0_p20221211.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/app-emulation/uxn/uxn-0_p20221211.ebuild b/app-emulation/uxn/uxn-0_p20221211.ebuild new file mode 100644 index 000000000000..0733343327a1 --- /dev/null +++ b/app-emulation/uxn/uxn-0_p20221211.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +H=6317b5cf181e56253da10e0e5051ac75bbb5c4b2 + +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 +} |