From b8b9ba9bf60861bffef744abad03c3443849496e Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Thu, 29 Apr 2010 23:55:11 +0000 Subject: [PATCH] Add diffstat and quilt contributed by mjw. Only basic compilation and packaging has been tested. --- dev-util/diffstat/diffstat-1.51.bep | 18 +++++ .../diffstat.OptionalPackageDescription | 5 ++ dev-util/diffstat/licenses/Diffstat | 20 +++++ dev-util/quilt/patches/quilt-0.48.patch | 81 +++++++++++++++++++ dev-util/quilt/quilt-0.48.bep | 19 +++++ .../quilt/quilt.OptionalPackageDescription | 5 ++ 6 files changed, 148 insertions(+) create mode 100644 dev-util/diffstat/diffstat-1.51.bep create mode 100644 dev-util/diffstat/diffstat.OptionalPackageDescription create mode 100644 dev-util/diffstat/licenses/Diffstat create mode 100644 dev-util/quilt/patches/quilt-0.48.patch create mode 100644 dev-util/quilt/quilt-0.48.bep create mode 100644 dev-util/quilt/quilt.OptionalPackageDescription diff --git a/dev-util/diffstat/diffstat-1.51.bep b/dev-util/diffstat/diffstat-1.51.bep new file mode 100644 index 000000000..13550bb17 --- /dev/null +++ b/dev-util/diffstat/diffstat-1.51.bep @@ -0,0 +1,18 @@ +DESCRIPTION="Display a histogram of diff changes" +HOMEPAGE="http://invisible-island.net/diffstat/diffstat.html" +SRC_URI="ftp://invisible-island.net/diffstat/diffstat-1.51.tgz" +CHECKSUM_MD5="a7d3fd1ba2a9a6c9e2b32e867b5e8792" +REVISION="1" +STATUS_HAIKU="stable" +DEPEND="" +BUILD { + cd diffstat-1.51 + ./configure --prefix=/boot/common + make +} + +INSTALL { + cd diffstat-1.51 + make install DESTDIR="${DESTDIR}" +} + diff --git a/dev-util/diffstat/diffstat.OptionalPackageDescription b/dev-util/diffstat/diffstat.OptionalPackageDescription new file mode 100644 index 000000000..416f02304 --- /dev/null +++ b/dev-util/diffstat/diffstat.OptionalPackageDescription @@ -0,0 +1,5 @@ +Package: diffstat +Version: 1.51 +Copyright: 1994-2009 Thomas E. Dickey +License: Diffstat +URL: http://invisible-island.net/diffstat diff --git a/dev-util/diffstat/licenses/Diffstat b/dev-util/diffstat/licenses/Diffstat new file mode 100644 index 000000000..4aa21070a --- /dev/null +++ b/dev-util/diffstat/licenses/Diffstat @@ -0,0 +1,20 @@ + +Copyright 1994-2008,2009 by Thomas E. Dickey +All Rights Reserved. + +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, provided +that the above copyright notice appear in all copies and that both that +copyright notice and this permission notice appear in supporting +documentation, and that the name of the above listed copyright holder(s) +not be used in advertising or publicity pertaining to distribution of the +software without specific, written prior permission. + +THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD +TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE +FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + diff --git a/dev-util/quilt/patches/quilt-0.48.patch b/dev-util/quilt/patches/quilt-0.48.patch new file mode 100644 index 000000000..7f5c35b97 --- /dev/null +++ b/dev-util/quilt/patches/quilt-0.48.patch @@ -0,0 +1,81 @@ +Index: quilt-0.48/changes2changelog +=================================================================== +--- quilt-0.48.orig/changes2changelog ++++ quilt-0.48/changes2changelog +@@ -1,4 +1,4 @@ +-#! /usr/bin/perl ++#!perl + + $ENV{"LC_ALL"} = "C"; + +Index: quilt-0.48/quilt.quiltrc +=================================================================== +--- quilt-0.48.orig/quilt.quiltrc ++++ quilt-0.48/quilt.quiltrc +@@ -12,8 +12,8 @@ QUILT_PATCH_OPTS="--unified" + #QUILT_DIFFSTAT_OPTS="-f0" + + # Options to pass to commands (QUILT_${COMMAND}_ARGS) +-QUILT_PUSH_ARGS="--color=auto" +-QUILT_DIFF_ARGS="--no-timestamps --color=auto" ++QUILT_PUSH_ARGS="" ++QUILT_DIFF_ARGS="--no-timestamps" + QUILT_REFRESH_ARGS="--no-timestamps --backup" + + # (Add "-p ab" to QUILT_DIFF_ARGS and QUILT_REFRESH_ARGS to get +@@ -28,4 +28,4 @@ QUILT_PATCHES_PREFIX=yes + + # Use a specific editor for quilt (defaults to the value of $EDITOR before + # sourcing this configuration file, or vi if $EDITOR wasn't set). +-#EDITOR=nedit ++EDITOR=nano +Index: quilt-0.48/configure.ac +=================================================================== +--- quilt-0.48.orig/configure.ac ++++ quilt-0.48/configure.ac +@@ -69,17 +69,6 @@ You can get this patch at ftp://ftp.gnu. + fi + + QUILT_COMPAT_PROG_PATH(CP, cp, [gcp cp]) +-AC_MSG_CHECKING(whether $CP -l works) +-touch conftest.1 +-if $CP -l conftest.1 conftest.2 2>/dev/null; then +- AC_MSG_RESULT(yes) +-else +- AC_MSG_ERROR([no +- +-You appear to have a `cp' that does not support hard links. +-You can download GNU fileutils from ftp.gnu.org +-]) +-fi + + QUILT_COMPAT_PROG_PATH(DATE, date, [gdate date]) + +Index: quilt-0.48/quilt/scripts/dependency-graph.in +=================================================================== +--- quilt-0.48.orig/quilt/scripts/dependency-graph.in ++++ quilt-0.48/quilt/scripts/dependency-graph.in +@@ -438,8 +438,7 @@ if ($reduce) { + $out = new FileHandle("| tred") + or die "tred: $!\n"; + } else { +- $out = new FileHandle("> /dev/stdout") +- or die "$!\n"; ++ $out = *STDOUT; + } + + # Write graph +Index: quilt-0.48/lib/backup-files.c +=================================================================== +--- quilt-0.48.orig/lib/backup-files.c ++++ quilt-0.48/lib/backup-files.c +@@ -224,7 +224,8 @@ link_or_copy_file(const char *from, cons + if (link(from, to) == 0) + return 0; + if (errno != EXDEV && errno != EPERM && +- errno != EMLINK && errno != ENOSYS) { ++ errno != EMLINK && errno != ENOSYS && ++ errno != EOPNOTSUPP) { + fprintf(stderr, "Could not link file `%s' to `%s': %s\n", + from, to, strerror(errno)); + return 1; diff --git a/dev-util/quilt/quilt-0.48.bep b/dev-util/quilt/quilt-0.48.bep new file mode 100644 index 000000000..0fc69c829 --- /dev/null +++ b/dev-util/quilt/quilt-0.48.bep @@ -0,0 +1,19 @@ +DESCRIPTION="quilt patch manager" +HOMEPAGE="http://savannah.nongnu.org/projects/quilt" +SRC_URI="http://savannah.nongnu.org/download/quilt/quilt-0.48.tar.gz" +CHECKSUM_MD5="f77adda60039ffa753f3c584a286f12b" +REVISION="1" +STATUS_HAIKU="stable" +DEPEND="dev-util/diffstat >= 1.51 + sys-apps/ed >= 1.4" +BUILD { + cd quilt-0.48 + autoconf + ./configure --prefix=/boot/common + make EDITOR=nano +} + +INSTALL { + cd quilt-0.48 + make install BUILD_ROOT="${DESTDIR}" +} diff --git a/dev-util/quilt/quilt.OptionalPackageDescription b/dev-util/quilt/quilt.OptionalPackageDescription new file mode 100644 index 000000000..f13666665 --- /dev/null +++ b/dev-util/quilt/quilt.OptionalPackageDescription @@ -0,0 +1,5 @@ +Package: quilt +Version: 0.48 +Copyright: 2003-2008 Andreas Gruenbacher, Gerd Knorr, Martin Quinson, Peter Braam, Tom Wang et al +License: GNU GPL v2 +URL: http://savannah.nongnu.org/projects/quilt