Import of pkgsrc-2015Q1

This commit is contained in:
2015-04-22 14:34:26 +02:00
committed by Lionel Sambuc
parent 9a8c06dafb
commit 4af1cdf7a9
25114 changed files with 870550 additions and 795435 deletions

View File

@@ -1,7 +1,6 @@
# $NetBSD: Makefile,v 1.83 2014/03/12 20:28:30 asau Exp $
#
# $NetBSD: Makefile,v 1.86 2015/02/03 22:50:27 abs Exp $
PKGNAME= pkgdiff-1.5
PKGNAME= pkgdiff-1.6
CATEGORIES= pkgtools devel
MAINTAINER= wiz@NetBSD.org
@@ -9,8 +8,6 @@ HOMEPAGE= ftp://ftp.NetBSD.org/pub/NetBSD/packages/pkgsrc/doc/pkgsrc.html
COMMENT= Tools to create, maintain, and send back patches for pkgsrc
LICENSE= 2-clause-bsd AND original-bsd
PKG_INSTALLATION_TYPES= overwrite pkgviews
NO_CONFIGURE= yes
WRKSRC= ${WRKDIR}

View File

@@ -1,6 +1,6 @@
#!@PERL5@
#
# $NetBSD: mkpatches.pl,v 1.18 2014/03/12 20:28:30 asau Exp $
# $NetBSD: mkpatches.pl,v 1.19 2015/02/03 22:50:27 abs Exp $
#
# mkpatches: creates a set of patches patch-aa, patch-ab, ...
# in work/.newpatches by looking for *.orig files in and below
@@ -175,7 +175,7 @@ foreach (sort <HANDLE>) {
if ($opt_v) {
print "$patchfile -> $complete\n";
}
$diff=`@PREFIX@/bin/pkgdiff $old $new 2>&1`;
$diff=`@PREFIX@/bin/pkgdiff "$old" "$new" 2>&1`;
if ($?) {
print "$old: $diff";
}
@@ -207,7 +207,7 @@ sub analyze_old_patches
if (! -s $checkname) {
$checkname = $filename;
}
$patch = `sed '/^\+\+\+/ q' $checkname`;
$patch = `sed '/^\+\+\+/ q' "$checkname"`;
if (!($patch =~ m/^\+\+\+ ([^\t\n]*)(\n$|\t)/m)) {
warn "cannot extract filename from patch $checkname";
next;
@@ -247,7 +247,7 @@ sub patch_name # filename
}
$name =~ s,_,__,g;
$name =~ s,/,_,g;
$name =~ s,[/\s],_,g;
$name = "patch-$name";
return $name;

View File

@@ -1,6 +1,6 @@
#!@SH@
#
# $NetBSD: pkgdiff,v 1.22 2012/09/16 18:09:53 dholland Exp $
# $NetBSD: pkgdiff,v 1.23 2015/02/03 22:50:27 abs Exp $
#
# Usage: pkgdiff newfile
# pkgdiff oldfile newfile
@@ -81,18 +81,18 @@ else
old="$1"
new="$2"
fi
basename_new="`basename $new`"
basename_new="`basename "$new"`"
dodiff() {
case x"$basename_new" in
xconfigure)
@DIFF@ -I '\(echo .*as_me:[0-9][0-9]*:\|echo .*configure:[0-9][0-9]*:\|line [0-9][0-9]* "configure\)' -I '\(Avoid regenerating within pkgsrc\|exit 0\)' $*
@DIFF@ -I '\(echo .*as_me:[0-9][0-9]*:\|echo .*configure:[0-9][0-9]*:\|line [0-9][0-9]* "configure\)' -I '\(Avoid regenerating within pkgsrc\|exit 0\)' "$@"
;;
xMakefile*)
@DIFF@ -I '\(localedir.*=.*localedir\|localedir.*=.*share/locale\)' $*
@DIFF@ -I '\(localedir.*=.*localedir\|localedir.*=.*share/locale\)' "$@"
;;
*)
@DIFF@ $*
@DIFF@ "$@"
esac
}
@@ -103,7 +103,7 @@ dogrep() {
case x"$PKGDIFF_FMT" in x)
lines=3
PKGDIFF_FMT="-p"
while [ `dodiff "$PKGDIFF_FMT" -U $lines "$old" "$new" | dogrep -c` != 0 ]
while [ `dodiff $PKGDIFF_FMT -U $lines "$old" "$new" | dogrep -c` != 0 ]
do
lines=`expr $lines - 1`
if [ $lines = 0x -a x"$PKGDIFF_FMT" = x-p ]; then
@@ -115,7 +115,7 @@ do
if [ $lines = 0 ]; then
echo "Cannot strip away RCS IDs, please handle manually!" >&2
echo "These are the matching lines:" >&2
dodiff "$PKGDIFF_FMT" -U $lines "$old" "$new" | dogrep |\
dodiff $PKGDIFF_FMT -U $lines "$old" "$new" | dogrep |\
sed -e 's/^/ /' >&2
echo "Setting PKGDIFF_FMT might help." >&2
echo "Otherwise you may need to run diff by hand." >&2
@@ -126,7 +126,7 @@ PKGDIFF_FMT="${PKGDIFF_FMT} -U $lines"
;;
esac # PKGDIFF_FMT unset or null
if dodiff -q "$PKGDIFF_FMT" "$old" "$new" > /dev/null
if dodiff -q $PKGDIFF_FMT "$old" "$new" > /dev/null
then
:
else
@@ -134,5 +134,5 @@ else
echo ''
# Strip out the date on the +++ line to reduce needless
# differences in regenerated patches
dodiff "$PKGDIFF_FMT" "$old" "$new" | sed -e 's:^\(+++ [^ ]*\) .*:\1:'
dodiff $PKGDIFF_FMT "$old" "$new" | sed -e 's:^\(+++ [^ ]*\) .*:\1:'
fi