games-emulation/jollycv-jg: add 2.0.0

Signed-off-by: orbea <orbea@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@gentoo.org>
This commit is contained in:
orbea
2025-10-14 09:54:22 -07:00
committed by Sam James
parent f825c722db
commit d68ca66473
3 changed files with 83 additions and 3 deletions

View File

@@ -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

View File

@@ -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
}

View File

@@ -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>