1 |
commit: fc66d7d2a987626a597f05485a3ad5c0f06a638e |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 26 10:01:13 2021 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 26 10:01:28 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc66d7d2 |
7 |
|
8 |
games-emulation/melonds: new package; add version 0.9.3 and live |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
12 |
|
13 |
games-emulation/melonds/Manifest | 1 + |
14 |
games-emulation/melonds/melonds-0.9.3.ebuild | 83 ++++++++++++++++++++++++++++ |
15 |
games-emulation/melonds/melonds-9999.ebuild | 83 ++++++++++++++++++++++++++++ |
16 |
games-emulation/melonds/metadata.xml | 13 +++++ |
17 |
4 files changed, 180 insertions(+) |
18 |
|
19 |
diff --git a/games-emulation/melonds/Manifest b/games-emulation/melonds/Manifest |
20 |
new file mode 100644 |
21 |
index 000000000000..3a233230003e |
22 |
--- /dev/null |
23 |
+++ b/games-emulation/melonds/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST melonDS-0.9.3.tar.gz 2241325 BLAKE2B 0ea7fbcce039a60a0553ae45d11f0b1550bfec2300faf1c99c3ee531bd5949c7293bec187fbf53e400bbb6280df29db141b2d1bcb294a8abf2eabb71993db686 SHA512 37f26f3a9784873ce1664645cea70049725367f5fe62f7c58842ebd5da2c73ffe423695dddb0ffd444bdf59df2a3fcd778cdf95b2bb083014b961fed282953f5 |
26 |
|
27 |
diff --git a/games-emulation/melonds/melonds-0.9.3.ebuild b/games-emulation/melonds/melonds-0.9.3.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..840aa5476022 |
30 |
--- /dev/null |
31 |
+++ b/games-emulation/melonds/melonds-0.9.3.ebuild |
32 |
@@ -0,0 +1,83 @@ |
33 |
+# Copyright 2019-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+# NOTICE: |
37 |
+# melonds bundles teakra, its upstream haven't had a release since 2020 |
38 |
+ |
39 |
+EAPI=8 |
40 |
+ |
41 |
+MY_PN="melonDS" |
42 |
+MY_P="${MY_PN}-${PV}" |
43 |
+ |
44 |
+inherit cmake flag-o-matic toolchain-funcs xdg |
45 |
+ |
46 |
+DESCRIPTION="Nintendo DS emulator, sorta" |
47 |
+HOMEPAGE=" |
48 |
+ http://melonds.kuribo64.net |
49 |
+ https://github.com/Arisotura/melonDS |
50 |
+" |
51 |
+ |
52 |
+if [[ "${PV}" == *9999* ]]; then |
53 |
+ inherit git-r3 |
54 |
+ EGIT_REPO_URI="https://github.com/Arisotura/${MY_PN}.git" |
55 |
+else |
56 |
+ SRC_URI="https://github.com/Arisotura/${MY_PN}/archive/${PV}.tar.gz -> ${MY_P}.tar.gz" |
57 |
+ KEYWORDS="~amd64" |
58 |
+ S="${WORKDIR}/${MY_P}" |
59 |
+fi |
60 |
+ |
61 |
+IUSE="+jit +opengl" |
62 |
+LICENSE="BSD-2 GPL-2 GPL-3 Unlicense" |
63 |
+SLOT="0" |
64 |
+ |
65 |
+DEPEND=" |
66 |
+ app-arch/libarchive |
67 |
+ dev-qt/qtcore:5 |
68 |
+ dev-qt/qtgui:5 |
69 |
+ dev-qt/qtnetwork:5 |
70 |
+ dev-qt/qtwidgets:5 |
71 |
+ media-libs/libsdl2[sound,video] |
72 |
+ net-libs/libpcap |
73 |
+ net-libs/libslirp |
74 |
+ opengl? ( media-libs/libepoxy ) |
75 |
+" |
76 |
+RDEPEND="${DEPEND}" |
77 |
+ |
78 |
+# used for JIT recompiler |
79 |
+QA_EXECSTACK="usr/bin/melonDS" |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ cmake_src_prepare |
83 |
+} |
84 |
+ |
85 |
+src_configure() { |
86 |
+ local mycmakeargs=( |
87 |
+ -DENABLE_JIT=$(usex jit) |
88 |
+ -DENABLE_OGLRENDERER=$(usex opengl) |
89 |
+ ) |
90 |
+ cmake_src_configure |
91 |
+} |
92 |
+ |
93 |
+src_compile() { |
94 |
+ tc-export AR |
95 |
+ cmake_src_compile |
96 |
+} |
97 |
+ |
98 |
+src_install() { |
99 |
+ # install teakra |
100 |
+ dolib.so "${BUILD_DIR}/src/teakra/src/libteakra.so" |
101 |
+ |
102 |
+ cmake_src_install |
103 |
+} |
104 |
+ |
105 |
+pkg_postinst() { |
106 |
+ xdg_pkg_postinst |
107 |
+ |
108 |
+ elog "You need the following files in order to run melonDS:" |
109 |
+ elog "- bios7.bin" |
110 |
+ elog "- bios9.bin" |
111 |
+ elog "- firmware.bin" |
112 |
+ elog "- romlist.bin" |
113 |
+ elog "Place them in ~/.config/melonDS" |
114 |
+ elog "Those files can be found somewhere on the Internet ;-)" |
115 |
+} |
116 |
|
117 |
diff --git a/games-emulation/melonds/melonds-9999.ebuild b/games-emulation/melonds/melonds-9999.ebuild |
118 |
new file mode 100644 |
119 |
index 000000000000..840aa5476022 |
120 |
--- /dev/null |
121 |
+++ b/games-emulation/melonds/melonds-9999.ebuild |
122 |
@@ -0,0 +1,83 @@ |
123 |
+# Copyright 2019-2021 Gentoo Authors |
124 |
+# Distributed under the terms of the GNU General Public License v2 |
125 |
+ |
126 |
+# NOTICE: |
127 |
+# melonds bundles teakra, its upstream haven't had a release since 2020 |
128 |
+ |
129 |
+EAPI=8 |
130 |
+ |
131 |
+MY_PN="melonDS" |
132 |
+MY_P="${MY_PN}-${PV}" |
133 |
+ |
134 |
+inherit cmake flag-o-matic toolchain-funcs xdg |
135 |
+ |
136 |
+DESCRIPTION="Nintendo DS emulator, sorta" |
137 |
+HOMEPAGE=" |
138 |
+ http://melonds.kuribo64.net |
139 |
+ https://github.com/Arisotura/melonDS |
140 |
+" |
141 |
+ |
142 |
+if [[ "${PV}" == *9999* ]]; then |
143 |
+ inherit git-r3 |
144 |
+ EGIT_REPO_URI="https://github.com/Arisotura/${MY_PN}.git" |
145 |
+else |
146 |
+ SRC_URI="https://github.com/Arisotura/${MY_PN}/archive/${PV}.tar.gz -> ${MY_P}.tar.gz" |
147 |
+ KEYWORDS="~amd64" |
148 |
+ S="${WORKDIR}/${MY_P}" |
149 |
+fi |
150 |
+ |
151 |
+IUSE="+jit +opengl" |
152 |
+LICENSE="BSD-2 GPL-2 GPL-3 Unlicense" |
153 |
+SLOT="0" |
154 |
+ |
155 |
+DEPEND=" |
156 |
+ app-arch/libarchive |
157 |
+ dev-qt/qtcore:5 |
158 |
+ dev-qt/qtgui:5 |
159 |
+ dev-qt/qtnetwork:5 |
160 |
+ dev-qt/qtwidgets:5 |
161 |
+ media-libs/libsdl2[sound,video] |
162 |
+ net-libs/libpcap |
163 |
+ net-libs/libslirp |
164 |
+ opengl? ( media-libs/libepoxy ) |
165 |
+" |
166 |
+RDEPEND="${DEPEND}" |
167 |
+ |
168 |
+# used for JIT recompiler |
169 |
+QA_EXECSTACK="usr/bin/melonDS" |
170 |
+ |
171 |
+src_prepare() { |
172 |
+ cmake_src_prepare |
173 |
+} |
174 |
+ |
175 |
+src_configure() { |
176 |
+ local mycmakeargs=( |
177 |
+ -DENABLE_JIT=$(usex jit) |
178 |
+ -DENABLE_OGLRENDERER=$(usex opengl) |
179 |
+ ) |
180 |
+ cmake_src_configure |
181 |
+} |
182 |
+ |
183 |
+src_compile() { |
184 |
+ tc-export AR |
185 |
+ cmake_src_compile |
186 |
+} |
187 |
+ |
188 |
+src_install() { |
189 |
+ # install teakra |
190 |
+ dolib.so "${BUILD_DIR}/src/teakra/src/libteakra.so" |
191 |
+ |
192 |
+ cmake_src_install |
193 |
+} |
194 |
+ |
195 |
+pkg_postinst() { |
196 |
+ xdg_pkg_postinst |
197 |
+ |
198 |
+ elog "You need the following files in order to run melonDS:" |
199 |
+ elog "- bios7.bin" |
200 |
+ elog "- bios9.bin" |
201 |
+ elog "- firmware.bin" |
202 |
+ elog "- romlist.bin" |
203 |
+ elog "Place them in ~/.config/melonDS" |
204 |
+ elog "Those files can be found somewhere on the Internet ;-)" |
205 |
+} |
206 |
|
207 |
diff --git a/games-emulation/melonds/metadata.xml b/games-emulation/melonds/metadata.xml |
208 |
new file mode 100644 |
209 |
index 000000000000..598e25db79ba |
210 |
--- /dev/null |
211 |
+++ b/games-emulation/melonds/metadata.xml |
212 |
@@ -0,0 +1,13 @@ |
213 |
+<?xml version="1.0" encoding="UTF-8"?> |
214 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
215 |
+ |
216 |
+<pkgmetadata> |
217 |
+ <maintainer type="person"> |
218 |
+ <email>xgqt@g.o</email> |
219 |
+ <name>Maciej Barć</name> |
220 |
+ </maintainer> |
221 |
+ <upstream> |
222 |
+ <bugs-to>https://github.com/Arisotura/melonDS/issues</bugs-to> |
223 |
+ <remote-id type="github">Arisotura/melonDS</remote-id> |
224 |
+ </upstream> |
225 |
+</pkgmetadata> |