Revive p5-Getopt-Long, as some packages need newer than what's bundled

with Perl 5.38.0.
This commit is contained in:
schmonz 2024-02-04 05:44:24 +00:00
parent 65e7141a27
commit 0d5ef132f7
4 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,9 @@
Module Getopt::Long implements an extended getopt function called
GetOptions(). This function implements the POSIX standard for command
line options, with GNU extensions, while still capable of handling the
traditional one-letter options. In general, this means that command line
options can have long names instead of single letters, and are
introduced with a double dash `--`.
Optionally, Getopt::Long can support the traditional bundling of
single-letter command line options.

View File

@ -0,0 +1,19 @@
# $NetBSD: Makefile,v 1.37 2024/02/04 05:44:24 schmonz Exp $
DISTNAME= Getopt-Long-2.57
PKGNAME= p5-${DISTNAME}
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Getopt/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://metacpan.org/release/Getopt-Long
COMMENT= Extended processing of command line options
LICENSE= ${PERL5_LICENSE}
#REPLACE_PERL+= lib/Getopt/Long.pm
PERL5_PACKLIST= auto/Getopt/Long/.packlist
USE_LANGUAGES= # none
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"

View File

@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.19 2024/02/04 05:44:24 schmonz Exp $
BLAKE2s (Getopt-Long-2.57.tar.gz) = 2f99358e96421eac62c9d3f547c3dc0cf9681d4c0b170f2683d71c46fff82f2d
SHA512 (Getopt-Long-2.57.tar.gz) = 6b07f683b6f1371bc7f9b018ec659c049d58de25194965c6e2ba3a288e6802ba07257aa5d447bc082f0481d0956798d9f17521faf6a31d896bb3be0d17953b49
Size (Getopt-Long-2.57.tar.gz) = 45259 bytes
SHA1 (patch-Makefile.PL) = 2feae055cb7c3ae733b1a6682156420433400fd5

View File

@ -0,0 +1,16 @@
$NetBSD: patch-Makefile.PL,v 1.3 2024/02/04 05:44:24 schmonz Exp $
newgetopt.pl does exist in p5-Perl4-CoreLibs. To co-exist
with that,
--- Makefile.PL.orig 2023-11-09 22:08:55.000000000 +0000
+++ Makefile.PL
@@ -94,7 +94,7 @@ WriteMakefile(
),
INSTALLDIRS => ($] < 5.011 ? 'perl' : 'site'),
- PM => { "lib/newgetopt.pl" => '$(INST_LIB)/newgetopt.pl',
+ PM => {
"lib/Getopt/Long.pm" => '$(INST_LIB)/Getopt/Long.pm',
"lib/Getopt/Long/Parser.pm" => '$(INST_LIB)/Getopt/Long/Parser.pm',
},