From d6c32bee87df36575b75c76e6f4337757b2feb8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Tue, 28 Oct 2014 01:22:38 +0100 Subject: [PATCH] Add a recipe for GNU ddrescue --- sys-fs/ddrescue/ddrescue-1.19.recipe | 71 ++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 sys-fs/ddrescue/ddrescue-1.19.recipe diff --git a/sys-fs/ddrescue/ddrescue-1.19.recipe b/sys-fs/ddrescue/ddrescue-1.19.recipe new file mode 100644 index 000000000..a0b0f3b3e --- /dev/null +++ b/sys-fs/ddrescue/ddrescue-1.19.recipe @@ -0,0 +1,71 @@ +SUMMARY="Copy data from one file or block device to another with read-error recovery" +DESCRIPTION="GNU ddrescue is a data recovery tool. \ +It copies data from one file or block device \ +(hard disc, cdrom, etc) to another, \ +trying to rescue the good parts first in case of read errors. +" +HOMEPAGE="http://www.gnu.org/software/ddrescue/" +SRC_URI="http://ftpmirror.gnu.org/ddrescue/ddrescue-1.19.tar.lz" +CHECKSUM_SHA256="ed8d0c9d9aac80a9110e9cb0d0a91a7390d3bf9f816b67a62ca4eb140f4747b8" +REVISION="1" +COPYRIGHT="2004-2014 Antonio Diaz Diaz + " +LICENSE="GNU GPL v2" + +ARCHITECTURES="x86 ?x86_64" +if [ $effectiveTargetArchitecture != x86_gcc2 ]; then + # x86_gcc2 is fine as primary target architecture as long as we're building + # for a different secondary architecture. + ARCHITECTURES="$ARCHITECTURES x86_gcc2" +else + ARCHITECTURES="$ARCHITECTURES !x86_gcc2" +fi +SECONDARY_ARCHITECTURES="x86" +# On x86_gcc2 we don't want to install the commands in bin//, but in bin/. +commandSuffix=$secondaryArchSuffix +commandBinDir=$binDir +if [ "$targetArchitecture" = x86_gcc2 ]; then + commandSuffix= + commandBinDir=$prefix/bin +fi + +PROVIDES=" + ddrescue$secondaryArchSuffix = $portVersion + cmd:ddrescue$commandSuffix = $portVersion + cmd:ddrescuelog$commandSuffix = $portVersion + " + +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + lib:libgcc_s$secondaryArchSuffix + lib:libstdc++$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + " + +BUILD_PREREQUIRES=" + cmd:make + cmd:gcc$secondaryArchSuffix + " + +BUILD() +{ + ./configure --prefix=$prefix \ + --bindir=$commandBinDir \ + --datarootdir=$dataRootDir \ + --infodir=$infoDir \ + --mandir=$manDir + make $jobArgs +} + +INSTALL() +{ + make install +} + +TEST() +{ + make check +}