From d09ae1a39e6408d3577ef7037fc8738b83aaeae8 Mon Sep 17 00:00:00 2001 From: Samuel Bauer Date: Thu, 29 Apr 2021 22:04:42 +0200 Subject: [PATCH] app-emulation/arnold: new ebuild Signed-off-by: Samuel Bauer --- app-emulation/arnold/Manifest | 1 + app-emulation/arnold/arnold-20170513.ebuild | 51 ++++++++++++++++++++ app-emulation/arnold/files/arnold.png | Bin 0 -> 378 bytes app-emulation/arnold/metadata.xml | 11 +++++ 4 files changed, 63 insertions(+) create mode 100644 app-emulation/arnold/Manifest create mode 100644 app-emulation/arnold/arnold-20170513.ebuild create mode 100644 app-emulation/arnold/files/arnold.png create mode 100644 app-emulation/arnold/metadata.xml diff --git a/app-emulation/arnold/Manifest b/app-emulation/arnold/Manifest new file mode 100644 index 0000000000..108e379005 --- /dev/null +++ b/app-emulation/arnold/Manifest @@ -0,0 +1 @@ +DIST arnold-20170513.zip 17247943 BLAKE2B 53212fe2b517adb065b874c9b2c86a322429f87e22d563bb6cc63a48a37d4498aaaece6bee05a4509b7940a3b38af2f6c7fb40043a448ae56a15284079f010d8 SHA512 f1e56d7a887e459cc9679582ffebd230c7c86a971832a6030a12f5025c32a70338f3f6b3060c925321d0fd52759097a3ecb1801d2fbd75ceaa668e98184cc0ca diff --git a/app-emulation/arnold/arnold-20170513.ebuild b/app-emulation/arnold/arnold-20170513.ebuild new file mode 100644 index 0000000000..ceda03f89b --- /dev/null +++ b/app-emulation/arnold/arnold-20170513.ebuild @@ -0,0 +1,51 @@ +# Copyright 2019-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake desktop wxwidgets + +DESCRIPTION="Amstrad CPC emulator" +HOMEPAGE="http://www.cpctech.org.uk" +SRC_URI="http://cpctech.cpc-live.com/arnsrc.zip -> ${P}.zip" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="inkz80" + +DEPEND=" + media-libs/libsdl2 + virtual/opengl +" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/src + +WX_GTK_VER="3.0-gtk3" + +src_prepare() { + setup-wxwidgets + sed -i "4421s:=.*$:=wxT(\"/usr/share/${PN}/\");:" arngui/arnguiApp.cpp || die + # Prevent running at 150% of original speed + sed -i '390s/20000/30000/' arngui/sdl2/SDL2PlatformSpecific.cpp || die + cmake_src_prepare +} + +src_configure() { + mycmakeargs=( + -DBUILD_SHARED_LIBS=OFF + -DCMAKE_SKIP_RPATH=YES + -DZ80_VERSION="USE_$(usex inkz80 INK ARN)Z80" + -DSDL_VERSION="USE_SDL2" + ) + cmake_src_configure +} + +src_install() { + cd "${WORKDIR}"/exe/Gentoo/${PN} || die + doicon "${FILESDIR}"/${PN}.png + insinto /usr/share/${PN}/ + dobin arnold + doins *.* +} diff --git a/app-emulation/arnold/files/arnold.png b/app-emulation/arnold/files/arnold.png new file mode 100644 index 0000000000000000000000000000000000000000..e54d0be9317f0e8eb6143d508c70b4679fbe66c9 GIT binary patch literal 378 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnF3?v&v(vJfvmUKs7M+SzC{oH>NSwWJ?9znhg z3{`3j3=J&|48MRv4KElNN(~qoUL`OvSj}Ky5HFasE6@fgAsyfo;tHgJ;6G3q1H*v> z2O1h0Ae{gI{|6d$0F^T^mIV0)GdMiEkp|)~@oc>21sUttwvWahYY z_fQT{$lue&F+}5ha)JW00oNjiUz{A8yIXb~5(r~Vd>p{Sz}c~M>H*OmNumP!`mWa} z^%;n+Zm6iV+$E+GypfAx>y$+qjLhO12Xq@2wk}dokz`=V7jk0kTNyYPXtZjHYeY#( zVo9o1a#1RfVlXl=G}Se*&^0y;F)*|;HnlP})iyA)GBCKV|41A~LvDUbW?CgsgMo>z hfvK*M5lDl9v6X=ZL<8S)r^`SM44$rjF6*2UngDB=XdnOp literal 0 HcmV?d00001 diff --git a/app-emulation/arnold/metadata.xml b/app-emulation/arnold/metadata.xml new file mode 100644 index 0000000000..257786bedf --- /dev/null +++ b/app-emulation/arnold/metadata.xml @@ -0,0 +1,11 @@ + + + + + mazes-80 + mazes-80@none.org + + + Use inkz80 processor emulation + +