From 807b5d0a100ef161ddc3dc64abf4a385a5288554 Mon Sep 17 00:00:00 2001 From: nys Date: Sun, 31 Dec 2017 20:50:12 +0800 Subject: [PATCH] jigdo: new recipe (#2007) --- app-misc/jigdo/jigdo-0.7.3.recipe | 73 +++++++++++++++++++++ app-misc/jigdo/patches/jigdo-0.7.3.patchset | 58 ++++++++++++++++ 2 files changed, 131 insertions(+) create mode 100644 app-misc/jigdo/jigdo-0.7.3.recipe create mode 100644 app-misc/jigdo/patches/jigdo-0.7.3.patchset diff --git a/app-misc/jigdo/jigdo-0.7.3.recipe b/app-misc/jigdo/jigdo-0.7.3.recipe new file mode 100644 index 000000000..9df63e693 --- /dev/null +++ b/app-misc/jigdo/jigdo-0.7.3.recipe @@ -0,0 +1,73 @@ +SUMMARY="A tool to ease the distribution of very large files" +DESCRIPTION="Jigsaw Download, or short jigdo, is a tool designed to ease the \ +distribution of very large files over the internet, for example CD or DVD \ +images. Its aim is to make downloading the images as easy for users as a click \ +on a direct download link in a browser, while avoiding all the problems that \ +server administrators have with hosting such large files." +HOMEPAGE="http://atterer.org/jigdo/" +COPYRIGHT="2001-2006 Richard Atterer" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="http://atterer.org/sites/atterer/files/2009-08/jigdo/jigdo-$portVersion.tar.bz2" +CHECKSUM_SHA256="875c069abad67ce67d032a9479228acdb37c8162236c0e768369505f264827f0" +PATCHES="jigdo-$portVersion.patchset" + +ARCHITECTURES="!x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +commandBinDir=$binDir +commandSuffix=$secondaryArchSuffix +if [ "$targetArchitecture" = x86_gcc2 ] +then + commandBinDir=$prefix/bin + commandSuffix= +fi + +PROVIDES=" + jigdo$secondaryArchSuffix = $portVersion + cmd:jigdo_file$commandSuffix = $portVersion + cmd:jigdo_lite$commandSuffix = $portVersion + cmd:jigdo_mirror$commandSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + cmd:wget + lib:libbz2$secondaryArchSuffix + lib:libdb$secondaryArchSuffix + lib:libintl$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libbz2$secondaryArchSuffix + devel:libdb$secondaryArchSuffix + devel:libintl$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:awk + cmd:gcc$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +defineDebugInfoPackage jigdo$secondaryArchSuffix \ + $commandBinDir/jigdo-file + +BUILD() +{ + runConfigure --omit-dirs "binDir docDir dataRootDir" ./configure \ + --bindir $commandBinDir --without-gtk + make $jobArgs +} + +INSTALL() +{ + make install +} + +TEST() +{ + make check +} diff --git a/app-misc/jigdo/patches/jigdo-0.7.3.patchset b/app-misc/jigdo/patches/jigdo-0.7.3.patchset new file mode 100644 index 000000000..e80a47e17 --- /dev/null +++ b/app-misc/jigdo/patches/jigdo-0.7.3.patchset @@ -0,0 +1,58 @@ +From 3226f395702e65af17db4c06348e68d088515ce7 Mon Sep 17 00:00:00 2001 +From: nys <33534144+nysnatuss@users.noreply.github.com> +Date: Sun, 31 Dec 2017 00:25:20 +0000 +Subject: patch jigdo + + +diff --git a/src/compat.hh b/src/compat.hh +index 3a7ac9a..17c0887 100644 +--- a/src/compat.hh ++++ b/src/compat.hh +@@ -20,6 +20,7 @@ + + #include + #include ++#include + #include + #include + #include +diff --git a/src/recursedir.cc b/src/recursedir.cc +index 794ece0..7134510 100644 +--- a/src/recursedir.cc ++++ b/src/recursedir.cc +@@ -37,6 +37,7 @@ + #include + #include + ++#include + #include + //______________________________________________________________________ + +diff --git a/src/util/configfile.cc b/src/util/configfile.cc +index 3a19cb2..568d70b 100644 +--- a/src/util/configfile.cc ++++ b/src/util/configfile.cc +@@ -18,6 +18,7 @@ + + #include + #include ++#include + + #include + #include +diff --git a/src/util/md5sum.hh b/src/util/md5sum.hh +index 793a5e2..fbfe226 100644 +--- a/src/util/md5sum.hh ++++ b/src/util/md5sum.hh +@@ -30,7 +30,7 @@ + + #include + #include +-#include ++#include + + #include + #include +-- +2.15.0 +