commit: 6bd4e70cf8bf86ba2f9a194296a75932b23472f4 Author: orbea <orbea <AT> riseup <DOT> net> AuthorDate: Thu Feb 5 21:01:32 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Feb 11 07:17:32 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bd4e70c
games-emulation/melonds-jg: add 1.1.0 Signed-off-by: orbea <orbea <AT> riseup.net> Part-of: https://github.com/gentoo/gentoo/pull/45650 Closes: https://github.com/gentoo/gentoo/pull/45650 Signed-off-by: Sam James <sam <AT> gentoo.org> games-emulation/melonds-jg/Manifest | 1 + games-emulation/melonds-jg/melonds-jg-1.1.0.ebuild | 53 ++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/games-emulation/melonds-jg/Manifest b/games-emulation/melonds-jg/Manifest index de646d256f34..0819921db2cf 100644 --- a/games-emulation/melonds-jg/Manifest +++ b/games-emulation/melonds-jg/Manifest @@ -1 +1,2 @@ DIST melonds-1.0.0.tar.bz2 6597733 BLAKE2B 9e6c394cee6fef5140426d93c325e517890b34978f79abea37e504005db6e63252a5f0db6e9047b253e9564ebe11cf255e092d68c05382c9be56fddacec464fd SHA512 addceb5d3d1906b310439fb1a7479a0833f4f3ce7ef0bf1ef8ce267766c36e7862a38c4b8e1bd867c8c0aaede472f317b27db916061abb809914bc0822448c6b +DIST melonds-1.1.0.tar.bz2 3299172 BLAKE2B 8caae92b44e8896cde95df85e9a07e1b11126976995f298c9173effdfb60211372d9fb82520fc3469a2c3ce6469bf554ac666f97ea70515b0d0441ff41c281e9 SHA512 69747f051449739935d2a00c603b0c76b8b3135c867cfdebf0f73ae0578718bd4fc308a959ba2d130d1e217b6f193ab635eccdd2ec88d44b55689e20af96e42b diff --git a/games-emulation/melonds-jg/melonds-jg-1.1.0.ebuild b/games-emulation/melonds-jg/melonds-jg-1.1.0.ebuild new file mode 100644 index 000000000000..2d1f982282b2 --- /dev/null +++ b/games-emulation/melonds-jg/melonds-jg-1.1.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 2022-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs flag-o-matic + +MY_PN=${PN%-*} +MY_P=${MY_PN}-${PV} +DESCRIPTION="Jolly Good Port of melonDS" +HOMEPAGE="https://gitlab.com/jgemu/melonds" +if [[ "${PV}" == *9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.com/jgemu/${MY_PN}.git" +else + SRC_URI="https://gitlab.com/jgemu/${MY_PN}/-/archive/${PV}/${MY_P}.tar.bz2" + S="${WORKDIR}/${MY_P}" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +fi + +LICENSE="BSD-2 FatFs GPL-3+ LGPL-2.1+ MIT Unlicense public-domain" +SLOT="1" + +DEPEND=" + media-libs/jg:1= +" +RDEPEND=" + ${DEPEND} + games-emulation/jgrf +" +BDEPEND=" + virtual/pkgconfig +" + +src_compile() { + # https://bugs.gentoo.org/931907 + # https://github.com/melonDS-emu/melonDS/issues/2349 + append-flags -fno-strict-aliasing + filter-lto + + emake -C jollygood \ + CC="$(tc-getCC)" \ + CXX="$(tc-getCXX)" \ + PKG_CONFIG="$(tc-getPKG_CONFIG)" +} + +src_install() { + emake -C jollygood install \ + DESTDIR="${D}" \ + PREFIX="${EPREFIX}"/usr \ + DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" +}
