mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
jigdo: new recipe (#2007)
This commit is contained in:
73
app-misc/jigdo/jigdo-0.7.3.recipe
Normal file
73
app-misc/jigdo/jigdo-0.7.3.recipe
Normal file
@@ -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
|
||||
}
|
||||
58
app-misc/jigdo/patches/jigdo-0.7.3.patchset
Normal file
58
app-misc/jigdo/patches/jigdo-0.7.3.patchset
Normal file
@@ -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 <string>
|
||||
#include <stdio.h>
|
||||
+#include <cstdlib>
|
||||
#include <unistd-jigdo.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
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 <sys/types.h>
|
||||
#include <unistd-jigdo.h>
|
||||
|
||||
+#include <cstring>
|
||||
#include <string.hh>
|
||||
//______________________________________________________________________
|
||||
|
||||
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 <iostream>
|
||||
#include <fstream>
|
||||
+#include <cstring>
|
||||
|
||||
#include <configfile.hh>
|
||||
#include <string.hh>
|
||||
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 <cstdlib>
|
||||
#include <iosfwd>
|
||||
-#include <string>
|
||||
+#include <cstring>
|
||||
|
||||
#include <bstream.hh>
|
||||
#include <debug.hh>
|
||||
--
|
||||
2.15.0
|
||||
|
||||
Reference in New Issue
Block a user