commit:     2a5fe7c54adb7b1cdad1aeed832d4f1e4bab27e2
Author:     orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Mon Jul 14 19:27:22 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jul 23 02:30:08 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a5fe7c5

games-emulation/bsnes-jg: add 2.0.2

Signed-off-by: orbea <orbea <AT> riseup.net>
Part-of: https://github.com/gentoo/gentoo/pull/43000
Signed-off-by: Sam James <sam <AT> gentoo.org>

 games-emulation/bsnes-jg/Manifest              |  1 +
 games-emulation/bsnes-jg/bsnes-jg-2.0.2.ebuild | 79 ++++++++++++++++++++++++++
 2 files changed, 80 insertions(+)

diff --git a/games-emulation/bsnes-jg/Manifest 
b/games-emulation/bsnes-jg/Manifest
index 9628fbf1ac2b..6207576164a8 100644
--- a/games-emulation/bsnes-jg/Manifest
+++ b/games-emulation/bsnes-jg/Manifest
@@ -1 +1,2 @@
 DIST bsnes-2.0.1.tar.bz2 4323769 BLAKE2B 
17494774d08ad04db8f73d7951a3b45164037f6243716c133aaf081952dc0db3c1cb7cf0aad9048b7b68b4f626f7c933605f5c253f4335c535e59034aa3f8d25
 SHA512 
e29e972cfe8634921a2244abf51ddf1786814752d46c0faaba0a872a9c5a740e03e2656d3d277fce85a7f9f1d8c6c4de6a97e90524654f9ec105b0f7e370c9de
+DIST bsnes-2.0.2.tar.bz2 4323558 BLAKE2B 
9b33632549256b450d02c5f93c12eea380a4b104f14de9e517c66335cb193ad9599ff6cb95b14ea3141557a0a3227340bf5157de124c205b30c5946b3c5e8d06
 SHA512 
0e18c997dd7e7b89594b3c1cc6fbc7490e96a329a48acc40f3d0b848028ac22586f8083797565e5728afa0ecde073b60f455c5fcc38b5fd051d8aae402e98997

diff --git a/games-emulation/bsnes-jg/bsnes-jg-2.0.2.ebuild 
b/games-emulation/bsnes-jg/bsnes-jg-2.0.2.ebuild
new file mode 100644
index 000000000000..c44ece1d716a
--- /dev/null
+++ b/games-emulation/bsnes-jg/bsnes-jg-2.0.2.ebuild
@@ -0,0 +1,79 @@
+# Copyright 2022-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DOCS_BUILDER="doxygen"
+DOCS_DIR="objs/doc"
+
+inherit docs toolchain-funcs
+
+MY_PN=${PN%-*}
+MY_P=${MY_PN}-${PV}
+DESCRIPTION="Jolly Good Fork of bsnes"
+HOMEPAGE="https://gitlab.com/jgemu/bsnes";
+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="
+       ISC GPL-3+ LGPL-2.1+ MIT ZLIB
+       examples? ( 0BSD )
+"
+SLOT="1"
+IUSE="examples +jgmodule shared"
+REQUIRED_USE="
+       || ( examples jgmodule shared )
+       doc? ( shared )
+"
+
+DEPEND="
+       media-libs/libsamplerate
+       examples? ( media-libs/libsdl2[sound,video] )
+       jgmodule? ( media-libs/jg:1= )
+"
+RDEPEND="
+       ${DEPEND}
+       jgmodule? ( games-emulation/jgrf )
+"
+BDEPEND="
+       virtual/pkgconfig
+"
+
+src_configure() {
+       local makeopts=(
+               PREFIX="${EPREFIX}"/usr
+               DISABLE_MODULE=$(usex jgmodule 0 1)
+               ENABLE_EXAMPLE=$(usex examples 1 0)
+               ENABLE_SHARED=$(usex shared 1 0)
+       )
+       export MY_MAKEOPTS="${makeopts[@]}"
+}
+
+src_compile() {
+       local mymakeargs=(
+               CC="$(tc-getCC)"
+               CXX="$(tc-getCXX)"
+               PKG_CONFIG="$(tc-getPKG_CONFIG)"
+               ${MY_MAKEOPTS}
+       )
+       emake "${mymakeargs[@]}"
+       use doc && emake doxyfile
+       docs_compile
+}
+
+src_install() {
+       local mymakeargs=(
+               DESTDIR="${D}"
+               DOCDIR="${EPREFIX}"/usr/share/doc/${PF}
+               LIBDIR="${EPREFIX}/usr/$(get_libdir)"
+               ${MY_MAKEOPTS}
+       )
+       emake install "${mymakeargs[@]}"
+       use doc && einstalldocs
+}

Reply via email to