1 |
commit: 4db476a705871670da77a00ae6d440c6ec070988 |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 4 01:15:59 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 4 01:15:59 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4db476a7 |
7 |
|
8 |
games-emulation/melonds: bump to 0.9.5 |
9 |
|
10 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
11 |
|
12 |
games-emulation/melonds/Manifest | 1 + |
13 |
games-emulation/melonds/melonds-0.9.5.ebuild | 87 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 88 insertions(+) |
15 |
|
16 |
diff --git a/games-emulation/melonds/Manifest b/games-emulation/melonds/Manifest |
17 |
index d2554b5a800c..6aaceabb1389 100644 |
18 |
--- a/games-emulation/melonds/Manifest |
19 |
+++ b/games-emulation/melonds/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST melonDS-0.9.3.tar.gz 2241325 BLAKE2B 0ea7fbcce039a60a0553ae45d11f0b1550bfec2300faf1c99c3ee531bd5949c7293bec187fbf53e400bbb6280df29db141b2d1bcb294a8abf2eabb71993db686 SHA512 37f26f3a9784873ce1664645cea70049725367f5fe62f7c58842ebd5da2c73ffe423695dddb0ffd444bdf59df2a3fcd778cdf95b2bb083014b961fed282953f5 |
22 |
DIST melonDS-0.9.4_p1.tar.gz 2330696 BLAKE2B f118d067505d740fef2c9f3a7761580981d43c6c63f9bfb34f48cbc5c6932e5410ee31259845787262412b040a66c85cdd4298645e2060fc6c8821a89b314711 SHA512 76886ecfbabd00ae9261c33fcd4074b20e989f4357575bf68139538136fb0ba728d7590310ce4ae9c45670ee01ec315046f03f54e7ca9a359be202709b030f6d |
23 |
+DIST melonDS-0.9.5.tar.gz 2496704 BLAKE2B ac6b75a74df266c6220a15c8775969f19bd6ef19946c913d49b642aa797ca6dc4cd956e7a840fbdbf572a9178a214314549cfe3fc4617a4f0f3877850c6818cd SHA512 115cf04e4e22a20016ac4f2946aef917e5c9566b1a5f18599f7b7c47b0ac71e3645157a8a21622ab83683848c57ab25e6d6fcff0df559087b56642d99ffe40ec |
24 |
|
25 |
diff --git a/games-emulation/melonds/melonds-0.9.5.ebuild b/games-emulation/melonds/melonds-0.9.5.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..c5383c9da154 |
28 |
--- /dev/null |
29 |
+++ b/games-emulation/melonds/melonds-0.9.5.ebuild |
30 |
@@ -0,0 +1,87 @@ |
31 |
+# Copyright 2019-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+MY_PN="melonDS" |
37 |
+MY_P="${MY_PN}-${PV}" |
38 |
+ |
39 |
+inherit cmake flag-o-matic readme.gentoo-r1 toolchain-funcs xdg |
40 |
+ |
41 |
+DESCRIPTION="Nintendo DS emulator, sorta" |
42 |
+HOMEPAGE="http://melonds.kuribo64.net |
43 |
+ https://github.com/Arisotura/melonDS" |
44 |
+ |
45 |
+if [[ ${PV} == *9999* ]] ; then |
46 |
+ inherit git-r3 |
47 |
+ EGIT_REPO_URI="https://github.com/Arisotura/${MY_PN}.git" |
48 |
+else |
49 |
+ SRC_URI="https://github.com/Arisotura/${MY_PN}/archive/${PV}.tar.gz |
50 |
+ -> ${MY_P}.tar.gz" |
51 |
+ S="${WORKDIR}"/${MY_P} |
52 |
+ KEYWORDS="~amd64" |
53 |
+fi |
54 |
+ |
55 |
+IUSE="+jit +opengl" |
56 |
+LICENSE="BSD-2 GPL-2 GPL-3 Unlicense" |
57 |
+SLOT="0" |
58 |
+ |
59 |
+# MelonDS bundles libteakra with many changes, |
60 |
+# for now we have to block dev-libs/teakra |
61 |
+RDEPEND=" |
62 |
+ !dev-libs/teakra |
63 |
+ app-arch/libarchive |
64 |
+ dev-qt/qtcore:5 |
65 |
+ dev-qt/qtgui:5 |
66 |
+ dev-qt/qtnetwork:5 |
67 |
+ dev-qt/qtwidgets:5 |
68 |
+ media-libs/libsdl2[sound,video] |
69 |
+ net-libs/libpcap |
70 |
+ net-libs/libslirp |
71 |
+ opengl? ( media-libs/libepoxy ) |
72 |
+" |
73 |
+DEPEND="${RDEPEND}" |
74 |
+ |
75 |
+# used for JIT recompiler |
76 |
+QA_EXECSTACK="usr/bin/melonDS" |
77 |
+ |
78 |
+DISABLE_AUTOFORMATTING="yes" |
79 |
+DOC_CONTENTS="You need the following files in order to run melonDS: |
80 |
+- bios7.bin |
81 |
+- bios9.bin |
82 |
+- firmware.bin |
83 |
+- romlist.bin |
84 |
+Place them in ~/.config/melonDS |
85 |
+Those files can be found somewhere on the Internet ;-)" |
86 |
+ |
87 |
+src_prepare() { |
88 |
+ filter-lto |
89 |
+ append-flags -fno-strict-aliasing |
90 |
+ |
91 |
+ cmake_src_prepare |
92 |
+} |
93 |
+ |
94 |
+src_configure() { |
95 |
+ local mycmakeargs=( |
96 |
+ -DENABLE_JIT=$(usex jit) |
97 |
+ -DENABLE_OGLRENDERER=$(usex opengl) |
98 |
+ ) |
99 |
+ cmake_src_configure |
100 |
+} |
101 |
+ |
102 |
+src_compile() { |
103 |
+ tc-export AR |
104 |
+ cmake_src_compile |
105 |
+} |
106 |
+ |
107 |
+src_install() { |
108 |
+ readme.gentoo_create_doc |
109 |
+ cmake_src_install |
110 |
+ |
111 |
+ dolib.so "${BUILD_DIR}"/src/teakra/src/libteakra.so |
112 |
+} |
113 |
+ |
114 |
+pkg_postinst() { |
115 |
+ xdg_pkg_postinst |
116 |
+ readme.gentoo_print_elog |
117 |
+} |