diff options
author | mat <mat@FreeBSD.org> | 2013-11-06 20:30:49 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2013-11-06 20:30:49 +0800 |
commit | 769bdaa3360d0750226162c5bf59bed133cc1d0a (patch) | |
tree | 1b5c349f63af22db6d3619f97a8b70164f0e754d /textproc | |
parent | 5e35a9905766408d3b9713463aa0a1ecb565004a (diff) | |
download | freebsd-ports-gnome-769bdaa3360d0750226162c5bf59bed133cc1d0a.tar.gz freebsd-ports-gnome-769bdaa3360d0750226162c5bf59bed133cc1d0a.tar.zst freebsd-ports-gnome-769bdaa3360d0750226162c5bf59bed133cc1d0a.zip |
newgetopt.pl was deprecated in 5.14, so, it doesn't work any more with 5.16+.
As Getopt::Long has been there for ages (and is in all supported perls in the
port tree,) this seemed the easiest way to fix it.
maintainer timeout
PR: ports/183197
Submitted by: mat
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/sgmlformat/Makefile | 2 | ||||
-rw-r--r-- | textproc/sgmlformat/files/patch-sgmlfmt.pl | 22 |
2 files changed, 21 insertions, 3 deletions
diff --git a/textproc/sgmlformat/Makefile b/textproc/sgmlformat/Makefile index faeda654e870..9c0908f8c482 100644 --- a/textproc/sgmlformat/Makefile +++ b/textproc/sgmlformat/Makefile @@ -3,7 +3,7 @@ PORTNAME= sgmlformat PORTVERSION= 1.7 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= textproc print MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= kuriyama diff --git a/textproc/sgmlformat/files/patch-sgmlfmt.pl b/textproc/sgmlformat/files/patch-sgmlfmt.pl index 690b240304d8..9139f2bdd072 100644 --- a/textproc/sgmlformat/files/patch-sgmlfmt.pl +++ b/textproc/sgmlformat/files/patch-sgmlfmt.pl @@ -1,5 +1,14 @@ ---- sgmlfmt/sgmlfmt.pl.orig Tue Sep 15 21:05:47 1998 -+++ sgmlfmt/sgmlfmt.pl Tue Sep 4 15:27:32 2001 +--- sgmlfmt/sgmlfmt.pl.orig 1998-09-15 23:05:47.000000000 +0200 ++++ sgmlfmt/sgmlfmt.pl 2013-10-22 12:52:49.000000000 +0200 +@@ -32,7 +32,7 @@ + # project. + + +-require 'newgetopt.pl'; ++use Getopt::Long; + + # + # Where to find DTDs and related files @@ -151,19 +151,15 @@ open (outfile, ">$fileroot.trf"); &sgmlparse(infile, "roff"); @@ -24,3 +33,12 @@ unlink("${fileroot}.trf"); } +@@ -655,7 +651,7 @@ + + sub main { + # Check arguments +- if (!&NGetOpt('d=s', 'f=s', 'links', 'i:s@', 'hdr=s', 'ftr=s', 'e=s')) { ++ if (!GetOptions('d=s', 'f=s', 'links', 'i:s@', 'hdr=s', 'ftr=s', 'e=s')) { + &usage; + exit 1; + } |