From 9d653ad13f8439f63e08f5f86bf81b6547460b4e Mon Sep 17 00:00:00 2001 From: Ryan Fox Date: Fri, 25 Dec 2020 23:41:24 +0000 Subject: [PATCH] app-emulation/x16-emulator: New package Sorry about not packaging the ROM, I seriously don't know where to put it. Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Ryan Fox --- app-emulation/x16-emulator/Manifest | 4 ++ app-emulation/x16-emulator/metadata.xml | 8 ++++ .../x16-emulator/x16-emulator-38.ebuild | 46 +++++++++++++++++++ .../x16-emulator/x16-emulator-9999.ebuild | 46 +++++++++++++++++++ 4 files changed, 104 insertions(+) create mode 100644 app-emulation/x16-emulator/Manifest create mode 100644 app-emulation/x16-emulator/metadata.xml create mode 100644 app-emulation/x16-emulator/x16-emulator-38.ebuild create mode 100644 app-emulation/x16-emulator/x16-emulator-9999.ebuild diff --git a/app-emulation/x16-emulator/Manifest b/app-emulation/x16-emulator/Manifest new file mode 100644 index 0000000..d6b480e --- /dev/null +++ b/app-emulation/x16-emulator/Manifest @@ -0,0 +1,4 @@ +DIST x16-emulator-38.tar.gz 168876 BLAKE2B 8f9b3a3c111b1b2385290756964289848a4ea9a873ed802e6ed20462e5a93d0b32baf430a4b3536ee398049a4dbc7df148d2b5412db8ca25530f641f00cf994a SHA512 6825a53350c33c5699d1d240f545b13e6a21f2c7ca867b8e30d0b5956dea85fcbb9c1729666d11585ca3c1a34651a213b3c742c74a11a3ef07f1d3be3d0a0ad4 +EBUILD x16-emulator-38.ebuild 1243 BLAKE2B b4638fb5a15033fcf6aea71257aa04de1ea585e7f52976d50e334ec57828a50f2fce5f2f38534f98554fff88ddee45d055f7159c8a349ab4626a4cbf4ef1186b SHA512 a79c3b4207ee89c149e6281baaef8ee4ab48e6797ebd0d1a8226f8e49228786adc55647117ad8853a17373844115770a5e9e847ae918349eff6de47284396bca +EBUILD x16-emulator-9999.ebuild 1243 BLAKE2B b4638fb5a15033fcf6aea71257aa04de1ea585e7f52976d50e334ec57828a50f2fce5f2f38534f98554fff88ddee45d055f7159c8a349ab4626a4cbf4ef1186b SHA512 a79c3b4207ee89c149e6281baaef8ee4ab48e6797ebd0d1a8226f8e49228786adc55647117ad8853a17373844115770a5e9e847ae918349eff6de47284396bca +MISC metadata.xml 236 BLAKE2B fdb34c66e3059efc0efb2328ffedb24c495be95dfeb68b7adcdf5ab1a88eee6788294d07ec032238de7d9127cffd50a1598b42aa8f99d3d11f54a761c79a9482 SHA512 43add4c2db3d06110521dea982cfcbddc98d63bb1e1b89952511654d54f09746e0d76ac1e0f0e70d2832357f44fe11fc4653500b856c7b29d05a55bb70535e80 diff --git a/app-emulation/x16-emulator/metadata.xml b/app-emulation/x16-emulator/metadata.xml new file mode 100644 index 0000000..b27c0d9 --- /dev/null +++ b/app-emulation/x16-emulator/metadata.xml @@ -0,0 +1,8 @@ + + + + +flewkey@2a03.party +Ryan Fox + + diff --git a/app-emulation/x16-emulator/x16-emulator-38.ebuild b/app-emulation/x16-emulator/x16-emulator-38.ebuild new file mode 100644 index 0000000..01c4182 --- /dev/null +++ b/app-emulation/x16-emulator/x16-emulator-38.ebuild @@ -0,0 +1,46 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +if [[ ${PV} != *9999* ]]; then + SRC_URI="https://github.com/commanderx16/x16-emulator/archive/r${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +else + inherit git-r3 + EGIT_REPO_URI="https://github.com/commanderx16/x16-emulator.git" +fi + +DESCRIPTION="Emulator for the Commander X16 computer" +HOMEPAGE="https://github.com/commanderx16/x16-emulator" +LICENSE="BSD-2" +SLOT="0" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND="" + +src_unpack() { + if [[ ${PV} != *9999* ]]; then + default + mv "${WORKDIR}/${PN}-r${PV}" "${S}" + else + git-r3_src_unpack + fi +} + +src_install() { + dobin "${S}/x16emu" +} + +pkg_postinst() { + elog "The Commander X16 emulator requires a ROM to run. The location can" + elog "be specified using the -rom /path/to/rom.bin option." + elog + elog "Build instructions are available in the README of the x16-rom" + elog "repository. The assembler is available as dev-embedded/cc65 in this" + elog "overlay. If anyone can think of a good category and directory to put" + elog "the ROM, let me know and I'll package it so this won't be necessary." + elog + elog "https://github.com/commanderx16/x16-rom/blob/master/README.md#building-the-rom" +} diff --git a/app-emulation/x16-emulator/x16-emulator-9999.ebuild b/app-emulation/x16-emulator/x16-emulator-9999.ebuild new file mode 100644 index 0000000..01c4182 --- /dev/null +++ b/app-emulation/x16-emulator/x16-emulator-9999.ebuild @@ -0,0 +1,46 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +if [[ ${PV} != *9999* ]]; then + SRC_URI="https://github.com/commanderx16/x16-emulator/archive/r${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +else + inherit git-r3 + EGIT_REPO_URI="https://github.com/commanderx16/x16-emulator.git" +fi + +DESCRIPTION="Emulator for the Commander X16 computer" +HOMEPAGE="https://github.com/commanderx16/x16-emulator" +LICENSE="BSD-2" +SLOT="0" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND="" + +src_unpack() { + if [[ ${PV} != *9999* ]]; then + default + mv "${WORKDIR}/${PN}-r${PV}" "${S}" + else + git-r3_src_unpack + fi +} + +src_install() { + dobin "${S}/x16emu" +} + +pkg_postinst() { + elog "The Commander X16 emulator requires a ROM to run. The location can" + elog "be specified using the -rom /path/to/rom.bin option." + elog + elog "Build instructions are available in the README of the x16-rom" + elog "repository. The assembler is available as dev-embedded/cc65 in this" + elog "overlay. If anyone can think of a good category and directory to put" + elog "the ROM, let me know and I'll package it so this won't be necessary." + elog + elog "https://github.com/commanderx16/x16-rom/blob/master/README.md#building-the-rom" +}