[gentoo-commits] repo/gentoo:master commit in: games-emulation/bsnes-jg/

2025-02-09 Thread Michael Orlitzky
commit: e9158c4577cbd2940365e2c6a1217f0d8652
Author: orbea  riseup  net>
AuthorDate: Mon Jan 27 19:54:33 2025 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Mon Feb 10 02:06:09 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9158c45

games-emulation/bsnes-jg: add 2.0.1

Signed-off-by: orbea  riseup.net>
Signed-off-by: Michael Orlitzky  gentoo.org>

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

diff --git a/games-emulation/bsnes-jg/Manifest 
b/games-emulation/bsnes-jg/Manifest
index cbf06863f3f4..53c69b1a5ab3 100644
--- a/games-emulation/bsnes-jg/Manifest
+++ b/games-emulation/bsnes-jg/Manifest
@@ -1 +1,2 @@
 DIST bsnes-2.0.0.tar.bz2 4318300 BLAKE2B 
7b93502a7dd68427069d0a33161927709f327352a3da3637cea416b31293750b249f3d750bba093a5a3430c5c2ab42b5e29e8b707377b29254651091a2b0aaed
 SHA512 
95f970a16c7efdfd5f0dca1a8bcfd7d5785e4e2635eb4c36fdade350be52c8c950736df84a9a5bb108a98c4b9b936f12f2a0ea7d9974737e105b1b0c034f6dbd
+DIST bsnes-2.0.1.tar.bz2 4323769 BLAKE2B 
17494774d08ad04db8f73d7951a3b45164037f6243716c133aaf081952dc0db3c1cb7cf0aad9048b7b68b4f626f7c933605f5c253f4335c535e59034aa3f8d25
 SHA512 
e29e972cfe8634921a2244abf51ddf1786814752d46c0faaba0a872a9c5a740e03e2656d3d277fce85a7f9f1d8c6c4de6a97e90524654f9ec105b0f7e370c9de

diff --git a/games-emulation/bsnes-jg/bsnes-jg-2.0.1.ebuild 
b/games-emulation/bsnes-jg/bsnes-jg-2.0.1.ebuild
new file mode 100644
index ..c44ece1d716a
--- /dev/null
+++ b/games-emulation/bsnes-jg/bsnes-jg-2.0.1.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}" == * ]] ; 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
+}



[gentoo-commits] repo/gentoo:master commit in: games-emulation/bsnes-jg/

2025-02-09 Thread Michael Orlitzky
commit: ab73c1e6d43019d0fa778951e2c56b35f7fd30f0
Author: orbea  riseup  net>
AuthorDate: Mon Dec 23 21:39:56 2024 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Mon Feb 10 02:06:02 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab73c1e6

games-emulation/bsnes-jg: drop 1.2.0

Signed-off-by: orbea  riseup.net>
Signed-off-by: Michael Orlitzky  gentoo.org>

 games-emulation/bsnes-jg/Manifest  |  1 -
 games-emulation/bsnes-jg/bsnes-jg-1.2.0.ebuild | 46 --
 2 files changed, 47 deletions(-)

diff --git a/games-emulation/bsnes-jg/Manifest 
b/games-emulation/bsnes-jg/Manifest
index 93f311490918..cbf06863f3f4 100644
--- a/games-emulation/bsnes-jg/Manifest
+++ b/games-emulation/bsnes-jg/Manifest
@@ -1,2 +1 @@
-DIST bsnes-1.2.0.tar.bz2 4277380 BLAKE2B 
03abb6efdf2e2fe487ddea780f9a3053092e718695d7f875304a008f5e3e967c443f3ad40d7c8a82b07d66c52ead5d258018fd004cb205efaaa872b122057c98
 SHA512 
96aaeecf10508bc7672c30fa24b34e0d32e34c4190928109a141f4a1d73fb6f007844f9b7154ffc57028ddb9e99b5c281a214b9517ce5de618cf229722ff1e20
 DIST bsnes-2.0.0.tar.bz2 4318300 BLAKE2B 
7b93502a7dd68427069d0a33161927709f327352a3da3637cea416b31293750b249f3d750bba093a5a3430c5c2ab42b5e29e8b707377b29254651091a2b0aaed
 SHA512 
95f970a16c7efdfd5f0dca1a8bcfd7d5785e4e2635eb4c36fdade350be52c8c950736df84a9a5bb108a98c4b9b936f12f2a0ea7d9974737e105b1b0c034f6dbd

diff --git a/games-emulation/bsnes-jg/bsnes-jg-1.2.0.ebuild 
b/games-emulation/bsnes-jg/bsnes-jg-1.2.0.ebuild
deleted file mode 100644
index 243ad0946b1d..
--- a/games-emulation/bsnes-jg/bsnes-jg-1.2.0.ebuild
+++ /dev/null
@@ -1,46 +0,0 @@
-# Copyright 2022-2024 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 Fork of bsnes"
-HOMEPAGE="https://gitlab.com/jgemu/bsnes";
-if [[ "${PV}" == * ]] ; 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"
-SLOT="1"
-
-DEPEND="
-   media-libs/jg:1=
-   media-libs/libsamplerate
-"
-RDEPEND="
-   ${DEPEND}
-   games-emulation/jgrf
-"
-BDEPEND="
-   virtual/pkgconfig
-"
-
-src_compile() {
-   emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" 
PKG_CONFIG="$(tc-getPKG_CONFIG)"
-}
-
-src_install() {
-   emake install \
-   DESTDIR="${D}" \
-   PREFIX="${EPREFIX}"/usr \
-   DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \
-   LIBDIR="${EPREFIX}/usr/$(get_libdir)"
-}



[gentoo-commits] repo/gentoo:master commit in: games-emulation/bsnes-jg/

2024-12-13 Thread Sam James
commit: 20ca4611fd7218dc48c4d94ea1cbfb9cd72474a2
Author: orbea  riseup  net>
AuthorDate: Fri Dec 13 01:46:28 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Dec 13 09:34:12 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20ca4611

games-emulation/bsnes-jg: metadata: add changelog

Signed-off-by: orbea  riseup.net>
Signed-off-by: Sam James  gentoo.org>

 games-emulation/bsnes-jg/metadata.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/games-emulation/bsnes-jg/metadata.xml 
b/games-emulation/bsnes-jg/metadata.xml
index 3904aaeb005d..66fdb0f48f70 100644
--- a/games-emulation/bsnes-jg/metadata.xml
+++ b/games-emulation/bsnes-jg/metadata.xml
@@ -20,6 +20,7 @@


https://gitlab.com/jgemu/bsnes/-/issues
+   
https://gitlab.com/jgemu/bsnes/-/blob/master/ChangeLog
jgemu/bsnes

 



[gentoo-commits] repo/gentoo:master commit in: games-emulation/bsnes-jg/files/, games-emulation/bsnes-jg/

2024-11-03 Thread Joonas Niilola
commit: 3b8502a9362d474c52ddf4288b45e0f925b7429d
Author: orbea  riseup  net>
AuthorDate: Sat Nov  2 20:16:33 2024 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Sun Nov  3 11:57:29 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b8502a9

games-emulation/bsnes-jg: fix install with USE=example

Upstream-PR: https://gitlab.com/jgemu/bsnes/-/merge_requests/431
Upstream-Commit: 
https://gitlab.com/jgemu/bsnes/-/commit/a94bae4241ffe91f868fb0e359686769e05b7d3c
Signed-off-by: orbea  riseup.net>
Closes: https://github.com/gentoo/gentoo/pull/39186
Signed-off-by: Joonas Niilola  gentoo.org>

 games-emulation/bsnes-jg/bsnes-jg-2.0.0.ebuild |  4 ++
 .../files/bsnes-jg-2.0.0-install-data.patch| 53 ++
 2 files changed, 57 insertions(+)

diff --git a/games-emulation/bsnes-jg/bsnes-jg-2.0.0.ebuild 
b/games-emulation/bsnes-jg/bsnes-jg-2.0.0.ebuild
index 261d967b3f3f..41088f14d458 100644
--- a/games-emulation/bsnes-jg/bsnes-jg-2.0.0.ebuild
+++ b/games-emulation/bsnes-jg/bsnes-jg-2.0.0.ebuild
@@ -45,6 +45,10 @@ BDEPEND="
virtual/pkgconfig
 "
 
+PATCHES=(
+   "${FILESDIR}"/${P}-install-data.patch
+)
+
 src_configure() {
local makeopts=(
PREFIX="${EPREFIX}"/usr

diff --git a/games-emulation/bsnes-jg/files/bsnes-jg-2.0.0-install-data.patch 
b/games-emulation/bsnes-jg/files/bsnes-jg-2.0.0-install-data.patch
new file mode 100644
index ..9c34e3c9b617
--- /dev/null
+++ b/games-emulation/bsnes-jg/files/bsnes-jg-2.0.0-install-data.patch
@@ -0,0 +1,53 @@
+Upstream-PR: https://gitlab.com/jgemu/bsnes/-/merge_requests/431
+Upstream-Commit: 
https://gitlab.com/jgemu/bsnes/-/commit/a94bae4241ffe91f868fb0e359686769e05b7d3c
+
+From a94bae4241ffe91f868fb0e359686769e05b7d3c Mon Sep 17 00:00:00 2001
+From: orbea 
+Date: Sat, 2 Nov 2024 10:12:49 -0700
+Subject: [PATCH] build: fix installing data files with the example
+
+During install with DISABLE_MODULE=1 and ENABLE_EXAMPLE=1 it will fail
+to install the .bml files.
+---
+ Makefile | 8 
+ mk/jg.mk | 6 ++
+ 2 files changed, 10 insertions(+), 4 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 7371ff4..5a7800b 100644
+--- a/Makefile
 b/Makefile
+@@ -236,10 +236,10 @@ $(DATA_BIN_TARGET): $(DATA_BASE:%=$(SOURCEDIR)/%) 
$(BIN_OUT)/.tag
+ 
+ install-data: all
+   @mkdir -p $(DESTDIR)$(DATADIR)/jollygood/$(NAME)
+-  cp $(NAME)/boards.bml $(DESTDIR)$(DATADIR)/jollygood/$(NAME)/
+-  cp $(NAME)/BSMemory.bml $(DESTDIR)$(DATADIR)/jollygood/$(NAME)/
+-  cp $(NAME)/SufamiTurbo.bml $(DESTDIR)$(DATADIR)/jollygood/$(NAME)/
+-  cp $(NAME)/SuperFamicom.bml $(DESTDIR)$(DATADIR)/jollygood/$(NAME)/
++  cp $(DATA_OUT)/boards.bml $(DESTDIR)$(DATADIR)/jollygood/$(NAME)/
++  cp $(DATA_OUT)/BSMemory.bml $(DESTDIR)$(DATADIR)/jollygood/$(NAME)/
++  cp $(DATA_OUT)/SufamiTurbo.bml $(DESTDIR)$(DATADIR)/jollygood/$(NAME)/
++  cp $(DATA_OUT)/SuperFamicom.bml $(DESTDIR)$(DATADIR)/jollygood/$(NAME)/
+ 
+ install-docs::
+   cp $(DEPDIR)/byuuML/LICENSE $(DESTDIR)$(DOCDIR)/LICENSE-byuuML
+diff --git a/mk/jg.mk b/mk/jg.mk
+index 5086d35..a6789b4 100644
+--- a/mk/jg.mk
 b/mk/jg.mk
+@@ -143,6 +143,12 @@ else
+   endif
+ endif
+ 
++ifeq (,$(filter 0,$(ENABLE_EXAMPLE) $(DISABLE_MODULE)))
++  override DATA_OUT := $(BIN_OUT)
++else
++  override DATA_OUT := $(NAME)
++endif
++
+ ifeq ($(INSTALL_SHARED), 0)
+   override HEADERS :=
+   override SYMBOLS_LIST :=
+-- 
+GitLab



[gentoo-commits] repo/gentoo:master commit in: games-emulation/bsnes-jg/

2024-11-02 Thread Joonas Niilola
commit: 55f57746223d41b4fbb28919e108dec41e7c2897
Author: orbea  riseup  net>
AuthorDate: Wed Sep 18 16:48:05 2024 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Sat Nov  2 12:46:00 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55f57746

games-emulation/bsnes-jg: add new USE flags

bsnes-jg now also offers libbsnes, an example and doxygen documentation.

Signed-off-by: orbea  riseup.net>
Signed-off-by: Joonas Niilola  gentoo.org>

 games-emulation/bsnes-jg/bsnes-jg-.ebuild | 51 ++-
 games-emulation/bsnes-jg/metadata.xml |  4 +++
 2 files changed, 46 insertions(+), 9 deletions(-)

diff --git a/games-emulation/bsnes-jg/bsnes-jg-.ebuild 
b/games-emulation/bsnes-jg/bsnes-jg-.ebuild
index 243ad0946b1d..261d967b3f3f 100644
--- a/games-emulation/bsnes-jg/bsnes-jg-.ebuild
+++ b/games-emulation/bsnes-jg/bsnes-jg-.ebuild
@@ -3,7 +3,10 @@
 
 EAPI=8
 
-inherit toolchain-funcs
+DOCS_BUILDER="doxygen"
+DOCS_DIR="objs/doc"
+
+inherit docs toolchain-funcs
 
 MY_PN=${PN%-*}
 MY_P=${MY_PN}-${PV}
@@ -18,29 +21,59 @@ else
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
 fi
 
-LICENSE="ISC GPL-3+ LGPL-2.1+ MIT ZLIB"
+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/jg:1=
media-libs/libsamplerate
+   examples? ( media-libs/libsdl2[sound,video] )
+   jgmodule? ( media-libs/jg:1= )
 "
 RDEPEND="
${DEPEND}
-   games-emulation/jgrf
+   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() {
-   emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" 
PKG_CONFIG="$(tc-getPKG_CONFIG)"
+   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() {
-   emake install \
-   DESTDIR="${D}" \
-   PREFIX="${EPREFIX}"/usr \
-   DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \
+   local mymakeargs=(
+   DESTDIR="${D}"
+   DOCDIR="${EPREFIX}"/usr/share/doc/${PF}
LIBDIR="${EPREFIX}/usr/$(get_libdir)"
+   ${MY_MAKEOPTS}
+   )
+   emake install "${mymakeargs[@]}"
+   use doc && einstalldocs
 }

diff --git a/games-emulation/bsnes-jg/metadata.xml 
b/games-emulation/bsnes-jg/metadata.xml
index 8d62f9db73ee..3904aaeb005d 100644
--- a/games-emulation/bsnes-jg/metadata.xml
+++ b/games-emulation/bsnes-jg/metadata.xml
@@ -9,6 +9,10 @@
proxy-ma...@gentoo.org
Proxy Maintainers

+   
+   Build module for The Jolly Good API
+   Build shared library
+   

bsnes-jg is a cycle accurate emulator for the Super 
Famicom/Super
Nintendo Entertainment System, including support for the Super 
Game Boy,



[gentoo-commits] repo/gentoo:master commit in: games-emulation/bsnes-jg/files/, games-emulation/bsnes-jg/

2024-11-02 Thread Joonas Niilola
commit: 265e25919ebc7649db92f49c1006121682d2db74
Author: orbea  riseup  net>
AuthorDate: Sun Sep 22 16:30:16 2024 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Sat Nov  2 12:46:00 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=265e2591

games-emulation/bsnes-jg: drop 1.1.2-r2

Signed-off-by: orbea  riseup.net>
Signed-off-by: Joonas Niilola  gentoo.org>

 games-emulation/bsnes-jg/Manifest  |  1 -
 games-emulation/bsnes-jg/bsnes-jg-1.1.2-r2.ebuild  | 53 -
 .../bsnes-jg/files/bsnes-jg-1.1.2-endianness.patch | 58 ---
 .../files/bsnes-jg-1.1.2-strict-aliasing.patch | 67 --
 4 files changed, 179 deletions(-)

diff --git a/games-emulation/bsnes-jg/Manifest 
b/games-emulation/bsnes-jg/Manifest
index d57ef55561ba..93f311490918 100644
--- a/games-emulation/bsnes-jg/Manifest
+++ b/games-emulation/bsnes-jg/Manifest
@@ -1,3 +1,2 @@
-DIST bsnes-1.1.2.tar.bz2 4183035 BLAKE2B 
09e01845fb9e6208f5262e2abef14c46e9fa53cfdd025821345507fc68e520dc21ca69e5d712a7f821936166975865c26dc0be42549b551abdbb941e748949b1
 SHA512 
77cb82b6cba2941813de25273bd74b928ad380dccadb909ae3500ddf6f8906504f5400df95381569d35fc7b06e0330f9eb4d54d88d64a5c698925d54df62bada
 DIST bsnes-1.2.0.tar.bz2 4277380 BLAKE2B 
03abb6efdf2e2fe487ddea780f9a3053092e718695d7f875304a008f5e3e967c443f3ad40d7c8a82b07d66c52ead5d258018fd004cb205efaaa872b122057c98
 SHA512 
96aaeecf10508bc7672c30fa24b34e0d32e34c4190928109a141f4a1d73fb6f007844f9b7154ffc57028ddb9e99b5c281a214b9517ce5de618cf229722ff1e20
 DIST bsnes-2.0.0.tar.bz2 4318300 BLAKE2B 
7b93502a7dd68427069d0a33161927709f327352a3da3637cea416b31293750b249f3d750bba093a5a3430c5c2ab42b5e29e8b707377b29254651091a2b0aaed
 SHA512 
95f970a16c7efdfd5f0dca1a8bcfd7d5785e4e2635eb4c36fdade350be52c8c950736df84a9a5bb108a98c4b9b936f12f2a0ea7d9974737e105b1b0c034f6dbd

diff --git a/games-emulation/bsnes-jg/bsnes-jg-1.1.2-r2.ebuild 
b/games-emulation/bsnes-jg/bsnes-jg-1.1.2-r2.ebuild
deleted file mode 100644
index fe035e7a3b86..
--- a/games-emulation/bsnes-jg/bsnes-jg-1.1.2-r2.ebuild
+++ /dev/null
@@ -1,53 +0,0 @@
-# Copyright 2022-2024 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 Fork of bsnes"
-HOMEPAGE="https://gitlab.com/jgemu/bsnes";
-if [[ "${PV}" == * ]] ; 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"
-SLOT="1"
-
-DEPEND="
-   media-libs/jg:1=
-   media-libs/libsamplerate
-"
-RDEPEND="
-   ${DEPEND}
-   games-emulation/jgrf
-"
-BDEPEND="
-   virtual/pkgconfig
-"
-
-PATCHES=(
-   # https://bugs.gentoo.org/891201#c9
-   "${FILESDIR}"/${P}-endianness.patch
-   # https://bugs.gentoo.org/926077
-   "${FILESDIR}"/${P}-strict-aliasing.patch
-)
-
-src_compile() {
-   emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" 
PKG_CONFIG="$(tc-getPKG_CONFIG)"
-}
-
-src_install() {
-   emake install \
-   DESTDIR="${D}" \
-   PREFIX="${EPREFIX}"/usr \
-   DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \
-   LIBDIR="${EPREFIX}/usr/$(get_libdir)"
-}

diff --git a/games-emulation/bsnes-jg/files/bsnes-jg-1.1.2-endianness.patch 
b/games-emulation/bsnes-jg/files/bsnes-jg-1.1.2-endianness.patch
deleted file mode 100644
index 5c2b7b55627c..
--- a/games-emulation/bsnes-jg/files/bsnes-jg-1.1.2-endianness.patch
+++ /dev/null
@@ -1,58 +0,0 @@
-https://bugs.gentoo.org/891201#c9
-https://gitlab.com/jgemu/bsnes/-/merge_requests/371
-https://gitlab.com/jgemu/bsnes/-/commit/647e868f3d97bd937c46ecf312bbfbc25b816dc1
-
-From 647e868f3d97bd937c46ecf312bbfbc25b816dc1 Mon Sep 17 00:00:00 2001
-From: orbea 
-Date: Sat, 9 Dec 2023 07:12:12 -0800
-Subject: [PATCH] processor: update endian.hpp
-
-Reference: https://sourceforge.net/p/predef/wiki/Endianness/

- src/processor/endian.hpp | 25 ++---
- 1 file changed, 14 insertions(+), 11 deletions(-)
-
-diff --git a/src/processor/endian.hpp b/src/processor/endian.hpp
-index 3b6d93e..7d6ad04 100644
 a/src/processor/endian.hpp
-+++ b/src/processor/endian.hpp
-@@ -1,25 +1,28 @@
- #pragma once
- 
-+// Reference: https://sourceforge.net/p/predef/wiki/Endianness/
-+
- #if defined(__APPLE__)
-   #include 
- #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || 
defined(__NetBSD__) || defined(__OpenBSD__) || defined (__DragonFly__)
-   #include 
- #endif
- 
--#if  (defined(__BYTE_ORDER) && defined(__LITTLE_ENDIAN) && __BYTE_ORDER == 
__LITTLE_ENDIAN) \
--  || (defined( _BYTE_ORDER) && defined( _LITTLE_ENDIAN) &&  _BYTE_ORDER ==  
_LITTLE_ENDIAN) \
--  || (defined(  BYTE_ORDER) && defined

[gentoo-commits] repo/gentoo:master commit in: games-emulation/bsnes-jg/

2024-11-02 Thread Joonas Niilola
commit: d9960ee4782d960b94bc39b2af7c7a1e004381a5
Author: orbea  riseup  net>
AuthorDate: Sun Sep 22 16:29:22 2024 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Sat Nov  2 12:46:00 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9960ee4

games-emulation/bsnes-jg: add 2.0.0

Signed-off-by: orbea  riseup.net>
Signed-off-by: Joonas Niilola  gentoo.org>

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

diff --git a/games-emulation/bsnes-jg/Manifest 
b/games-emulation/bsnes-jg/Manifest
index 8fa3da84c341..d57ef55561ba 100644
--- a/games-emulation/bsnes-jg/Manifest
+++ b/games-emulation/bsnes-jg/Manifest
@@ -1,2 +1,3 @@
 DIST bsnes-1.1.2.tar.bz2 4183035 BLAKE2B 
09e01845fb9e6208f5262e2abef14c46e9fa53cfdd025821345507fc68e520dc21ca69e5d712a7f821936166975865c26dc0be42549b551abdbb941e748949b1
 SHA512 
77cb82b6cba2941813de25273bd74b928ad380dccadb909ae3500ddf6f8906504f5400df95381569d35fc7b06e0330f9eb4d54d88d64a5c698925d54df62bada
 DIST bsnes-1.2.0.tar.bz2 4277380 BLAKE2B 
03abb6efdf2e2fe487ddea780f9a3053092e718695d7f875304a008f5e3e967c443f3ad40d7c8a82b07d66c52ead5d258018fd004cb205efaaa872b122057c98
 SHA512 
96aaeecf10508bc7672c30fa24b34e0d32e34c4190928109a141f4a1d73fb6f007844f9b7154ffc57028ddb9e99b5c281a214b9517ce5de618cf229722ff1e20
+DIST bsnes-2.0.0.tar.bz2 4318300 BLAKE2B 
7b93502a7dd68427069d0a33161927709f327352a3da3637cea416b31293750b249f3d750bba093a5a3430c5c2ab42b5e29e8b707377b29254651091a2b0aaed
 SHA512 
95f970a16c7efdfd5f0dca1a8bcfd7d5785e4e2635eb4c36fdade350be52c8c950736df84a9a5bb108a98c4b9b936f12f2a0ea7d9974737e105b1b0c034f6dbd

diff --git a/games-emulation/bsnes-jg/bsnes-jg-2.0.0.ebuild 
b/games-emulation/bsnes-jg/bsnes-jg-2.0.0.ebuild
new file mode 100644
index ..261d967b3f3f
--- /dev/null
+++ b/games-emulation/bsnes-jg/bsnes-jg-2.0.0.ebuild
@@ -0,0 +1,79 @@
+# Copyright 2022-2024 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}" == * ]] ; 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
+}



[gentoo-commits] repo/gentoo:master commit in: games-emulation/bsnes-jg/

2024-04-29 Thread Joonas Niilola
commit: 249420c672426d92a9b94496d7918994181743f9
Author: orbea  riseup  net>
AuthorDate: Sat Mar 30 19:15:50 2024 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Mon Apr 29 08:45:18 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=249420c6

games-emulation/bsnes-jg: drop 1.1.2-r1

Signed-off-by: orbea  riseup.net>
Signed-off-by: Joonas Niilola  gentoo.org>

 games-emulation/bsnes-jg/bsnes-jg-1.1.2-r1.ebuild | 50 ---
 1 file changed, 50 deletions(-)

diff --git a/games-emulation/bsnes-jg/bsnes-jg-1.1.2-r1.ebuild 
b/games-emulation/bsnes-jg/bsnes-jg-1.1.2-r1.ebuild
deleted file mode 100644
index 3522f14ebe50..
--- a/games-emulation/bsnes-jg/bsnes-jg-1.1.2-r1.ebuild
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright 2022-2024 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 Fork of bsnes"
-HOMEPAGE="https://gitlab.com/jgemu/bsnes";
-if [[ "${PV}" == * ]] ; 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"
-SLOT="1"
-
-PATCHES=(
-   "${FILESDIR}"/${P}-endianness.patch # 891201#c9
-)
-
-DEPEND="
-   media-libs/jg:1=
-   media-libs/libsamplerate
-"
-RDEPEND="
-   ${DEPEND}
-   games-emulation/jgrf
-"
-BDEPEND="
-   virtual/pkgconfig
-"
-
-src_compile() {
-   emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" 
PKG_CONFIG="$(tc-getPKG_CONFIG)"
-}
-
-src_install() {
-   emake install \
-   DESTDIR="${D}" \
-   PREFIX="${EPREFIX}"/usr \
-   DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \
-   LIBDIR="${EPREFIX}/usr/$(get_libdir)"
-}



[gentoo-commits] repo/gentoo:master commit in: games-emulation/bsnes-jg/

2024-04-29 Thread Joonas Niilola
commit: 04c9f8a06b032ae4c09f6bdc26de92aa5b4df7bc
Author: orbea  riseup  net>
AuthorDate: Sat Mar 30 19:15:26 2024 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Mon Apr 29 08:45:18 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04c9f8a0

games-emulation/bsnes-jg: add 1.2.0

Signed-off-by: orbea  riseup.net>
Signed-off-by: Joonas Niilola  gentoo.org>

 games-emulation/bsnes-jg/Manifest  |  1 +
 games-emulation/bsnes-jg/bsnes-jg-1.2.0.ebuild | 46 ++
 2 files changed, 47 insertions(+)

diff --git a/games-emulation/bsnes-jg/Manifest 
b/games-emulation/bsnes-jg/Manifest
index be59e5809a5e..8fa3da84c341 100644
--- a/games-emulation/bsnes-jg/Manifest
+++ b/games-emulation/bsnes-jg/Manifest
@@ -1 +1,2 @@
 DIST bsnes-1.1.2.tar.bz2 4183035 BLAKE2B 
09e01845fb9e6208f5262e2abef14c46e9fa53cfdd025821345507fc68e520dc21ca69e5d712a7f821936166975865c26dc0be42549b551abdbb941e748949b1
 SHA512 
77cb82b6cba2941813de25273bd74b928ad380dccadb909ae3500ddf6f8906504f5400df95381569d35fc7b06e0330f9eb4d54d88d64a5c698925d54df62bada
+DIST bsnes-1.2.0.tar.bz2 4277380 BLAKE2B 
03abb6efdf2e2fe487ddea780f9a3053092e718695d7f875304a008f5e3e967c443f3ad40d7c8a82b07d66c52ead5d258018fd004cb205efaaa872b122057c98
 SHA512 
96aaeecf10508bc7672c30fa24b34e0d32e34c4190928109a141f4a1d73fb6f007844f9b7154ffc57028ddb9e99b5c281a214b9517ce5de618cf229722ff1e20

diff --git a/games-emulation/bsnes-jg/bsnes-jg-1.2.0.ebuild 
b/games-emulation/bsnes-jg/bsnes-jg-1.2.0.ebuild
new file mode 100644
index ..243ad0946b1d
--- /dev/null
+++ b/games-emulation/bsnes-jg/bsnes-jg-1.2.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 2022-2024 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 Fork of bsnes"
+HOMEPAGE="https://gitlab.com/jgemu/bsnes";
+if [[ "${PV}" == * ]] ; 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"
+SLOT="1"
+
+DEPEND="
+   media-libs/jg:1=
+   media-libs/libsamplerate
+"
+RDEPEND="
+   ${DEPEND}
+   games-emulation/jgrf
+"
+BDEPEND="
+   virtual/pkgconfig
+"
+
+src_compile() {
+   emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" 
PKG_CONFIG="$(tc-getPKG_CONFIG)"
+}
+
+src_install() {
+   emake install \
+   DESTDIR="${D}" \
+   PREFIX="${EPREFIX}"/usr \
+   DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \
+   LIBDIR="${EPREFIX}/usr/$(get_libdir)"
+}



[gentoo-commits] repo/gentoo:master commit in: games-emulation/bsnes-jg/files/, games-emulation/bsnes-jg/

2024-03-20 Thread Sam James
commit: 7d3a275c4d3a648219cf757d3ec160e082557c2e
Author: orbea  riseup  net>
AuthorDate: Thu Mar 21 01:41:04 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Mar 21 02:15:45 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d3a275c

games-emulation/bsnes-jg: fix strict aliasing

Closes: https://bugs.gentoo.org/926077
Upstream-PR: https://github.com/LIJI32/SameBoy/pull/593
Upstream-Commit: 
https://github.com/LIJI32/SameBoy/commit/8739da61c013e20e1cc94f0619c622a65c713408
Upstream-PR: https://gitlab.com/jgemu/bsnes/-/merge_requests/419
Upstream-Commit: 
https://gitlab.com/jgemu/bsnes/-/commit/966545bb79cc9810fbcedbe34fd52f7b9b5ef04e
Signed-off-by: orbea  riseup.net>
Closes: https://github.com/gentoo/gentoo/pull/35847
Signed-off-by: Sam James  gentoo.org>

 games-emulation/bsnes-jg/bsnes-jg-1.1.2-r2.ebuild  | 53 +
 .../files/bsnes-jg-1.1.2-strict-aliasing.patch | 67 ++
 2 files changed, 120 insertions(+)

diff --git a/games-emulation/bsnes-jg/bsnes-jg-1.1.2-r2.ebuild 
b/games-emulation/bsnes-jg/bsnes-jg-1.1.2-r2.ebuild
new file mode 100644
index ..fe035e7a3b86
--- /dev/null
+++ b/games-emulation/bsnes-jg/bsnes-jg-1.1.2-r2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 2022-2024 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 Fork of bsnes"
+HOMEPAGE="https://gitlab.com/jgemu/bsnes";
+if [[ "${PV}" == * ]] ; 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"
+SLOT="1"
+
+DEPEND="
+   media-libs/jg:1=
+   media-libs/libsamplerate
+"
+RDEPEND="
+   ${DEPEND}
+   games-emulation/jgrf
+"
+BDEPEND="
+   virtual/pkgconfig
+"
+
+PATCHES=(
+   # https://bugs.gentoo.org/891201#c9
+   "${FILESDIR}"/${P}-endianness.patch
+   # https://bugs.gentoo.org/926077
+   "${FILESDIR}"/${P}-strict-aliasing.patch
+)
+
+src_compile() {
+   emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" 
PKG_CONFIG="$(tc-getPKG_CONFIG)"
+}
+
+src_install() {
+   emake install \
+   DESTDIR="${D}" \
+   PREFIX="${EPREFIX}"/usr \
+   DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \
+   LIBDIR="${EPREFIX}/usr/$(get_libdir)"
+}

diff --git 
a/games-emulation/bsnes-jg/files/bsnes-jg-1.1.2-strict-aliasing.patch 
b/games-emulation/bsnes-jg/files/bsnes-jg-1.1.2-strict-aliasing.patch
new file mode 100644
index ..106ea27730da
--- /dev/null
+++ b/games-emulation/bsnes-jg/files/bsnes-jg-1.1.2-strict-aliasing.patch
@@ -0,0 +1,67 @@
+https://bugs.gentoo.org/926077
+https://github.com/LIJI32/SameBoy/pull/593
+https://gitlab.com/jgemu/bsnes/-/merge_requests/419
+https://gitlab.com/jgemu/bsnes/-/commit/966545bb79cc9810fbcedbe34fd52f7b9b5ef04e
+
+From 966545bb79cc9810fbcedbe34fd52f7b9b5ef04e Mon Sep 17 00:00:00 2001
+From: Lior Halphon 
+Date: Sat, 9 Mar 2024 11:08:01 -0800
+Subject: [PATCH 1/2] Avoid strict aliasing violations. Closes #593
+
+Backported from:
+
+https://github.com/LIJI32/SameBoy/commit/8739da61c013e20e1cc94f0619c622a65c713408
+---
+ deps/gb/apu.c |  4 ++--
+ deps/gb/apu.h | 11 +++
+ 2 files changed, 13 insertions(+), 2 deletions(-)
+
+diff --git a/deps/gb/apu.c b/deps/gb/apu.c
+index e621e82a..0f0ed16b 100644
+--- a/deps/gb/apu.c
 b/deps/gb/apu.c
+@@ -100,7 +100,7 @@ static void update_sample(GB_gameboy_t *gb, GB_channel_t 
index, int8_t value, un
+ output.left = output.right = 0;
+ }
+ 
+-if (*(uint32_t *)&(gb->apu_output.current_sample[index]) != 
*(uint32_t *)&output) {
++if (gb->apu_output.current_sample[index].packed != output.packed) 
{
+ refresh_channel(gb, index, cycles_offset);
+ gb->apu_output.current_sample[index] = output;
+ }
+@@ -131,7 +131,7 @@ static void update_sample(GB_gameboy_t *gb, GB_channel_t 
index, int8_t value, un
+ if (likely(!gb->apu_output.channel_muted[index])) {
+ output = (GB_sample_t){(0xF - value * 2) * left_volume, (0xF - 
value * 2) * right_volume};
+ }
+-if (*(uint32_t *)&(gb->apu_output.current_sample[index]) != 
*(uint32_t *)&output) {
++if (gb->apu_output.current_sample[index].packed != output.packed) {
+ refresh_channel(gb, index, cycles_offset);
+ gb->apu_output.current_sample[index] = output;
+ }
+diff --git a/deps/gb/apu.h b/deps/gb/apu.h
+index c8700c80..15b54a87 100644
+--- a/deps/gb/apu.h
 b/deps/gb/apu.h
+@@ -25,11 +25,22 @@
+ 
+ /* APU ticks are 2MHz, triggered by an internal APU clock. */
+ 
++#ifdef GB_INTERNAL
++typedef union
+

[gentoo-commits] repo/gentoo:master commit in: games-emulation/bsnes-jg/

2024-02-23 Thread Joonas Niilola
commit: bfa84fa6b87e8b3abc12cd6abd9caf07611e4bb7
Author: orbea  riseup  net>
AuthorDate: Sat Feb 24 00:04:23 2024 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Sat Feb 24 07:06:12 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfa84fa6

games-emulation/bsnes-jg: update maintainers

Signed-off-by: orbea  riseup.net>
Signed-off-by: Joonas Niilola  gentoo.org>

 games-emulation/bsnes-jg/metadata.xml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/games-emulation/bsnes-jg/metadata.xml 
b/games-emulation/bsnes-jg/metadata.xml
index 3fa9976f7933..8d62f9db73ee 100644
--- a/games-emulation/bsnes-jg/metadata.xml
+++ b/games-emulation/bsnes-jg/metadata.xml
@@ -5,9 +5,9 @@
or...@riseup.net
orbea

-   
-   s...@gentoo.org
-   Sam James
+   
+   proxy-ma...@gentoo.org
+   Proxy Maintainers


bsnes-jg is a cycle accurate emulator for the Super 
Famicom/Super



[gentoo-commits] repo/gentoo:master commit in: games-emulation/bsnes-jg/

2024-02-23 Thread Joonas Niilola
commit: 34eb46009f92a3092798c3e7a5ec56f8f4fb8b72
Author: orbea  riseup  net>
AuthorDate: Sat Feb 24 00:05:48 2024 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Sat Feb 24 07:06:12 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34eb4600

games-emulation/bsnes-jg: drop 1.1.2

Signed-off-by: orbea  riseup.net>
Signed-off-by: Joonas Niilola  gentoo.org>

 games-emulation/bsnes-jg/bsnes-jg-1.1.2.ebuild | 46 --
 1 file changed, 46 deletions(-)

diff --git a/games-emulation/bsnes-jg/bsnes-jg-1.1.2.ebuild 
b/games-emulation/bsnes-jg/bsnes-jg-1.1.2.ebuild
deleted file mode 100644
index 40f0407e5a92..
--- a/games-emulation/bsnes-jg/bsnes-jg-1.1.2.ebuild
+++ /dev/null
@@ -1,46 +0,0 @@
-# Copyright 2022-2023 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 Fork of bsnes"
-HOMEPAGE="https://gitlab.com/jgemu/bsnes";
-if [[ "${PV}" == * ]] ; 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 ~arm64 ~ppc ~ppc64 ~x86"
-fi
-
-LICENSE="ISC GPL-3+ LGPL-2.1+ MIT ZLIB"
-SLOT="1"
-
-DEPEND="
-   media-libs/jg:1=
-   media-libs/libsamplerate
-"
-RDEPEND="
-   ${DEPEND}
-   games-emulation/jgrf
-"
-BDEPEND="
-   virtual/pkgconfig
-"
-
-src_compile() {
-   emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" 
PKG_CONFIG="$(tc-getPKG_CONFIG)"
-}
-
-src_install() {
-   emake install \
-   DESTDIR="${D}" \
-   PREFIX="${EPREFIX}"/usr \
-   DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \
-   LIBDIR="${EPREFIX}/usr/$(get_libdir)"
-}



[gentoo-commits] repo/gentoo:master commit in: games-emulation/bsnes-jg/

2024-02-23 Thread Joonas Niilola
commit: 4464e1efda0ffed12f9ed9b6747031fb528e98cd
Author: orbea  riseup  net>
AuthorDate: Sat Feb 24 00:05:30 2024 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Sat Feb 24 07:06:12 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4464e1ef

games-emulation/bsnes-jg: sync keywords

Signed-off-by: orbea  riseup.net>
Signed-off-by: Joonas Niilola  gentoo.org>

 games-emulation/bsnes-jg/bsnes-jg-.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/games-emulation/bsnes-jg/bsnes-jg-.ebuild 
b/games-emulation/bsnes-jg/bsnes-jg-.ebuild
index 2745d2cfd5e9..243ad0946b1d 100644
--- a/games-emulation/bsnes-jg/bsnes-jg-.ebuild
+++ b/games-emulation/bsnes-jg/bsnes-jg-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022-2023 Gentoo Authors
+# Copyright 2022-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -15,7 +15,7 @@ if [[ "${PV}" == * ]] ; then
 else

SRC_URI="https://gitlab.com/jgemu/${MY_PN}/-/archive/${PV}/${MY_P}.tar.bz2";
S="${WORKDIR}/${MY_P}"
-   KEYWORDS="~amd64"
+   KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
 fi
 
 LICENSE="ISC GPL-3+ LGPL-2.1+ MIT ZLIB"



[gentoo-commits] repo/gentoo:master commit in: games-emulation/bsnes-jg/

2024-01-06 Thread Viorel Munteanu
commit: c39f4a734dca9c89bce81dd7a6b7f6a7db6ef2ad
Author: Matoro Mahri  matoro  tk>
AuthorDate: Fri Jan  5 18:44:06 2024 +
Commit: Viorel Munteanu  gentoo  org>
CommitDate: Sat Jan  6 19:29:03 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c39f4a73

games-emulation/bsnes-jg: Keyword 1.1.2-r1 arm, #891201

Signed-off-by: Matoro Mahri  matoro.tk>
Signed-off-by: Viorel Munteanu  gentoo.org>

 games-emulation/bsnes-jg/bsnes-jg-1.1.2-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/games-emulation/bsnes-jg/bsnes-jg-1.1.2-r1.ebuild 
b/games-emulation/bsnes-jg/bsnes-jg-1.1.2-r1.ebuild
index 049dd7e7771d..3522f14ebe50 100644
--- a/games-emulation/bsnes-jg/bsnes-jg-1.1.2-r1.ebuild
+++ b/games-emulation/bsnes-jg/bsnes-jg-1.1.2-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022-2023 Gentoo Authors
+# Copyright 2022-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -15,7 +15,7 @@ if [[ "${PV}" == * ]] ; then
 else

SRC_URI="https://gitlab.com/jgemu/${MY_PN}/-/archive/${PV}/${MY_P}.tar.bz2";
S="${WORKDIR}/${MY_P}"
-   KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86"
+   KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
 fi
 
 LICENSE="ISC GPL-3+ LGPL-2.1+ MIT ZLIB"



[gentoo-commits] repo/gentoo:master commit in: games-emulation/bsnes-jg/

2023-12-02 Thread Sam James
commit: 64b01ff64c1c717507df08de6bff24b43da9be79
Author: Sam James  gentoo  org>
AuthorDate: Sun Dec  3 07:41:27 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Dec  3 07:41:27 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64b01ff6

games-emulation/bsnes-jg: Keyword 1.1.2 ppc64, #891201

Signed-off-by: Sam James  gentoo.org>

 games-emulation/bsnes-jg/bsnes-jg-1.1.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/games-emulation/bsnes-jg/bsnes-jg-1.1.2.ebuild 
b/games-emulation/bsnes-jg/bsnes-jg-1.1.2.ebuild
index 17c199ff0a7e..40f0407e5a92 100644
--- a/games-emulation/bsnes-jg/bsnes-jg-1.1.2.ebuild
+++ b/games-emulation/bsnes-jg/bsnes-jg-1.1.2.ebuild
@@ -15,7 +15,7 @@ if [[ "${PV}" == * ]] ; then
 else

SRC_URI="https://gitlab.com/jgemu/${MY_PN}/-/archive/${PV}/${MY_P}.tar.bz2";
S="${WORKDIR}/${MY_P}"
-   KEYWORDS="~amd64 ~arm64 ~ppc ~x86"
+   KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86"
 fi
 
 LICENSE="ISC GPL-3+ LGPL-2.1+ MIT ZLIB"



[gentoo-commits] repo/gentoo:master commit in: games-emulation/bsnes-jg/

2023-09-17 Thread Arthur Zamarin
commit: cf040f8acfa6623153b26ef2f71547704c9e4826
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sun Sep 17 08:56:23 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sun Sep 17 08:56:36 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf040f8a

games-emulation/bsnes-jg: Keyword 1.1.2 x86, #891201

Signed-off-by: Arthur Zamarin  gentoo.org>

 games-emulation/bsnes-jg/bsnes-jg-1.1.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/games-emulation/bsnes-jg/bsnes-jg-1.1.2.ebuild 
b/games-emulation/bsnes-jg/bsnes-jg-1.1.2.ebuild
index 4487afc4d88a..aa9e93576b27 100644
--- a/games-emulation/bsnes-jg/bsnes-jg-1.1.2.ebuild
+++ b/games-emulation/bsnes-jg/bsnes-jg-1.1.2.ebuild
@@ -15,7 +15,7 @@ if [[ "${PV}" == * ]] ; then
 else

SRC_URI="https://gitlab.com/jgemu/${MY_PN}/-/archive/${PV}/${MY_P}.tar.bz2";
S="${WORKDIR}/${MY_P}"
-   KEYWORDS="~amd64 ~arm64"
+   KEYWORDS="~amd64 ~arm64 ~x86"
 fi
 
 LICENSE="ISC GPL-3+ LGPL-2.1+ MIT ZLIB"



[gentoo-commits] repo/gentoo:master commit in: games-emulation/bsnes-jg/

2023-09-12 Thread Sam James
commit: aafdbfba8edb9c860ada0a7b48bfd6756ccd3868
Author: Sam James  gentoo  org>
AuthorDate: Wed Sep 13 03:19:36 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Sep 13 03:19:36 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aafdbfba

games-emulation/bsnes-jg: Keyword 1.1.2 arm64, #891201

Signed-off-by: Sam James  gentoo.org>

 games-emulation/bsnes-jg/bsnes-jg-1.1.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/games-emulation/bsnes-jg/bsnes-jg-1.1.2.ebuild 
b/games-emulation/bsnes-jg/bsnes-jg-1.1.2.ebuild
index 2745d2cfd5e9..4487afc4d88a 100644
--- a/games-emulation/bsnes-jg/bsnes-jg-1.1.2.ebuild
+++ b/games-emulation/bsnes-jg/bsnes-jg-1.1.2.ebuild
@@ -15,7 +15,7 @@ if [[ "${PV}" == * ]] ; then
 else

SRC_URI="https://gitlab.com/jgemu/${MY_PN}/-/archive/${PV}/${MY_P}.tar.bz2";
S="${WORKDIR}/${MY_P}"
-   KEYWORDS="~amd64"
+   KEYWORDS="~amd64 ~arm64"
 fi
 
 LICENSE="ISC GPL-3+ LGPL-2.1+ MIT ZLIB"



[gentoo-commits] repo/gentoo:master commit in: games-emulation/bsnes-jg/

2023-03-03 Thread Sam James
commit: d3421b8909c34d861b0aede50b8c6b205463a9b4
Author: orbea  riseup  net>
AuthorDate: Sat Mar  4 04:47:57 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Mar  4 07:18:18 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3421b89

games-emulation/bsnes-jg: Add 1.1.2 + Remove 1.1.1

Bug fix release for gcc13.

Closes: https://bugs.gentoo.org/898896
Signed-off-by: orbea  riseup.net>
Closes: https://github.com/gentoo/gentoo/pull/29916
Signed-off-by: Sam James  gentoo.org>

 games-emulation/bsnes-jg/Manifest   | 2 +-
 .../bsnes-jg/{bsnes-jg-1.1.1.ebuild => bsnes-jg-1.1.2.ebuild}   | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/games-emulation/bsnes-jg/Manifest 
b/games-emulation/bsnes-jg/Manifest
index e31fa8485c2e..be59e5809a5e 100644
--- a/games-emulation/bsnes-jg/Manifest
+++ b/games-emulation/bsnes-jg/Manifest
@@ -1 +1 @@
-DIST bsnes-1.1.1.tar.bz2 4182487 BLAKE2B 
dfcad14019ae8f6bee6a12f4e35b0cfc5338215d41028655c230faa7a481eb0ef09428192f244471887a3f7326d3fbf9ea713c642aab97989caa391ad41aa4ac
 SHA512 
e1c24d9154ef8285ab2c9d0b03860cb8e7396fffe1f575d25239816e6ec8183ab05ec2adc31c2c4e09c5a3ff8a439909860f704174c132f9ff343dbbf55ca034
+DIST bsnes-1.1.2.tar.bz2 4183035 BLAKE2B 
09e01845fb9e6208f5262e2abef14c46e9fa53cfdd025821345507fc68e520dc21ca69e5d712a7f821936166975865c26dc0be42549b551abdbb941e748949b1
 SHA512 
77cb82b6cba2941813de25273bd74b928ad380dccadb909ae3500ddf6f8906504f5400df95381569d35fc7b06e0330f9eb4d54d88d64a5c698925d54df62bada

diff --git a/games-emulation/bsnes-jg/bsnes-jg-1.1.1.ebuild 
b/games-emulation/bsnes-jg/bsnes-jg-1.1.2.ebuild
similarity index 100%
rename from games-emulation/bsnes-jg/bsnes-jg-1.1.1.ebuild
rename to games-emulation/bsnes-jg/bsnes-jg-1.1.2.ebuild



[gentoo-commits] repo/gentoo:master commit in: games-emulation/bsnes-jg/

2023-02-25 Thread Sam James
commit: 7eb5e2c80dd2f97e69076cc9a5ebf8481a2c68d1
Author: Sam James  gentoo  org>
AuthorDate: Sat Feb 25 22:24:06 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Feb 25 22:24:06 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7eb5e2c8

games-emulation/bsnes-jg: update copyright

Signed-off-by: Sam James  gentoo.org>

 games-emulation/bsnes-jg/bsnes-jg-1.1.1.ebuild | 2 +-
 games-emulation/bsnes-jg/bsnes-jg-.ebuild  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/games-emulation/bsnes-jg/bsnes-jg-1.1.1.ebuild 
b/games-emulation/bsnes-jg/bsnes-jg-1.1.1.ebuild
index 24d855263f55..2745d2cfd5e9 100644
--- a/games-emulation/bsnes-jg/bsnes-jg-1.1.1.ebuild
+++ b/games-emulation/bsnes-jg/bsnes-jg-1.1.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022 Gentoo Authors
+# Copyright 2022-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8

diff --git a/games-emulation/bsnes-jg/bsnes-jg-.ebuild 
b/games-emulation/bsnes-jg/bsnes-jg-.ebuild
index 24d855263f55..2745d2cfd5e9 100644
--- a/games-emulation/bsnes-jg/bsnes-jg-.ebuild
+++ b/games-emulation/bsnes-jg/bsnes-jg-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022 Gentoo Authors
+# Copyright 2022-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8



[gentoo-commits] repo/gentoo:master commit in: games-emulation/bsnes-jg/

2023-02-25 Thread Sam James
commit: f084399b8a20ec5871f6ef116f975cc434762c54
Author: orbea  riseup  net>
AuthorDate: Sat Feb 25 22:17:07 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Feb 25 22:23:24 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f084399b

games-emulation/bsnes-jg: Add 1.1.1 + Remove 1.1.0

Bug fix release for an assert with -D_GLIBCXX_ASSERTIONS

Bug: https://bugs.gentoo.org/896382
Signed-off-by: orbea  riseup.net>
Closes: https://github.com/gentoo/gentoo/pull/29791
Signed-off-by: Sam James  gentoo.org>

 games-emulation/bsnes-jg/Manifest   | 2 +-
 .../bsnes-jg/{bsnes-jg-1.1.0.ebuild => bsnes-jg-1.1.1.ebuild}   | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/games-emulation/bsnes-jg/Manifest 
b/games-emulation/bsnes-jg/Manifest
index 15755cbefba4..e31fa8485c2e 100644
--- a/games-emulation/bsnes-jg/Manifest
+++ b/games-emulation/bsnes-jg/Manifest
@@ -1 +1 @@
-DIST bsnes-1.1.0.tar.bz2 4181355 BLAKE2B 
c60181208455f14c722073f7aa43b6b988aa46d8614cc8eae6e6b47acf1c5b30a94aa04410f873531e73637d3f11e25297dccc80b5c15c9fa4d4cc207083cef9
 SHA512 
39ee7e04dbeb021ac041ca3d189b86cf76f1994561c4bd1fd77a532e87ef4c135b177700b62f6e4f07018953c34f8602b5c4a43cd22d51dcd047df71e77e0412
+DIST bsnes-1.1.1.tar.bz2 4182487 BLAKE2B 
dfcad14019ae8f6bee6a12f4e35b0cfc5338215d41028655c230faa7a481eb0ef09428192f244471887a3f7326d3fbf9ea713c642aab97989caa391ad41aa4ac
 SHA512 
e1c24d9154ef8285ab2c9d0b03860cb8e7396fffe1f575d25239816e6ec8183ab05ec2adc31c2c4e09c5a3ff8a439909860f704174c132f9ff343dbbf55ca034

diff --git a/games-emulation/bsnes-jg/bsnes-jg-1.1.0.ebuild 
b/games-emulation/bsnes-jg/bsnes-jg-1.1.1.ebuild
similarity index 100%
rename from games-emulation/bsnes-jg/bsnes-jg-1.1.0.ebuild
rename to games-emulation/bsnes-jg/bsnes-jg-1.1.1.ebuild



[gentoo-commits] repo/gentoo:master commit in: games-emulation/bsnes-jg/

2023-02-22 Thread Sam James
commit: 994d99d299d97cef530d444ab387bb765cd48d6d
Author: Sam James  gentoo  org>
AuthorDate: Wed Feb 22 09:26:03 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Feb 22 09:26:03 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=994d99d2

games-emulation/bsnes-jg: proxy orbea directly

I'll proxy directly.

Bug: https://bugs.gentoo.org/895856
Signed-off-by: Sam James  gentoo.org>

 games-emulation/bsnes-jg/metadata.xml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/games-emulation/bsnes-jg/metadata.xml 
b/games-emulation/bsnes-jg/metadata.xml
index 8d62f9db73ee..3fa9976f7933 100644
--- a/games-emulation/bsnes-jg/metadata.xml
+++ b/games-emulation/bsnes-jg/metadata.xml
@@ -5,9 +5,9 @@
or...@riseup.net
orbea

-   
-   proxy-ma...@gentoo.org
-   Proxy Maintainers
+   
+   s...@gentoo.org
+   Sam James


bsnes-jg is a cycle accurate emulator for the Super 
Famicom/Super



[gentoo-commits] repo/gentoo:master commit in: games-emulation/bsnes-jg/

2023-01-15 Thread Sam James
commit: 39fe796bbea11be1cbf11f9278c47456ec1de2b0
Author: orbea  riseup  net>
AuthorDate: Wed Dec 28 01:13:30 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jan 15 14:16:11 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39fe796b

games-emulation/bsnes-jg: New package, v1.1.0

Signed-off-by: Sam James  gentoo.org>

 games-emulation/bsnes-jg/Manifest  |  1 +
 games-emulation/bsnes-jg/bsnes-jg-1.1.0.ebuild | 46 ++
 games-emulation/bsnes-jg/bsnes-jg-.ebuild  | 46 ++
 games-emulation/bsnes-jg/metadata.xml  | 21 
 4 files changed, 114 insertions(+)

diff --git a/games-emulation/bsnes-jg/Manifest 
b/games-emulation/bsnes-jg/Manifest
new file mode 100644
index ..15755cbefba4
--- /dev/null
+++ b/games-emulation/bsnes-jg/Manifest
@@ -0,0 +1 @@
+DIST bsnes-1.1.0.tar.bz2 4181355 BLAKE2B 
c60181208455f14c722073f7aa43b6b988aa46d8614cc8eae6e6b47acf1c5b30a94aa04410f873531e73637d3f11e25297dccc80b5c15c9fa4d4cc207083cef9
 SHA512 
39ee7e04dbeb021ac041ca3d189b86cf76f1994561c4bd1fd77a532e87ef4c135b177700b62f6e4f07018953c34f8602b5c4a43cd22d51dcd047df71e77e0412

diff --git a/games-emulation/bsnes-jg/bsnes-jg-1.1.0.ebuild 
b/games-emulation/bsnes-jg/bsnes-jg-1.1.0.ebuild
new file mode 100644
index ..24d855263f55
--- /dev/null
+++ b/games-emulation/bsnes-jg/bsnes-jg-1.1.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 2022 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 Fork of bsnes"
+HOMEPAGE="https://gitlab.com/jgemu/bsnes";
+if [[ "${PV}" == * ]] ; 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"
+fi
+
+LICENSE="ISC GPL-3+ LGPL-2.1+ MIT ZLIB"
+SLOT="1"
+
+DEPEND="
+   media-libs/jg:1=
+   media-libs/libsamplerate
+"
+RDEPEND="
+   ${DEPEND}
+   games-emulation/jgrf
+"
+BDEPEND="
+   virtual/pkgconfig
+"
+
+src_compile() {
+   emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" 
PKG_CONFIG="$(tc-getPKG_CONFIG)"
+}
+
+src_install() {
+   emake install \
+   DESTDIR="${D}" \
+   PREFIX="${EPREFIX}"/usr \
+   DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \
+   LIBDIR="${EPREFIX}/usr/$(get_libdir)"
+}

diff --git a/games-emulation/bsnes-jg/bsnes-jg-.ebuild 
b/games-emulation/bsnes-jg/bsnes-jg-.ebuild
new file mode 100644
index ..24d855263f55
--- /dev/null
+++ b/games-emulation/bsnes-jg/bsnes-jg-.ebuild
@@ -0,0 +1,46 @@
+# Copyright 2022 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 Fork of bsnes"
+HOMEPAGE="https://gitlab.com/jgemu/bsnes";
+if [[ "${PV}" == * ]] ; 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"
+fi
+
+LICENSE="ISC GPL-3+ LGPL-2.1+ MIT ZLIB"
+SLOT="1"
+
+DEPEND="
+   media-libs/jg:1=
+   media-libs/libsamplerate
+"
+RDEPEND="
+   ${DEPEND}
+   games-emulation/jgrf
+"
+BDEPEND="
+   virtual/pkgconfig
+"
+
+src_compile() {
+   emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" 
PKG_CONFIG="$(tc-getPKG_CONFIG)"
+}
+
+src_install() {
+   emake install \
+   DESTDIR="${D}" \
+   PREFIX="${EPREFIX}"/usr \
+   DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \
+   LIBDIR="${EPREFIX}/usr/$(get_libdir)"
+}

diff --git a/games-emulation/bsnes-jg/metadata.xml 
b/games-emulation/bsnes-jg/metadata.xml
new file mode 100644
index ..8d62f9db73ee
--- /dev/null
+++ b/games-emulation/bsnes-jg/metadata.xml
@@ -0,0 +1,21 @@
+
+https://www.gentoo.org/dtd/metadata.dtd'>
+
+   
+   or...@riseup.net
+   orbea
+   
+   
+   proxy-ma...@gentoo.org
+   Proxy Maintainers
+   
+   
+   bsnes-jg is a cycle accurate emulator for the Super 
Famicom/Super
+   Nintendo Entertainment System, including support for the Super 
Game Boy,
+   BS-X Satellaview, and Sufami Turbo.
+   
+   
+   https://gitlab.com/jgemu/bsnes/-/issues
+   jgemu/bsnes
+   
+