mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-09 14:44:11 +02:00
Signed-off-by: orbea <orbea@riseup.net> Closes: https://github.com/gentoo/gentoo/pull/40638 Signed-off-by: Sam James <sam@gentoo.org>
46 lines
948 B
Bash
46 lines
948 B
Bash
# 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 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 ~arm ~arm64 ~ppc ~ppc64 ~x86"
|
|
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)"
|
|
}
|