From be9e110b9ee887db096c7538debb061371c4a648 Mon Sep 17 00:00:00 2001 From: Ryan Fox Date: Sun, 8 May 2022 20:17:27 -0700 Subject: [PATCH] app-emulation/x16-emulator: Bump to 41 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Ryan Fox --- app-emulation/x16-emulator/Manifest | 3 + .../x16-emulator/x16-emulator-41.ebuild | 60 +++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 app-emulation/x16-emulator/x16-emulator-41.ebuild diff --git a/app-emulation/x16-emulator/Manifest b/app-emulation/x16-emulator/Manifest index 059717d..f679dd7 100644 --- a/app-emulation/x16-emulator/Manifest +++ b/app-emulation/x16-emulator/Manifest @@ -1,7 +1,10 @@ DIST x16-emulator-38.tar.gz 168876 BLAKE2B 8f9b3a3c111b1b2385290756964289848a4ea9a873ed802e6ed20462e5a93d0b32baf430a4b3536ee398049a4dbc7df148d2b5412db8ca25530f641f00cf994a SHA512 6825a53350c33c5699d1d240f545b13e6a21f2c7ca867b8e30d0b5956dea85fcbb9c1729666d11585ca3c1a34651a213b3c742c74a11a3ef07f1d3be3d0a0ad4 DIST x16-emulator-39.tar.gz 173848 BLAKE2B 3249caa13a59454f4edec029d674ca7b09c13523411482862bd97d06147cba1d818964029150abb6bc06f4fd31b75504ff76a86a184de65216f803e95b566d22 SHA512 5b45e244ef971a8dcdb18d15b7a985b4801a7362271062c9aeae01ea65740c44a0a69076b715f08291417b1db933134b0df3b38552500d2f5811e47ad2f43ada +DIST x16-emulator-41.tar.gz 182060 BLAKE2B 16d2f0b19e52b63456ee965d132061c02f95d32fd26afd14df72ba3a24bfaee765b7d85fbb9b7c41ddcba4fc701e1b5c097b6959e0e5f017ecad233e004d0c0c SHA512 9d5103f381a293e9e4f6b79ebb6d1bbb811555addec0025ec1157874dc9b46d48788e78f9cf2cae74968b4155ab0c1abe9c23b5e24b71f37b16604cef90f5609 DIST x16-rom-39.tar.gz 599453 BLAKE2B c9379769836937c74b83e82bd35087212904f20e4be8106f60c353896936d2fce7e30ab5a9f3b78d39c5d97cce91f662cdf3d504ebdb4d4d972914ab418672c7 SHA512 b74d24b8147702dac86d42acb103cac6d46b2d26293b23b40d6fbcd8423995788d4cd0ab450930daaaefd9ab6e7fa90e63b44c2c028d80a7b2640f08fed59a72 +DIST x16-rom-41.tar.gz 622306 BLAKE2B b53e901f93f3be58f4eb517d058c111220b589f794df0fd1304877425f946ec8e9715d8b7f4798459b4821d037a9761c09fc949648e5b7f4f5e672f8890f8dd5 SHA512 eb713c0eafb46e7513cb04b2fc9b9375a35f941b1e1fa4584d5b614db1bb4b9ac43afa0a321d053f224168f2da03212e0094804285cb40a3f5165c0636474791 EBUILD x16-emulator-38.ebuild 1243 BLAKE2B b4638fb5a15033fcf6aea71257aa04de1ea585e7f52976d50e334ec57828a50f2fce5f2f38534f98554fff88ddee45d055f7159c8a349ab4626a4cbf4ef1186b SHA512 a79c3b4207ee89c149e6281baaef8ee4ab48e6797ebd0d1a8226f8e49228786adc55647117ad8853a17373844115770a5e9e847ae918349eff6de47284396bca EBUILD x16-emulator-39.ebuild 1411 BLAKE2B 5dad37aa4c2adc7149bd67f410df3858091ac49134029d427a64ed020145e7325548fb65f07a5edbf17e678391c6fea81b7882c82320331f8c596f6e20c374bb SHA512 ee6fed354fca5135769fd7ddc7ffb0db6cf54761690a58bdc37490b3b4f254cf851a621f2f5d58a4af42ab768070dac4b3b499d60b6348112dc75b639bad99ba +EBUILD x16-emulator-41.ebuild 1411 BLAKE2B 5dad37aa4c2adc7149bd67f410df3858091ac49134029d427a64ed020145e7325548fb65f07a5edbf17e678391c6fea81b7882c82320331f8c596f6e20c374bb SHA512 ee6fed354fca5135769fd7ddc7ffb0db6cf54761690a58bdc37490b3b4f254cf851a621f2f5d58a4af42ab768070dac4b3b499d60b6348112dc75b639bad99ba EBUILD x16-emulator-9999.ebuild 1411 BLAKE2B 5dad37aa4c2adc7149bd67f410df3858091ac49134029d427a64ed020145e7325548fb65f07a5edbf17e678391c6fea81b7882c82320331f8c596f6e20c374bb SHA512 ee6fed354fca5135769fd7ddc7ffb0db6cf54761690a58bdc37490b3b4f254cf851a621f2f5d58a4af42ab768070dac4b3b499d60b6348112dc75b639bad99ba MISC metadata.xml 301 BLAKE2B 74ce32158a18ae7d00b2fb5ea169734ac6825c4ea1cb66c7abfb86e27fb181892fce2455d9aa3b568b0bce9a647fb612321b1415c769aeb462b5adb1499493ee SHA512 f15c998ea128fd4888bff501b22eb9450d2c756ae24e9af83f9ec103686aa7c659cebf68edd407252a9c6e1af4ff23c484052744e83e7a3ea518151b30595f4c diff --git a/app-emulation/x16-emulator/x16-emulator-41.ebuild b/app-emulation/x16-emulator/x16-emulator-41.ebuild new file mode 100644 index 0000000..6956aae --- /dev/null +++ b/app-emulation/x16-emulator/x16-emulator-41.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/commanderx16/x16-emulator.git" + ROM_REPO_URI="https://github.com/commanderx16/x16-rom.git" + ROM_P="x16-rom-9999" +else + SRC_URI=" + https://github.com/commanderx16/x16-emulator/archive/r${PV}.tar.gz -> ${P}.tar.gz + https://github.com/commanderx16/x16-rom/archive/r${PV}.tar.gz -> x16-rom-${PV}.tar.gz + " + KEYWORDS="~amd64" + MY_P="${PN}-r${PV}" + S="${WORKDIR}/${MY_P}" + ROM_P="x16-rom-r${PV}" +fi + +DESCRIPTION="Emulator for the Commander X16 computer" +HOMEPAGE="https://github.com/commanderx16/x16-emulator" +LICENSE="BSD-2" +SLOT="0" +IUSE="+rom" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND=" + rom? ( dev-embedded/cc65 ) + media-libs/libsdl2 +" + +src_unpack() { + if [[ ${PV} == 9999 ]]; then + git-r3_src_unpack + use rom && git-r3_fetch "${ROM_REPO_URI}" || die + use rom && git-r3_checkout "${ROM_REPO_URI}" "${WORKDIR}/${ROM_P}" || die + else + default + fi +} + +src_prepare() { + default + sed -i "s/-Werror //" "${S}/Makefile" +} + +src_compile() { + default + use rom && emake -C "${WORKDIR}/${ROM_P}" || die +} + +src_install() { + dodir /opt/${PN} + cp "${S}/x16emu" "${D}/opt/${PN}" || die + use rom && cp "${WORKDIR}/${ROM_P}/build/x16/rom.bin" "${D}/opt/${PN}" || die + dosym "${EPREFIX}/opt/${PN}/x16emu" "${EPREFIX}/usr/bin/x16emu" +}