diff options
author | dwcjr <dwcjr@FreeBSD.org> | 2001-09-01 04:02:45 +0800 |
---|---|---|
committer | dwcjr <dwcjr@FreeBSD.org> | 2001-09-01 04:02:45 +0800 |
commit | 3578267f8ab619186303c9b8fd2e48b03a8859f9 (patch) | |
tree | 030da6b0f637609a762e1441f77599189c02845a /textproc/sgmlformat | |
parent | 1ec814c2d02860ba7e7e573d01563a64892b37d9 (diff) | |
download | freebsd-ports-gnome-3578267f8ab619186303c9b8fd2e48b03a8859f9.tar.gz freebsd-ports-gnome-3578267f8ab619186303c9b8fd2e48b03a8859f9.tar.zst freebsd-ports-gnome-3578267f8ab619186303c9b8fd2e48b03a8859f9.zip |
Unbreak references in non-html output for port textproc/sgmlformat
Bump PORTREVISION
PR: 28145
Submitted by: Udo Schweigert
No response: maintainer
Diffstat (limited to 'textproc/sgmlformat')
-rw-r--r-- | textproc/sgmlformat/Makefile | 1 | ||||
-rw-r--r-- | textproc/sgmlformat/files/patch-sgmlfmt.pl | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/textproc/sgmlformat/Makefile b/textproc/sgmlformat/Makefile index 95aca3def15b..5cd298c4e1be 100644 --- a/textproc/sgmlformat/Makefile +++ b/textproc/sgmlformat/Makefile @@ -7,6 +7,7 @@ PORTNAME= sgmlformat PORTVERSION= 1.7 +PORTREVISION= 1 CATEGORIES= textproc print MASTER_SITES= http://fallout.campusview.indiana.edu/ports/distfiles/ diff --git a/textproc/sgmlformat/files/patch-sgmlfmt.pl b/textproc/sgmlformat/files/patch-sgmlfmt.pl new file mode 100644 index 000000000000..2970292586af --- /dev/null +++ b/textproc/sgmlformat/files/patch-sgmlfmt.pl @@ -0,0 +1,25 @@ +--- sgmlfmt/sgmlfmt.pl.orig Tue Sep 15 23:05:47 1998 ++++ sgmlfmt/sgmlfmt.pl Thu Jun 14 15:37:50 2001 +@@ -151,19 +151,14 @@ + open (outfile, ">$fileroot.trf"); + &sgmlparse(infile, "roff"); + while (<infile>) { ++ s,\\\(ru,_,g if /^\.GET[HP]N/; + print outfile; + } + close(infile); + close(outfile); ++ system("groff -z -rRef=1 -T ${driver} -t ${fileroot}.trf 2>&1 | egrep '^\\.' > ${fileroot}.qrf"); + system("groff -T ${driver} -t ${fileroot}.trf ${postproc} > ${fileroot}.${driver}"); +- +- # If foo.tmp has been created, then there are cross references +- # in the file and we need a second pass to resolve them correctly. +- +- if (stat("${fileroot}.tmp")) { +- system("groff -T ${driver} -t ${fileroot}.trf ${postproc} > ${fileroot}.${driver}"); +- unlink("${fileroot}.qrf"); +- } ++ unlink("${fileroot}.qrf"); + unlink("${fileroot}.trf"); + } + |