pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/url2pkg Update url2pkg-2.29: Fix generation o...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a23508126102
branches:  trunk
changeset: 373600:a23508126102
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Jan 07 11:20:18 2018 +0000

description:
Update url2pkg-2.29: Fix generation of Perl packages.

The WriteMakefile subroutine was not exported properly.

diffstat:

 pkgtools/url2pkg/Makefile           |   4 +-
 pkgtools/url2pkg/files/MakeMaker.pm |   3 +-
 pkgtools/url2pkg/files/url2pkg.pl   |  50 +++++++++++++++++++++---------------
 3 files changed, 32 insertions(+), 25 deletions(-)

diffs (102 lines):

diff -r 607d7520bcfd -r a23508126102 pkgtools/url2pkg/Makefile
--- a/pkgtools/url2pkg/Makefile Sun Jan 07 10:27:14 2018 +0000
+++ b/pkgtools/url2pkg/Makefile Sun Jan 07 11:20:18 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.86 2016/09/27 17:10:09 wiz Exp $
+# $NetBSD: Makefile,v 1.87 2018/01/07 11:20:18 rillig Exp $
 
-PKGNAME=       url2pkg-2.28
+PKGNAME=       url2pkg-2.29
 CATEGORIES=    pkgtools
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
diff -r 607d7520bcfd -r a23508126102 pkgtools/url2pkg/files/MakeMaker.pm
--- a/pkgtools/url2pkg/files/MakeMaker.pm       Sun Jan 07 10:27:14 2018 +0000
+++ b/pkgtools/url2pkg/files/MakeMaker.pm       Sun Jan 07 11:20:18 2018 +0000
@@ -50,14 +50,13 @@
        use Exporter;
        use vars qw(@ISA @EXPORT);
        @ISA = qw(Exporter);
-       @EXPORT = qw(WriteMakefile prompt);
 }
 
 # From lib/perl5/5.18.0/ExtUtils/MakeMaker.pm
 our $VERSION = '6.66';
 
 our $Verbose   = 0;    # exported
-our @EXPORT    = qw($Verbose $version);
+our @EXPORT    = qw(&WriteMakefile &prompt $Verbose $version);
 our @EXPORT_OK = qw(&neatvalue);
 
 # Finds and returns the category a given package lies in.
diff -r 607d7520bcfd -r a23508126102 pkgtools/url2pkg/files/url2pkg.pl
--- a/pkgtools/url2pkg/files/url2pkg.pl Sun Jan 07 10:27:14 2018 +0000
+++ b/pkgtools/url2pkg/files/url2pkg.pl Sun Jan 07 11:20:18 2018 +0000
@@ -1,5 +1,5 @@
 #! @PERL@
-# $NetBSD: url2pkg.pl,v 1.34 2016/09/27 17:10:09 wiz Exp $
+# $NetBSD: url2pkg.pl,v 1.35 2018/01/07 11:20:18 rillig Exp $
 #
 
 # Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -89,32 +89,40 @@
        printf $f ("\n");
 }
 
-#
-# Introduction to the magic_* subroutines.
-#
-# The following routines are called after the distfiles have been
-# downloaded and extracted. They may inspect the extracted files
+# The following magic_* subroutines are called after the distfiles have
+# been downloaded and extracted. They inspect the extracted files
 # to automatically define some variables in the package Makefile.
 #
 # The following variables may be used in the magic_* subroutines:
-# $distname contains the package name, including the version number.
-# $abs_wrkdir is an absolute pathname to the working directory, which
-# contains the extracted distfiles. $abs_wrksrc is the absolute pathname
-# to a subdirectory of $abs_wrkdir, in which you can usually find the
-# package-provided Makefiles or configure scripts.
+#
+# $distname
+#      contains the package name, including the version number.
+# $abs_wrkdir
+#      the absolute pathname to the working directory, containing
+#      the extracted distfiles.
+# $abs_wrksrc
+#      the absolute pathname to a subdirectory of $abs_wrkdir,
+#      typically containing package-provided Makefiles or configure
+#      scripts.
 #
 # The following lists may be extended by the magic_* routines and
-# will later appear in the package Makefile: @depends and @build_depends
-# contain the dependencies of the package, in the form
-# "package>=version". @includes is a list of pathnames relative to the
-# package path. All these files will be included at the bottom of the
-# Makefile. @build_vars is a list of [varname, value] items that contain
-# variables that will be defined in the fourth paragraph of the package
-# Makefile, where the build configuration takes place. The @extra_vars
-# are similar to the @build_vars, but separated by an empty line in the
-# Makefile. The @todo items are inserted below the second paragraph in
-# the Makefile.
+# will later appear in the package Makefile:
 #
+# @depends
+# @build_depends
+#      the dependencies of the package, in the form "package>=version".
+# @includes
+#      a list of pathnames relative to the package path.
+#      All these files will be included at the bottom of the Makefile.
+# @build_vars
+#      a list of [varname, value] items that contain variables that
+#      will be defined in the fourth paragraph of the package Makefile,
+#      where the build configuration takes place.
+# @extra_vars
+#      similar to the @build_vars, but separated by an empty line in
+#      the Makefile, therefore forming the fifth paragraph.
+# @todo
+#      these are inserted below the second paragraph in the Makefile.
 
 my ($distname, $abs_wrkdir, $abs_wrksrc);
 my (@wrksrc_files, @wrksrc_dirs);



Home | Main Index | Thread Index | Old Index