commit:     8428d2e551a75c5f79463a5b641b19e2d5d7e3c6
Author:     orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Sat Aug  2 19:16:39 2025 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Sun Aug  3 18:06:55 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8428d2e5

games-emulation/sameboy-jg: add 1.0.2

Closes: https://github.com/gentoo/gentoo/pull/43169
Signed-off-by: orbea <orbea <AT> riseup.net>
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 games-emulation/sameboy-jg/Manifest                |  1 +
 games-emulation/sameboy-jg/sameboy-jg-1.0.2.ebuild | 49 ++++++++++++++++++++++
 2 files changed, 50 insertions(+)

diff --git a/games-emulation/sameboy-jg/Manifest 
b/games-emulation/sameboy-jg/Manifest
index e1a9b8473ed4..9cb536d4edfb 100644
--- a/games-emulation/sameboy-jg/Manifest
+++ b/games-emulation/sameboy-jg/Manifest
@@ -1 +1,2 @@
 DIST sameboy-1.0.1.tar.bz2 7191664 BLAKE2B 
5a12ab2b439912a52eb8ba0aca55a3ff3992c588cc109d8af6f70f9c32ee5347edf1c1326056221ca73be7fa984a25d7664214117d64b38246defe3e009b3c6e
 SHA512 
db71c74c8a8ef6b5838176c98af19eccc55ec69bce3a6cd2e01933aa18ad45443388ee976c2ad2b08ff20ddbb128b3cb0855e97848e653ea2c4853727c0bab5f
+DIST sameboy-1.0.2.tar.bz2 7648258 BLAKE2B 
dfe62f61d086b9c074ad60ea40c3736ee5b6fc458579ea205c5a50f5805543831d10f914ca931bdb3f70f5878208c033a7113aabf7f256d5e4bad197a7809153
 SHA512 
36aab228f2c64d5da55806490b42dd60401b540d4c251fae375e3ecc337c950ca98f8a78d4a7fa14faf57c90d1bb247eb506bb417ab97dc055ed876f116b7244

diff --git a/games-emulation/sameboy-jg/sameboy-jg-1.0.2.ebuild 
b/games-emulation/sameboy-jg/sameboy-jg-1.0.2.ebuild
new file mode 100644
index 000000000000..10ba03606f29
--- /dev/null
+++ b/games-emulation/sameboy-jg/sameboy-jg-1.0.2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 2022-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+MY_PN=${PN%-*}
+MY_P=${MY_PN}-${PV}
+DESCRIPTION="Jolly Good Port of SameBoy"
+HOMEPAGE="https://gitlab.com/jgemu/sameboy";
+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="MIT"
+SLOT="1"
+
+DEPEND="
+       media-libs/jg:1=
+"
+RDEPEND="
+       ${DEPEND}
+       games-emulation/jgrf
+"
+BDEPEND="
+       >=dev-util/rgbds-0.6.0
+       virtual/pkgconfig
+"
+
+src_compile() {
+       emake -C jollygood \
+               CC="$(tc-getCC)" \
+               CC_FOR_BUILD="$(tc-getBUILD_CC)" \
+               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)"
+}

Reply via email to