commit: d7657e3914646a5b06ac104fd9145b99a7d49784
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 18 13:38:51 2025 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Tue Nov 18 14:55:44 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7657e39
games-emulation/melonds: bump to 1.1
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
games-emulation/melonds/Manifest | 1 +
games-emulation/melonds/melonds-1.1.ebuild | 109 +++++++++++++++++++++++++++++
2 files changed, 110 insertions(+)
diff --git a/games-emulation/melonds/Manifest b/games-emulation/melonds/Manifest
index 2012094abeba..87e45a8b00bc 100644
--- a/games-emulation/melonds/Manifest
+++ b/games-emulation/melonds/Manifest
@@ -1 +1,2 @@
DIST melonds-1.0.gh.tar.gz 3595302 BLAKE2B
c29560bda77affab6e25c47a38725585e62425b6dabf2799c80960201bcca754fb0e291777737d04648af66713fd2f102dd40cb488e42c9c273aaa60ab75b69c
SHA512
1decb32b384f40faed2ecdfa4f7e3bc620593e69a54173ecc5e83d0be00b70aaed41adf9c0250588049ea346564eb20f4c0955d9fbef8570555b43b6fb97e189
+DIST melonds-1.1.gh.tar.gz 3673157 BLAKE2B
bc3995237eb4c772a7c384b50517e7c266798a837b5d393f5115f4d3beda6b7b6ba5d13cf18a6d97de6d82c85b4f3612c0d03f4ecb857ac9c958433f48fda801
SHA512
562de6a338d236ddd3b5fed2d7b24139fed65d9f5ff94e9f00baf5dac85c729f135a8499ba380574c768ad9ef1c728aa2fd8c23a14c350e0428fc3f59957e538
diff --git a/games-emulation/melonds/melonds-1.1.ebuild
b/games-emulation/melonds/melonds-1.1.ebuild
new file mode 100644
index 000000000000..663c7d5945c6
--- /dev/null
+++ b/games-emulation/melonds/melonds-1.1.ebuild
@@ -0,0 +1,109 @@
+# Copyright 2019-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+REAL_PN="melonDS"
+REAL_PV="${PV/_rc/rc}"
+REAL_P="${REAL_PN}-${REAL_PV}"
+
+inherit cmake flag-o-matic readme.gentoo-r1 toolchain-funcs xdg
+
+DESCRIPTION="Nintendo DS emulator, sorta"
+HOMEPAGE="https://melonds.kuribo64.net
+ https://github.com/melonDS-emu/melonDS"
+
+if [[ "${PV}" == *9999* ]] ; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/melonDS-emu/${REAL_PN}"
+else
+
SRC_URI="https://github.com/melonDS-emu/${REAL_PN}/archive/${REAL_PV}.tar.gz
+ -> ${P}.gh.tar.gz"
+ S="${WORKDIR}/${REAL_P}"
+
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="BSD-2 GPL-2 GPL-3 Unlicense"
+SLOT="0"
+IUSE="+jit +opengl wayland"
+
+RDEPEND="
+ app-arch/libarchive[zstd]
+ dev-qt/qtbase:6[network,opengl,widgets]
+ dev-qt/qtmultimedia:6
+ dev-qt/qtsvg:6
+ media-libs/faad2
+ media-libs/libsdl2[sound,video]
+ net-libs/enet:=
+ net-libs/libpcap
+ net-libs/libslirp
+ x11-libs/libxkbcommon
+ wayland? (
+ dev-libs/wayland
+ )
+"
+DEPEND="
+ ${RDEPEND}
+"
+BDEPEND="
+ wayland? (
+ kde-frameworks/extra-cmake-modules:0
+ )
+"
+
+# Used for JIT recompiler.
+QA_EXECSTACK="usr/bin/melonDS"
+
+DISABLE_AUTOFORMATTING="yes"
+DOC_CONTENTS="You need the following files in order to run melonDS:
+- bios7.bin
+- bios9.bin
+- firmware.bin
+- romlist.bin
+Place them in ~/.config/melonDS
+Those files can be extracted from devices or found somewhere on the Internet
;-)"
+
+src_prepare() {
+ sed -i src/teakra/CMakeLists.txt \
+ -e "/^cmake_minimum_required/s|3.8|3.20|g" \
+ || die
+
+ cmake_src_prepare
+}
+
+src_configure() {
+ # -Werror=strict-aliasing
+ # https://bugs.gentoo.org/959632
+ # https://github.com/melonDS-emu/melonDS/issues/2349
+ append-flags -fno-strict-aliasing
+ filter-lto
+
+ local -a mycmakeargs=(
+ -DUSE_CCACHE="OFF"
+
+ -DBUILD_SHARED_LIBS="OFF"
+ -DUSE_SYSTEM_LIBSLIRP="ON"
+
+ -DENABLE_JIT="$(usex jit)"
+ -DENABLE_OGLRENDERER="$(usex opengl)"
+ -DENABLE_WAYLAND="$(usex wayland)"
+ )
+ cmake_src_configure
+}
+
+src_compile() {
+ tc-export AR
+ cmake_src_compile
+}
+
+src_install() {
+ readme.gentoo_create_doc
+ cmake_src_install
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+ readme.gentoo_print_elog
+}