summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2023-01-24 09:38:25 +0000
committerMarek Szuba <marecki@gentoo.org>2023-01-24 11:00:39 +0000
commit6875c3c69b65df4698b676f8c7c1334394647f54 (patch)
tree2cc4ee41f0d658c8a352272ab4d18de90d87357d /sys-fs
parentx11-plugins/vicious: add 2.6.0 (diff)
downloadgentoo-6875c3c69b65df4698b676f8c7c1334394647f54.tar.gz
gentoo-6875c3c69b65df4698b676f8c7c1334394647f54.tar.bz2
gentoo-6875c3c69b65df4698b676f8c7c1334394647f54.zip
sys-fs/ddrescue: add 1.27
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/ddrescue/Manifest1
-rw-r--r--sys-fs/ddrescue/ddrescue-1.27.ebuild39
2 files changed, 40 insertions, 0 deletions
diff --git a/sys-fs/ddrescue/Manifest b/sys-fs/ddrescue/Manifest
index ea44f87243f9..bfa2a78af557 100644
--- a/sys-fs/ddrescue/Manifest
+++ b/sys-fs/ddrescue/Manifest
@@ -1 +1,2 @@
DIST ddrescue-1.26.tar.lz 91930 BLAKE2B c545499e380587729eb3fcc90a7baf66288348dc88027dfc14401ec72254cc786d8ab7be076a346964327668ff719048dada916c9f1514a765a255f02c5666c7 SHA512 bbe414563d459a1ad1c4e55848214d195e01f8bc455104eddbeff7046623f5bc21d961457d27ace2605d13dff68c7948182706b8afe6755e5c363e8cad86a1cc
+DIST ddrescue-1.27.tar.lz 93496 BLAKE2B a8957819dec2255e446504c822331ae13a86193f4655cbe6d559a498db9daf8c0f8066355e395cfd44f08b2f15d831820003bdfde6fc59c8434a695f95bdbe21 SHA512 b9a8b462536c5ec29db69e3a5f70b0bce160d5c58373cb519f6d54aba2fc0c4907e74fbcd11d49291306dc29c76f1992575aef7cfff41f34748bbd96e33b745a
diff --git a/sys-fs/ddrescue/ddrescue-1.27.ebuild b/sys-fs/ddrescue/ddrescue-1.27.ebuild
new file mode 100644
index 000000000000..0790a952430c
--- /dev/null
+++ b/sys-fs/ddrescue/ddrescue-1.27.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs flag-o-matic unpacker
+
+DESCRIPTION="Copy data from one file or block device to another with read-error recovery"
+HOMEPAGE="https://www.gnu.org/software/ddrescue/ddrescue.html"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.lz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux"
+IUSE="static"
+
+DEPEND="$(unpacker_src_uri_depends)"
+RDEPEND=""
+
+src_configure() {
+ use static && append-ldflags -static
+
+ # not a normal configure script
+ econf \
+ --prefix="${EPREFIX}"/usr \
+ CXX="$(tc-getCXX)" \
+ CPPFLAGS="${CPPFLAGS}" \
+ CXXFLAGS="${CXXFLAGS}" \
+ LDFLAGS="${LDFLAGS}"
+}
+
+src_test() {
+ ./testsuite/check.sh "${S}"/testsuite || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install install-man
+ einstalldocs
+}