Gentoo Archives: gentoo-commits

From: Samuel Bauer <samuel.bauer@×××××.fr>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-emulation/arnold/files/, app-emulation/arnold/
Date: Thu, 29 Apr 2021 20:05:32
Message-Id: 1619726682.d09ae1a39e6408d3577ef7037fc8738b83aaeae8.samuel.bauer@gentoo
1 commit: d09ae1a39e6408d3577ef7037fc8738b83aaeae8
2 Author: Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
3 AuthorDate: Thu Apr 29 20:04:42 2021 +0000
4 Commit: Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
5 CommitDate: Thu Apr 29 20:04:42 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d09ae1a3
7
8 app-emulation/arnold: new ebuild
9
10 Signed-off-by: Samuel Bauer <samuel.bauer <AT> yahoo.fr>
11
12 app-emulation/arnold/Manifest | 1 +
13 app-emulation/arnold/arnold-20170513.ebuild | 51 ++++++++++++++++++++++++++++
14 app-emulation/arnold/files/arnold.png | Bin 0 -> 378 bytes
15 app-emulation/arnold/metadata.xml | 11 ++++++
16 4 files changed, 63 insertions(+)
17
18 diff --git a/app-emulation/arnold/Manifest b/app-emulation/arnold/Manifest
19 new file mode 100644
20 index 000000000..108e37900
21 --- /dev/null
22 +++ b/app-emulation/arnold/Manifest
23 @@ -0,0 +1 @@
24 +DIST arnold-20170513.zip 17247943 BLAKE2B 53212fe2b517adb065b874c9b2c86a322429f87e22d563bb6cc63a48a37d4498aaaece6bee05a4509b7940a3b38af2f6c7fb40043a448ae56a15284079f010d8 SHA512 f1e56d7a887e459cc9679582ffebd230c7c86a971832a6030a12f5025c32a70338f3f6b3060c925321d0fd52759097a3ecb1801d2fbd75ceaa668e98184cc0ca
25
26 diff --git a/app-emulation/arnold/arnold-20170513.ebuild b/app-emulation/arnold/arnold-20170513.ebuild
27 new file mode 100644
28 index 000000000..ceda03f89
29 --- /dev/null
30 +++ b/app-emulation/arnold/arnold-20170513.ebuild
31 @@ -0,0 +1,51 @@
32 +# Copyright 2019-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit cmake desktop wxwidgets
38 +
39 +DESCRIPTION="Amstrad CPC emulator"
40 +HOMEPAGE="http://www.cpctech.org.uk"
41 +SRC_URI="http://cpctech.cpc-live.com/arnsrc.zip -> ${P}.zip"
42 +
43 +LICENSE="GPL-2 LGPL-2.1"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86"
46 +IUSE="inkz80"
47 +
48 +DEPEND="
49 + media-libs/libsdl2
50 + virtual/opengl
51 +"
52 +RDEPEND="${DEPEND}"
53 +
54 +S=${WORKDIR}/src
55 +
56 +WX_GTK_VER="3.0-gtk3"
57 +
58 +src_prepare() {
59 + setup-wxwidgets
60 + sed -i "4421s:=.*$:=wxT(\"/usr/share/${PN}/\");:" arngui/arnguiApp.cpp || die
61 + # Prevent running at 150% of original speed
62 + sed -i '390s/20000/30000/' arngui/sdl2/SDL2PlatformSpecific.cpp || die
63 + cmake_src_prepare
64 +}
65 +
66 +src_configure() {
67 + mycmakeargs=(
68 + -DBUILD_SHARED_LIBS=OFF
69 + -DCMAKE_SKIP_RPATH=YES
70 + -DZ80_VERSION="USE_$(usex inkz80 INK ARN)Z80"
71 + -DSDL_VERSION="USE_SDL2"
72 + )
73 + cmake_src_configure
74 +}
75 +
76 +src_install() {
77 + cd "${WORKDIR}"/exe/Gentoo/${PN} || die
78 + doicon "${FILESDIR}"/${PN}.png
79 + insinto /usr/share/${PN}/
80 + dobin arnold
81 + doins *.*
82 +}
83
84 diff --git a/app-emulation/arnold/files/arnold.png b/app-emulation/arnold/files/arnold.png
85 new file mode 100644
86 index 000000000..e54d0be93
87 Binary files /dev/null and b/app-emulation/arnold/files/arnold.png differ
88
89 diff --git a/app-emulation/arnold/metadata.xml b/app-emulation/arnold/metadata.xml
90 new file mode 100644
91 index 000000000..257786bed
92 --- /dev/null
93 +++ b/app-emulation/arnold/metadata.xml
94 @@ -0,0 +1,11 @@
95 +<?xml version="1.0" encoding="UTF-8"?>
96 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
97 +<pkgmetadata>
98 +<maintainer type="person">
99 + <name>mazes-80</name>
100 + <email>mazes-80@××××.org</email>
101 +</maintainer>
102 +<use>
103 + <flag name="inkz80">Use inkz80 processor emulation</flag>
104 +</use>
105 +</pkgmetadata>