diff --git a/sys-devel/patch/patch-2.7.5.recipe b/sys-devel/patch/patch-2.7.5.recipe new file mode 100644 index 000000000..a8738d5ae --- /dev/null +++ b/sys-devel/patch/patch-2.7.5.recipe @@ -0,0 +1,53 @@ +SUMMARY="Utility to apply diffs to files" +DESCRIPTION="Patch takes a patch file containing a difference listing produced \ +by the diff program and applies those differences to one or more original \ +files, producing patched versions." +HOMEPAGE="https://savannah.gnu.org/projects/patch/" +COPYRIGHT="2012-2015 Free Software Foundation, Inc." +LICENSE="GNU GPL v3" +REVISION="3" +SOURCE_URI="https://ftpmirror.gnu.org/patch/patch-$portVersion.tar.gz + https://ftp.gnu.org/gnu/patch/patch-$portVersion.tar.gz" +CHECKSUM_SHA256="7436f5a19f93c3ca83153ce9c5cbe4847e97c5d956e57a220121e741f6e7968f" +PATCHES="patch-$portVersion.patchset" + +ARCHITECTURES="x86_gcc2 x86 x86_64 arm" + +PROVIDES=" + patch = $portVersion + cmd:patch = $portVersion + " +REQUIRES=" + haiku + " + +BUILD_REQUIRES=" + haiku_devel + " +BUILD_PREREQUIRES=" + cmd:awk + cmd:gcc + cmd:make + " + +TEST_REQUIRES=" + cmd:diff + cmd:git + " + +BUILD() +{ + runConfigure ./configure + make +} + +INSTALL() +{ + make install + rm "$libDir"/charset.alias +} + +TEST() +{ + make check +} diff --git a/sys-devel/patch/patches/patch-2.7.5.patchset b/sys-devel/patch/patches/patch-2.7.5.patchset new file mode 100644 index 000000000..9b5774f2a --- /dev/null +++ b/sys-devel/patch/patches/patch-2.7.5.patchset @@ -0,0 +1,23 @@ +From d3c585d16030c1bd44183499ffa4660ae7e69ec1 Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Mon, 16 Feb 2015 17:22:43 +0000 +Subject: fstatat is in sys/stat.h + + +diff --git a/lib/symlinkat.c b/lib/symlinkat.c +index ce10d94..814b19a 100644 +--- a/lib/symlinkat.c ++++ b/lib/symlinkat.c +@@ -18,6 +18,9 @@ + + #include + ++#ifdef __HAIKU__ ++#include ++#endif + #include + #include + +-- +1.8.3.4 +