pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/url2pkg Updated url2pkg to 2.4.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e94d89cb16d7
branches:  trunk
changeset: 525722:e94d89cb16d7
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Feb 22 08:21:52 2007 +0000

description:
Updated url2pkg to 2.4.

Changes since 2.3:
- When more than one directory exists in WRKDIR after extracting the
  distfile, a helpful comment is added to the generated Makefile.

diffstat:

 pkgtools/url2pkg/Makefile         |  4 ++--
 pkgtools/url2pkg/files/url2pkg.pl |  5 +++--
 2 files changed, 5 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r ee1ce249147f -r e94d89cb16d7 pkgtools/url2pkg/Makefile
--- a/pkgtools/url2pkg/Makefile Thu Feb 22 07:25:43 2007 +0000
+++ b/pkgtools/url2pkg/Makefile Thu Feb 22 08:21:52 2007 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.47 2007/01/12 21:35:52 rillig Exp $
+# $NetBSD: Makefile,v 1.48 2007/02/22 08:21:52 rillig Exp $
 #
 
-DISTNAME=      url2pkg-2.3
+DISTNAME=      url2pkg-2.4
 CATEGORIES=    pkgtools
 MASTER_SITES=  # none
 DISTFILES=     # none
diff -r ee1ce249147f -r e94d89cb16d7 pkgtools/url2pkg/files/url2pkg.pl
--- a/pkgtools/url2pkg/files/url2pkg.pl Thu Feb 22 07:25:43 2007 +0000
+++ b/pkgtools/url2pkg/files/url2pkg.pl Thu Feb 22 08:21:52 2007 +0000
@@ -1,5 +1,5 @@
 #! @PERL@
-# $NetBSD: url2pkg.pl,v 1.4 2007/01/12 21:35:52 rillig Exp $
+# $NetBSD: url2pkg.pl,v 1.5 2007/02/22 08:21:53 rillig Exp $
 #
 
 use strict;
@@ -333,7 +333,8 @@
                }               
                $abs_wrksrc = "${abs_wrkdir}/$files[0]";
        } else {
-               push(@build_vars, ["WRKSRC", "\${WRKDIR}"]);
+               push(@build_vars, ["WRKSRC", "\${WRKDIR}" .
+                   ((@files > 1) ? " # More than one possibility -- please check manually." : "")]);
                $abs_wrksrc = $abs_wrkdir;
        }
 



Home | Main Index | Thread Index | Old Index