mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
Update done using: ``` git grep -l sys-libs/zlib sys-* | xargs sed -i -e s@sys-libs/zlib@virtual/zlib@g git grep -l virtual/zlib-ng sys-* | xargs sed -i -e s@virtual/zlib-ng@sys-libs/zlib-ng@g git diff --name-only | xargs copybump git diff --name-only | xargs grep -l PYTHON_COMPAT | xargs gpy-impl -@dead pkgcheck scan --commits -c SourcingCheck,VisibilityCheck --exit error ``` Plus reverts in sys-libs/minizip-ng, sys-libs/zlib-ng and profiles. Signed-off-by: Michał Górny <mgorny@gentoo.org>
70 lines
1.3 KiB
Bash
70 lines
1.3 KiB
Bash
# Copyright 2022-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit autotools toolchain-funcs
|
|
|
|
MY_PN=${PN%-*}
|
|
MY_P=${MY_PN}-${PV}
|
|
DESCRIPTION="Jolly Good Port of Mednafen"
|
|
HOMEPAGE="https://gitlab.com/jgemu/mednafen"
|
|
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 GPL-2 GPL-2+ LGPL-2.1+ ZLIB"
|
|
SLOT="1"
|
|
IUSE="cpu_flags_x86_avx"
|
|
|
|
DEPEND="
|
|
app-arch/zstd
|
|
dev-libs/lzo:2
|
|
>=dev-libs/trio-1.17
|
|
media-libs/flac
|
|
media-libs/jg:1=
|
|
virtual/zlib:=[minizip]
|
|
virtual/libiconv
|
|
"
|
|
RDEPEND="
|
|
${DEPEND}
|
|
games-emulation/jgrf
|
|
"
|
|
BDEPEND="
|
|
virtual/pkgconfig
|
|
"
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
cd jollygood/conf || die
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
cd jollygood/conf || die
|
|
econf $(use_enable cpu_flags_x86_avx avx)
|
|
}
|
|
|
|
src_compile() {
|
|
emake -C jollygood \
|
|
CC="$(tc-getCC)" \
|
|
CXX="$(tc-getCXX)" \
|
|
PKG_CONFIG="$(tc-getPKG_CONFIG)" \
|
|
USE_EXTERNAL_TRIO=1
|
|
}
|
|
|
|
src_install() {
|
|
emake -C jollygood install \
|
|
DESTDIR="${D}" \
|
|
PREFIX="${EPREFIX}"/usr \
|
|
DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \
|
|
LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
|
|
USE_EXTERNAL_TRIO=1
|
|
}
|