Gentoo Archives: gentoo-commits

From: "Maciej Barć" <xgqt@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: games-emulation/melonds/
Date: Thu, 02 Sep 2021 01:25:19
Message-Id: 1630545864.fbc9b0cbaee5291620a6cdb7add3d61751ce9594.xgqt@gentoo
1 commit: fbc9b0cbaee5291620a6cdb7add3d61751ce9594
2 Author: Maciej Barć <xgqt <AT> riseup <DOT> net>
3 AuthorDate: Thu Sep 2 01:24:15 2021 +0000
4 Commit: Maciej Barć <xgqt <AT> riseup <DOT> net>
5 CommitDate: Thu Sep 2 01:24:24 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fbc9b0cb
7
8 games-emulation/melonds: bump to 0.9.3
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Maciej Barć <xgqt <AT> riseup.net>
12
13 games-emulation/melonds/Manifest | 1 +
14 games-emulation/melonds/melonds-0.9.3.ebuild | 82 ++++++++++++++++++++++++++++
15 2 files changed, 83 insertions(+)
16
17 diff --git a/games-emulation/melonds/Manifest b/games-emulation/melonds/Manifest
18 index 439e3d062..f284f28e8 100644
19 --- a/games-emulation/melonds/Manifest
20 +++ b/games-emulation/melonds/Manifest
21 @@ -1 +1,2 @@
22 DIST melonDS-0.9.2.tar.gz 1330793 BLAKE2B e504dd2e1344a9680b9820f7f0308fa30decb16f40675df5649babef7ab3fae9528042fc2737a36bafdd28b9125f94a79d20e5a5e791d485feb9dc26b64b1432 SHA512 3d099af675acdcb91431aaaf95bc27c10fd432ebd29aa81c7eb4e65dfad9c20cb4fd5de086d2162cbe4a6b41f7e140880a5742b1ec34eef0511fff052aa1baaa
23 +DIST melonDS-0.9.3.tar.gz 2241325 BLAKE2B 0ea7fbcce039a60a0553ae45d11f0b1550bfec2300faf1c99c3ee531bd5949c7293bec187fbf53e400bbb6280df29db141b2d1bcb294a8abf2eabb71993db686 SHA512 37f26f3a9784873ce1664645cea70049725367f5fe62f7c58842ebd5da2c73ffe423695dddb0ffd444bdf59df2a3fcd778cdf95b2bb083014b961fed282953f5
24
25 diff --git a/games-emulation/melonds/melonds-0.9.3.ebuild b/games-emulation/melonds/melonds-0.9.3.ebuild
26 new file mode 100644
27 index 000000000..21069e621
28 --- /dev/null
29 +++ b/games-emulation/melonds/melonds-0.9.3.ebuild
30 @@ -0,0 +1,82 @@
31 +# Copyright 2019-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +# NOTICE:
35 +# melonds bundles teakra, its upstream haven't had a release since 2020
36 +
37 +EAPI=7
38 +
39 +MY_PN="melonDS"
40 +MY_P="${MY_PN}-${PV}"
41 +
42 +inherit cmake flag-o-matic toolchain-funcs xdg
43 +
44 +DESCRIPTION="Nintendo DS emulator, sorta"
45 +HOMEPAGE="
46 + http://melonds.kuribo64.net
47 + https://github.com/Arisotura/melonDS
48 +"
49 +
50 +if [[ "${PV}" == *9999* ]]; then
51 + inherit git-r3
52 + EGIT_REPO_URI="https://github.com/Arisotura/${MY_PN}.git"
53 +else
54 + SRC_URI="https://github.com/Arisotura/${MY_PN}/archive/${PV}.tar.gz -> ${MY_P}.tar.gz"
55 + KEYWORDS="~amd64"
56 + S="${WORKDIR}/${MY_P}"
57 +fi
58 +
59 +IUSE="+jit +opengl"
60 +LICENSE="BSD-2 GPL-2 GPL-3 Unlicense"
61 +SLOT="0"
62 +
63 +DEPEND="
64 + app-arch/libarchive
65 + dev-qt/qtcore:5
66 + dev-qt/qtgui:5
67 + dev-qt/qtwidgets:5
68 + media-libs/libsdl2[sound,video]
69 + net-libs/libslirp
70 + net-libs/libpcap
71 + opengl? ( media-libs/libepoxy )
72 +"
73 +RDEPEND="${DEPEND}"
74 +
75 +# used for JIT recompiler
76 +QA_EXECSTACK="usr/bin/melonDS"
77 +
78 +src_prepare() {
79 + cmake_src_prepare
80 +}
81 +
82 +src_configure() {
83 + local mycmakeargs=(
84 + -DENABLE_JIT=$(usex jit)
85 + -DENABLE_OGLRENDERER=$(usex opengl)
86 + )
87 + cmake_src_configure
88 +}
89 +
90 +src_compile() {
91 + tc-export AR
92 + cmake_src_compile
93 +}
94 +
95 +src_install() {
96 + # install teakra
97 + dolib.so "${BUILD_DIR}/src/teakra/src/libteakra.so"
98 +
99 + cmake_src_install
100 +}
101 +
102 +pkg_postinst() {
103 + xdg_pkg_postinst
104 +
105 + elog "You need the following files in order to run melonDS:"
106 + elog "- bios7.bin"
107 + elog "- bios9.bin"
108 + elog "- firmware.bin"
109 + elog "- romlist.bin"
110 + elog "Place them in ~/.config/melonDS"
111 + elog "Those files can be found somewhere on the Internet ;-)"
112 +}