summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <mmk@levelnine.at>2024-06-01 11:30:02 +0200
committerConrad Kostecki <conikost@gentoo.org>2024-06-23 21:47:42 +0200
commit5439d91af5a3f56757cda36ad629d47a668ccfda (patch)
tree4ea0b8cd9fe527936fca33e361fdff579bba71f6 /app-admin/genromfs
parentapp-admin/genromfs: fix SRC_URI (diff)
downloadgentoo-5439d91af5a3f56757cda36ad629d47a668ccfda.tar.gz
gentoo-5439d91af5a3f56757cda36ad629d47a668ccfda.tar.bz2
gentoo-5439d91af5a3f56757cda36ad629d47a668ccfda.zip
app-admin/genromfs: add 0.5.7
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-admin/genromfs')
-rw-r--r--app-admin/genromfs/Manifest1
-rw-r--r--app-admin/genromfs/files/genromfs-0.5.7-build.patch28
-rw-r--r--app-admin/genromfs/genromfs-0.5.7.ebuild24
3 files changed, 53 insertions, 0 deletions
diff --git a/app-admin/genromfs/Manifest b/app-admin/genromfs/Manifest
index 75beef42ec27..238354d2c851 100644
--- a/app-admin/genromfs/Manifest
+++ b/app-admin/genromfs/Manifest
@@ -1 +1,2 @@
DIST genromfs-0.5.2.gh.tar.gz 21122 BLAKE2B 64e1a650ef52b7931036bb6e1585a01ef0cb9c687c91a882c25e20f21a5d4ddb2178319890ee906b25a6c3f6f09174eaec89a73cacda8077f048a957a23d101c SHA512 e0b1313f66088f145ffd894e6fa4def8ca99ef7475931457b3fa1242aed7eff6d001bb15f9ce75a3da8122bd2f99d20859d7f88fbb303764f6c20e24ce5a0e71
+DIST genromfs-0.5.7.gh.tar.gz 27929 BLAKE2B df556a3f4247ad12b441b245046177e56aca1460e92614528ced0c8f7b4df45ed3023d325d5140cc5e13a6f3187d4ee9143c33a9d25830c27a8d6c6b98ba741f SHA512 a37bbea5f7952194a417359f0a5d13f86d8ed3f75459281e4bd06a96a05840e5580a6d706342ddbd6e064e885b7991e636c7d638bf95e372a51abfcec7eb3c58
diff --git a/app-admin/genromfs/files/genromfs-0.5.7-build.patch b/app-admin/genromfs/files/genromfs-0.5.7-build.patch
new file mode 100644
index 000000000000..f35b59e49cc6
--- /dev/null
+++ b/app-admin/genromfs/files/genromfs-0.5.7-build.patch
@@ -0,0 +1,28 @@
+--- a/Makefile
++++ b/Makefile
+@@ -5,9 +5,10 @@
+
+ PACKAGE = genromfs
+ VERSION = 0.5.7
+-CC = gcc
+-CFLAGS = -O2 -Wall -DVERSION=\"$(VERSION)\"#-g#
+-LDFLAGS = -s#-g
++CC ?= gcc
++CFLAGS ?= -O2
++CFLAGS += -Wall -DVERSION=\"$(VERSION)\"#-g#
++LDFLAGS ?= -s#-g
+
+ DISTDIR = $(PACKAGE)-$(VERSION)
+
+@@ -17,9 +18,9 @@
+ checkdist \
+ .gitignore selftest
+
+-prefix = /usr
++prefix = $(DESTDIR)/usr
+ bindir = $(prefix)/bin
+-mandir = $(prefix)/man
++mandir = $(prefix)/share/man
+
+ genromfs: genromfs.o
+ $(CC) $(LDFLAGS) genromfs.o -o genromfs
diff --git a/app-admin/genromfs/genromfs-0.5.7.ebuild b/app-admin/genromfs/genromfs-0.5.7.ebuild
new file mode 100644
index 000000000000..6415bb3bb4c5
--- /dev/null
+++ b/app-admin/genromfs/genromfs-0.5.7.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Create space-efficient, small, read-only romfs filesystems"
+HOMEPAGE="https://romfs.sourceforge.net/"
+SRC_URI="https://github.com/chexum/${PN}/archive/refs/tags/${PV}.tar.gz
+ -> ${P}.gh.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~loong ~ppc ~ppc64 ~s390 ~x86"
+
+PATCHES=( "${FILESDIR}"/${P}-build.patch )
+
+DOCS=( ChangeLog NEWS genromfs.lsm genrommkdev readme-kernel-patch romfs.txt )
+
+src_compile() {
+ tc-export CC
+ default
+}