diff --git a/games-emulation/melonds-jg/Manifest b/games-emulation/melonds-jg/Manifest index 1c2160fdfad74..94893c595a957 100644 --- a/games-emulation/melonds-jg/Manifest +++ b/games-emulation/melonds-jg/Manifest @@ -1 +1,2 @@ +DIST melonds-1.1.0.1.tar.bz2 3299307 BLAKE2B a8674f86fa4e7a24698f91d1a8cd7767444ece14636e99e5e6cb53603ee615dc4218254da892af5f6dbf8421cacc6ef17cec779b0ee1c63aee5abd21fae8988d SHA512 684157732ecc016d5b3ea9e396986dd34d6e0a9a87d2ba874fe20ff733e21de14b4d3a2ecce660f8b41667647b6f61e09d5b4090ae61ac95cb79ce482ed7c608 DIST melonds-1.1.0.tar.bz2 3299172 BLAKE2B 8caae92b44e8896cde95df85e9a07e1b11126976995f298c9173effdfb60211372d9fb82520fc3469a2c3ce6469bf554ac666f97ea70515b0d0441ff41c281e9 SHA512 69747f051449739935d2a00c603b0c76b8b3135c867cfdebf0f73ae0578718bd4fc308a959ba2d130d1e217b6f193ab635eccdd2ec88d44b55689e20af96e42b diff --git a/games-emulation/melonds-jg/melonds-jg-1.1.0.1.ebuild b/games-emulation/melonds-jg/melonds-jg-1.1.0.1.ebuild new file mode 100644 index 0000000000000..211d53f957cf8 --- /dev/null +++ b/games-emulation/melonds-jg/melonds-jg-1.1.0.1.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-2.0.0 +" +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)" +}