summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-fs/reiser4progs')
-rw-r--r--sys-fs/reiser4progs/Manifest1
-rw-r--r--sys-fs/reiser4progs/reiser4progs-2.0.0.ebuild54
2 files changed, 55 insertions, 0 deletions
diff --git a/sys-fs/reiser4progs/Manifest b/sys-fs/reiser4progs/Manifest
index 577df11eb9f1..520cc4f69263 100644
--- a/sys-fs/reiser4progs/Manifest
+++ b/sys-fs/reiser4progs/Manifest
@@ -1,3 +1,4 @@
DIST reiser4progs-1.1.0.tar.gz 929047 BLAKE2B 82193eb4b465db365062785abfda8df1c2c42252adf4518f85abd785954b3305f2eed42ebf6e1c3c032f9c23e34744f4c9f05d25e259f8c0011f83283c51b963 SHA512 649645d702298ee7f3e5b8d2c39b2781fc1aae55cd03a4b774a2e66feef51e67f0a4367350db4defd62eaa2fc6710cb48a58d65991a63942d34e43783d29f94d
DIST reiser4progs-1.2.0.tar.gz 962611 BLAKE2B 0ee17f51ea7ae21d82b682c5594c8022be41af602390ccdb6ebf88d9e4c1ce12ef3ea190bc4f0b109cbc3657d1c404bbbaa30cbd7c0febf619f99d528de97ea3 SHA512 c517c3ea2121689ef94241a63daf7a0d85322b8cfa2343b08d0aef7640642499f261c806c83a2d46cfcdf28feba3518ff48a76b898b89c811f53493a918db843
DIST reiser4progs-1.2.1.tar.gz 980203 BLAKE2B 8c9cb77458c083c50f34c17bddf4747b755b52b911a63835152ad584494c2738a5317c28e5b3f1e6bfdc49416f3715ca4fbbd9c8a428b5b484b54f8f4a861a58 SHA512 2caac5a98d672d68910c6df3e694a42365fa6273ae367c26126778c1fbe956aa502dac236d36c3302a5bf109468ad3447e645a6eab89c83f122dd1afe2aeda21
+DIST reiser4progs-2.0.0.tar.gz 1019362 BLAKE2B 94d94697e427932b82634a756e7797ba7b061592c4ce946660f3c7750eb48ece7a5c0a265aa392a463c598212a87ec9fe769af88f680fa24adff36bd6db51128 SHA512 1993a38b2c4f339acb5d305b3b4c3360e57bf3df4684543f708bfd1062ecfb2435dd16e22f9555ab1317d77e95750cf9c2b2f81a91a109ad65aa30a5e7d815bd
diff --git a/sys-fs/reiser4progs/reiser4progs-2.0.0.ebuild b/sys-fs/reiser4progs/reiser4progs-2.0.0.ebuild
new file mode 100644
index 000000000000..fa83088da8fb
--- /dev/null
+++ b/sys-fs/reiser4progs/reiser4progs-2.0.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit multilib toolchain-funcs usr-ldscript
+
+DESCRIPTION="reiser4progs: mkfs, fsck, etc..."
+HOMEPAGE="https://sourceforge.net/projects/reiser4/"
+SRC_URI="mirror://sourceforge/reiser4/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 -sparc ~x86"
+IUSE="debug readline static static-libs"
+
+LIB_DEPEND=">=sys-libs/libaal-1.0.7:=[static-libs(+)]
+ readline? ( sys-libs/readline:0=[static-libs(+)] )"
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
+ static-libs? ( >=sys-libs/libaal-1.0.7:=[static-libs(+)] )"
+DEPEND="${RDEPEND}
+ static? ( ${LIB_DEPEND} )"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.0.7-readline-6.3.patch )
+
+src_prepare() {
+ printf '#!/bin/sh\ntrue\n' > run-ldconfig
+ # Delete hardcoded link/compile flags.
+ sed -i -r \
+ -e '/CFLAGS=/s: -static":":' \
+ -e '/CFLAGS/s: (-O[123s]|-g)\>::g' \
+ configure || die
+
+ default
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable static full-static)
+ $(use_enable static-libs static)
+ $(use_enable debug)
+ $(use_with readline)
+ --disable-Werror
+ --enable-libminimal
+ --sbindir=/sbin
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+ gen_usr_ldscript -a reiser4{,-minimal} repair
+ find "${ED}" -type f -name "*.la" -delete || die
+}