diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-01-21 08:09:25 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-01-21 08:09:25 +0000 |
commit | 5adb1b3ff590f0911922679849a7fdacc8b4f217 (patch) | |
tree | 8a471fe02dd3498487715d39f928b42017f24c99 /games-emulation/sameboy-jg/sameboy-jg-0.16.2.ebuild | |
parent | afcb9236a72cf602364c28b9bde6648e4a7f1ca5 (diff) |
gentoo auto-resync : 21:01:2024 - 08:09:25
Diffstat (limited to 'games-emulation/sameboy-jg/sameboy-jg-0.16.2.ebuild')
-rw-r--r-- | games-emulation/sameboy-jg/sameboy-jg-0.16.2.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/games-emulation/sameboy-jg/sameboy-jg-0.16.2.ebuild b/games-emulation/sameboy-jg/sameboy-jg-0.16.2.ebuild new file mode 100644 index 000000000000..c41503e9640a --- /dev/null +++ b/games-emulation/sameboy-jg/sameboy-jg-0.16.2.ebuild @@ -0,0 +1,49 @@ +# Copyright 2022-2024 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 Port of SameBoy" +HOMEPAGE="https://gitlab.com/jgemu/sameboy" +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="MIT" +SLOT="1" + +DEPEND=" + media-libs/jg:1= +" +RDEPEND=" + ${DEPEND} + games-emulation/jgrf +" +BDEPEND=" + >=dev-util/rgbds-0.6.0 + virtual/pkgconfig +" + +src_compile() { + emake -C jollygood \ + CC="$(tc-getCC)" \ + CC_FOR_BUILD="$(tc-getBUILD_CC)" \ + PKG_CONFIG="$(tc-getPKG_CONFIG)" +} + +src_install() { + emake -C jollygood install \ + DESTDIR="${D}" \ + PREFIX="${EPREFIX}"/usr \ + DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" +} |