games-emulation/cega-jg: New package, v0.5.2

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
orbea
2023-01-15 14:16:12 +00:00
committed by Sam James
parent 39fe796bbe
commit c821e460d8
4 changed files with 114 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
DIST cega-0.5.2.tar.bz2 221146 BLAKE2B eba8dcee12ebc2c4f290b7c4546e110bd4d154e3a2d9572fe8a0141c435e45fcd270085882754bf46e0a26388c8b92c5ac390c52b0be3a56a08122acd98d052b SHA512 e2177079a984e531480572e3552d3e52cc14ee2f55ba5d7836becda1c893c9721a637c3e89e992a0fe4039471b41c718f92c53b74f7165690cbc2e709623d7cb
@@ -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 SG-1000, SMS, and Game Gear Emulator"
HOMEPAGE="https://gitlab.com/jgemu/cega"
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"
fi
LICENSE="BSD MIT MPL-2.0 ZLIB"
SLOT="1"
DEPEND="
media-libs/jg:1=
media-libs/speexdsp
"
RDEPEND="
${DEPEND}
games-emulation/jgrf
"
BDEPEND="
virtual/pkgconfig
"
src_compile() {
emake CC="$(tc-getCC)" 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)"
}
@@ -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 SG-1000, SMS, and Game Gear Emulator"
HOMEPAGE="https://gitlab.com/jgemu/cega"
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"
fi
LICENSE="BSD MIT MPL-2.0 ZLIB"
SLOT="1"
DEPEND="
media-libs/jg:1=
media-libs/speexdsp
"
RDEPEND="
${DEPEND}
games-emulation/jgrf
"
BDEPEND="
virtual/pkgconfig
"
src_compile() {
emake CC="$(tc-getCC)" 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)"
}
+21
View File
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'>
<pkgmetadata>
<maintainer type="person" proxied="yes">
<email>orbea@riseup.net</email>
<name>orbea</name>
</maintainer>
<maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<longdescription>
Cega is a cycle accurate emulator for the Sega SG-1000,
Master System, and Game Gear written specifically for
The Jolly Good API.
</longdescription>
<upstream>
<bugs-to>https://gitlab.com/jgemu/cega/-/issues</bugs-to>
<remote-id type="gitlab">jgemu/cega</remote-id>
</upstream>
</pkgmetadata>