diff --git a/sys-apps/diffutils/diffutils-3.0.bep b/sys-apps/diffutils/diffutils-3.0.bep new file mode 100644 index 000000000..0901491a3 --- /dev/null +++ b/sys-apps/diffutils/diffutils-3.0.bep @@ -0,0 +1,22 @@ +DESCRIPTION="Tools to make diffs and compare files." +HOMEPAGE="http://www.gnu.org/software/diffutils/" +SRC_URI="http://ftp.gnu.org/pub/gnu/diffutils/diffutils-3.0.tar.gz" +CHECKSUM_MD5="684aaba1baab743a2a90e52162ff07da" +REVISION="1" +STATUS_HAIKU="stable" +DEPEND="" +BUILD { + cd diffutils-3.0 + MANDIR=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man + ./configure --prefix=`finddir B_COMMON_DIRECTORY` \ + --mandir=${MANDIR} + make +} + +INSTALL { + cd diffutils-3.0 + make install +} + +LICENSE="GNU GPL v3" +COPYRIGHT="1992-2010 Free Software Foundation, Inc." diff --git a/sys-apps/diffutils/patches/diffutils-3.0.patch b/sys-apps/diffutils/patches/diffutils-3.0.patch new file mode 100644 index 000000000..edb62edf7 --- /dev/null +++ b/sys-apps/diffutils/patches/diffutils-3.0.patch @@ -0,0 +1,51 @@ +diff -urN diffutils-3.0/gnulib-tests/test-dup2.c diffutils-3.0-haiku/gnulib-tests/test-dup2.c +--- diffutils-3.0/gnulib-tests/test-dup2.c 2010-04-15 13:42:07.036700160 +0000 ++++ diffutils-3.0-haiku/gnulib-tests/test-dup2.c 2010-10-06 11:17:38.000000000 +0000 +@@ -176,6 +176,7 @@ + + /* On systems that distinguish between text and binary mode, dup2 + reuses the mode of the source. */ ++#if O_BINARY + setmode (fd, O_BINARY); + ASSERT (is_mode (fd, O_BINARY)); + ASSERT (dup2 (fd, fd + 1) == fd + 1); +@@ -190,6 +191,6 @@ + ASSERT (close (fd + 1) == 0); + ASSERT (close (fd) == 0); + ASSERT (unlink (file) == 0); +- ++#endif + return 0; + } +diff -urN diffutils-3.0/gnulib-tests/test-fcntl.c diffutils-3.0-haiku/gnulib-tests/test-fcntl.c +--- diffutils-3.0/gnulib-tests/test-fcntl.c 2010-04-15 13:42:08.027787264 +0000 ++++ diffutils-3.0-haiku/gnulib-tests/test-fcntl.c 2010-10-06 11:21:54.000000000 +0000 +@@ -298,6 +298,7 @@ + ASSERT (is_mode (fd + 2, O_BINARY)); + ASSERT (close (fd) == 0); + ++#if O_TEXT + setmode (fd + 2, O_TEXT); + ASSERT (fcntl (fd + 2, F_DUPFD, fd + 1) == fd + 1); + ASSERT (!is_open (fd)); +@@ -318,7 +319,7 @@ + ASSERT (is_mode (fd, O_TEXT)); + ASSERT (is_mode (fd + 2, O_TEXT)); + ASSERT (close (fd + 2) == 0); +- ++#endif + /* Test F_GETFD. */ + errno = 0; + ASSERT (fcntl (-1, F_GETFD) == -1); +diff -urN diffutils-3.0/gnulib-tests/test-signal.c diffutils-3.0-haiku/gnulib-tests/test-signal.c +--- diffutils-3.0/gnulib-tests/test-signal.c 2010-04-15 13:42:09.030932992 +0000 ++++ diffutils-3.0-haiku/gnulib-tests/test-signal.c 2010-10-06 11:28:31.000000000 +0000 +@@ -58,7 +58,7 @@ + #ifdef SIGALRM + case SIGALRM: + #endif +-#ifdef SIGBUS ++#if defined SIGBUS && !defined(__HAIKU__) + case SIGBUS: + #endif + #ifdef SIGCHLD diff --git a/sys-apps/findutils/findutils-4.4.2.bep b/sys-apps/findutils/findutils-4.4.2.bep new file mode 100644 index 000000000..331a41c19 --- /dev/null +++ b/sys-apps/findutils/findutils-4.4.2.bep @@ -0,0 +1,24 @@ +DESCRIPTION="GNU utilities for finding files" +HOMEPAGE="http://www.gnu.org/software/findutils/" +SRC_URI="http://mirrors.usc.edu/pub/gnu/findutils/findutils-4.4.2.tar.gz" +REVISION="1" +STATUS_HAIKU="stable" +DEPEND="" +CHECKSUM_MD5="351cc4adb07d54877fa15f75fb77d39f" +BUILD { + cd findutils-4.4.2 + ./import-gnulib.sh + libtoolize --force --copy --install + MANDIR=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man + ./configure --prefix=`finddir B_COMMON_DIRECTORY` \ + --mandir=${MANDIR} + make +} + +INSTALL { + cd findutils-4.4.2 + make install +} + +LICENSE="GNU GPL v3" +COPYRIGHT="1990-2010 Free Software Foundation, Inc."