summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororbea <orbea@riseup.net>2024-06-29 07:06:17 -0700
committerConrad Kostecki <conikost@gentoo.org>2024-06-30 14:40:41 +0200
commit2bec5f9b79336e5359a1e327cce308774f429bee (patch)
tree709bf33aa1070344aa89812a52bbecb2af536543 /dev-util
parentgames-arcade/njam: drop old (diff)
downloadgentoo-2bec5f9b79336e5359a1e327cce308774f429bee.tar.gz
gentoo-2bec5f9b79336e5359a1e327cce308774f429bee.tar.bz2
gentoo-2bec5f9b79336e5359a1e327cce308774f429bee.zip
dev-util/rgbds: add 0.8.0
Signed-off-by: orbea <orbea@riseup.net> Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/rgbds/Manifest1
-rw-r--r--dev-util/rgbds/rgbds-0.8.0.ebuild50
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-util/rgbds/Manifest b/dev-util/rgbds/Manifest
index 69dd78cd02f6..7c4baea7b1c2 100644
--- a/dev-util/rgbds/Manifest
+++ b/dev-util/rgbds/Manifest
@@ -1,2 +1,3 @@
DIST rgbds-0.6.1.tar.gz 8041890 BLAKE2B cd5483e6fa5e2ca3bc9a6e3de44fdf7dc92289d558ac72d8922c0cf21b9dc576b878bfd7610cb41f791ad16cc415e446c925ee0dbc77ec4370d6ef4549935681 SHA512 b4a111e3d98a190d3c9b500dc59585fe68a8e6febc79b6716b406b96714e401bac427336388409ae456ee0f1e5a2c285bfe7b4bfa10e0d148ffc161adefe435b
DIST rgbds-0.7.0.tar.gz 8053662 BLAKE2B 07f6901eeaade45125acce5c33430bdefc5a4228d2fe952d55ca254c0fc17dc5248262ecc7df5e9dd0a73aab29a39a2b38988a7ae93ad739609397a286e96aa9 SHA512 82d799f9639cb3a4c110f84f5184f46a371e66428e7d3b4f3f0229473d472dea1b381268df92736f2d1d4f5e8e2c83b61888c3ab4055768f9472b834f66f2f68
+DIST rgbds-0.8.0.tar.gz 8052350 BLAKE2B 46edb43a530169d03e026070b61272e95357213747296658e4ceb821f8e420979ceffcbc07b41b6778187a1f6a614d3587416d5ad3596f19bacc6c9067051837 SHA512 1c36e0fc7ecfd930c9cbc9f9772d2c7268148e2d456c56c92265ba45b9108c531fc412669d980f6c621b4d89d367458f01a2e0cf20443f13b83f841585f3edac
diff --git a/dev-util/rgbds/rgbds-0.8.0.ebuild b/dev-util/rgbds/rgbds-0.8.0.ebuild
new file mode 100644
index 000000000000..7f24c27d44dd
--- /dev/null
+++ b/dev-util/rgbds/rgbds-0.8.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="Rednex Game Boy Development System"
+HOMEPAGE="https://rgbds.gbdev.io/"
+if [[ "${PV}" == *9999 ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/gbdev/${PN}.git"
+else
+ SRC_URI="https://github.com/gbdev/${PN}/archive/v${PV}/${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+
+DEPEND="media-libs/libpng"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ sys-devel/bison
+ virtual/pkgconfig
+"
+
+src_compile() {
+ append-flags -DNDEBUG
+
+ emake Q= \
+ CC="$(tc-getCC)" \
+ CXX="$(tc-getCXX)" \
+ PKG_CONFIG="$(tc-getPKG_CONFIG)"
+}
+
+src_test() {
+ local dir
+ for dir in asm link fix gfx; do
+ pushd "test/${dir}" >/dev/null || die
+ einfo "Running ${dir} tests."
+ ./test.sh || die
+ popd >/dev/null || die
+ done
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr Q= STRIP= install
+ dodoc README.md
+}