commit:     d68ca66473f34a01256439c3387ad125dd96fa2b
Author:     orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Tue Oct 14 16:54:22 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct 19 16:38:44 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d68ca664

games-emulation/jollycv-jg: add 2.0.0

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

 games-emulation/jollycv-jg/Manifest                |  1 +
 games-emulation/jollycv-jg/jollycv-jg-2.0.0.ebuild | 78 ++++++++++++++++++++++
 games-emulation/jollycv-jg/metadata.xml            |  7 +-
 3 files changed, 83 insertions(+), 3 deletions(-)

diff --git a/games-emulation/jollycv-jg/Manifest 
b/games-emulation/jollycv-jg/Manifest
index 697521cb7db4..231049b74a0d 100644
--- a/games-emulation/jollycv-jg/Manifest
+++ b/games-emulation/jollycv-jg/Manifest
@@ -1 +1,2 @@
 DIST jollycv-1.1.0.tar.bz2 189952 BLAKE2B 
a6f24b0784ae1116e340dbf1c366efd5b2d71453e3753202e380c8b8f38f1c373b47c62a681665333b45dd2380ab424cc4ef327ca4010035a12772808f2fb7a1
 SHA512 
3b9b693a5f4b2e6793b8894edcbbf946f67cc30bb6fe125fdd88b8ec10d06610d321ef413c2f1e31c0818f12ef602e0d95f8e034db3cc306736af88731798793
+DIST jollycv-2.0.0.tar.bz2 240838 BLAKE2B 
6abf2410626f73c3a3f8eb350246d02bd86b61aaa8dd2a1a87003b48e7c67858ce07a6339e34052de1896f69509a9865145d30305352191d76523af8af5fe358
 SHA512 
1157014ad1156f29242dfd4796635771753316a23ddec340fecc809533f3b0212216bb706ba6ddd5b1398740215cdcc7d4c5f377c34ed75445f0b617f0485b40

diff --git a/games-emulation/jollycv-jg/jollycv-jg-2.0.0.ebuild 
b/games-emulation/jollycv-jg/jollycv-jg-2.0.0.ebuild
new file mode 100644
index 000000000000..b9097c666980
--- /dev/null
+++ b/games-emulation/jollycv-jg/jollycv-jg-2.0.0.ebuild
@@ -0,0 +1,78 @@
+# 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 ColecoVision, CreatiVision and My Vision Emulator"
+HOMEPAGE="https://gitlab.com/jgemu/jollycv";
+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 MIT
+       examples? ( 0BSD )
+"
+SLOT="1"
+IUSE="examples +jgmodule shared"
+REQUIRED_USE="
+       || ( examples jgmodule shared )
+       doc? ( shared )
+"
+
+DEPEND="
+       media-libs/speexdsp
+       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)"
+               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
+}

diff --git a/games-emulation/jollycv-jg/metadata.xml 
b/games-emulation/jollycv-jg/metadata.xml
index ba501a852f42..2ab30a89189f 100644
--- a/games-emulation/jollycv-jg/metadata.xml
+++ b/games-emulation/jollycv-jg/metadata.xml
@@ -14,9 +14,10 @@
                <flag name="shared">Build shared library</flag>
        </use>
        <longdescription>
-               JollyCV is a highly accurate emulator for the ColecoVision,
-               including support for the Super Game Module. It was written in
-               standards compliant ISO C11 specifically for The Jolly Good API.
+               JollyCV is a highly accurate emulator for the ColecoVision
+               (including Super Game Module), CreatiVision and My Vision.
+               It was written in standards compliant ISO C11 specifically
+               for The Jolly Good API.
        </longdescription>
        <upstream>
                <bugs-to>https://gitlab.com/jgemu/jollycv/-/issues</bugs-to>

Reply via email to