]> git.draconx.ca Git - gentoo-draconx.git/commitdiff
dev-util/fcode-utils: New package.
authorNick Bowler <nbowler@draconx.ca>
Sat, 23 Jul 2022 23:23:08 +0000 (19:23 -0400)
committerNick Bowler <nbowler@draconx.ca>
Sat, 23 Jul 2022 23:23:08 +0000 (19:23 -0400)
This includes the "toke" utility for creating FCode images.

dev-util/fcode-utils/Manifest [new file with mode: 0644]
dev-util/fcode-utils/fcode-utils-1.0.3.ebuild [new file with mode: 0644]

diff --git a/dev-util/fcode-utils/Manifest b/dev-util/fcode-utils/Manifest
new file mode 100644 (file)
index 0000000..2d25342
--- /dev/null
@@ -0,0 +1,2 @@
+DIST fcode-utils-1.0.3.tar.gz 4304237 BLAKE2B 9b6ebf8bb63e2def5022ca75aa163a9a57fa11a144d40563aa7b9c202feb906b145006ef645947a393d50afc6451d225c1dbd8594edeb267e6ea078cdf7d73a4 SHA512 7f64d3ac5c10184efc0993a748a5dcbf9aa0b71dee059c9b97b3656e61cdd7ed9395e830435eab5878ece80df001cf9420065b1611e8bb011274e26aad20f3f0
+EBUILD fcode-utils-1.0.3.ebuild 747 BLAKE2B cd4f724cea0af2ae483b9b84fc61edb1f31a862736d42a13fdb0995682c7141fc0f8b09714d279ca8ba60462ff85a982a1fc24fc83d68ad5b8e843f3af22fd73 SHA512 9076ba666f49539998862fcba30d250360779c69d83f2ef55b04019640a99baa827c693d647c28339228fa7f397cccafacc55f84f8d2c499d82f26ad33661d7a
diff --git a/dev-util/fcode-utils/fcode-utils-1.0.3.ebuild b/dev-util/fcode-utils/fcode-utils-1.0.3.ebuild
new file mode 100644 (file)
index 0000000..2f1a593
--- /dev/null
@@ -0,0 +1,27 @@
+# Copyright © 2022 Nick Bowler
+# License GPLv3+: GNU General Public License version 3 or any later version.
+# This is free software: you are free to change and redistribute it.
+# There is NO WARRANTY, to the extent permitted by law.
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Utilities to process FCode bytecode for OpenFirmware"
+HOMEPAGE="https://www.openfirmware.info/FCODE_suite"
+SRC_URI="https://github.com/openbios/fcode-utils/archive/refs/tags/v$PV.tar.gz -> $P.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+src_compile () {
+       emake CC="$(tc-getCC)" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" STRIP=:
+}
+
+src_install () {
+       dobin toke/toke detok/detok romheaders/romheaders
+
+       docinto html
+       dodoc documentation/*.html documentation/*.css
+}