commit: cef5a8d3da32d04e6e66452986316f0757527227 Author: orbea <orbea <AT> riseup <DOT> net> AuthorDate: Wed Dec 28 01:19:47 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Jan 15 14:16:14 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cef5a8d3
games-emulation/sameboy-jg: New package, 0.15.8 Signed-off-by: Sam James <sam <AT> gentoo.org> games-emulation/sameboy-jg/Manifest | 1 + games-emulation/sameboy-jg/metadata.xml | 21 ++++++++++ .../sameboy-jg/sameboy-jg-0.15.8.ebuild | 49 ++++++++++++++++++++++ games-emulation/sameboy-jg/sameboy-jg-9999.ebuild | 49 ++++++++++++++++++++++ 4 files changed, 120 insertions(+) diff --git a/games-emulation/sameboy-jg/Manifest b/games-emulation/sameboy-jg/Manifest new file mode 100644 index 000000000000..29205beac02c --- /dev/null +++ b/games-emulation/sameboy-jg/Manifest @@ -0,0 +1 @@ +DIST sameboy-0.15.8.tar.bz2 3002961 BLAKE2B 5eacbc82d8c93ee85b774c554b3d3750088e8a4219d5b04daa9e6db0c70923ef823befc12831382a27ee007f117fddcfe35ff3549d7684b8587db9ffc486ccd6 SHA512 9074dfcbf400fe51e605ef0200f6ea8483650d605ab19177089c0e60f9996c15f265c5dec5fd0e6651392c9a9515e8380499e00bac837bb645220cd6ffa9c870 diff --git a/games-emulation/sameboy-jg/metadata.xml b/games-emulation/sameboy-jg/metadata.xml new file mode 100644 index 000000000000..3f127f5cbd75 --- /dev/null +++ b/games-emulation/sameboy-jg/metadata.xml @@ -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>[email protected]</email> + <name>orbea</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>[email protected]</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription> + SameBoy is an extremely accurate, powerful and open source + Game Boy (DMG), Game Boy Color (CGB) and Super Game Boy (SGB) + emulator, written in portable C. + </longdescription> + <upstream> + <bugs-to>https://gitlab.com/jgemu/sameboy/-/issues</bugs-to> + <remote-id type="gitlab">jgemu/sameboy</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-emulation/sameboy-jg/sameboy-jg-0.15.8.ebuild b/games-emulation/sameboy-jg/sameboy-jg-0.15.8.ebuild new file mode 100644 index 000000000000..2a20f4b0419c --- /dev/null +++ b/games-emulation/sameboy-jg/sameboy-jg-0.15.8.ebuild @@ -0,0 +1,49 @@ +# 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 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" +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)" +} diff --git a/games-emulation/sameboy-jg/sameboy-jg-9999.ebuild b/games-emulation/sameboy-jg/sameboy-jg-9999.ebuild new file mode 100644 index 000000000000..2a20f4b0419c --- /dev/null +++ b/games-emulation/sameboy-jg/sameboy-jg-9999.ebuild @@ -0,0 +1,49 @@ +# 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 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" +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)" +}
