summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2005-07-27 08:07:44 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2005-07-27 08:07:44 +0000
commite92a2e56050d8bba909249191b333c4bf2a35c96 (patch)
treec986fad8d984a9a8cd7980865819d5d86a1f6900 /app-text/txt2man/files
parentAdded upstream patch to 0.7.0. Removed old stale patches. (diff)
downloadgentoo-2-e92a2e56050d8bba909249191b333c4bf2a35c96.tar.gz
gentoo-2-e92a2e56050d8bba909249191b333c4bf2a35c96.tar.bz2
gentoo-2-e92a2e56050d8bba909249191b333c4bf2a35c96.zip
Added patch from Debian for hyphens escaping. Thanks to Fredrik Steen <stone@debian.org> (Debian maintainer) and Wesley J. Landaker (original submitter of the patch).
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'app-text/txt2man/files')
-rw-r--r--app-text/txt2man/files/digest-txt2man-1.4.8-r1 (renamed from app-text/txt2man/files/digest-txt2man-1.4.8)0
-rw-r--r--app-text/txt2man/files/txt2man-1.4.8-debian.patch21
2 files changed, 21 insertions, 0 deletions
diff --git a/app-text/txt2man/files/digest-txt2man-1.4.8 b/app-text/txt2man/files/digest-txt2man-1.4.8-r1
index b5c4ed06acaf..b5c4ed06acaf 100644
--- a/app-text/txt2man/files/digest-txt2man-1.4.8
+++ b/app-text/txt2man/files/digest-txt2man-1.4.8-r1
diff --git a/app-text/txt2man/files/txt2man-1.4.8-debian.patch b/app-text/txt2man/files/txt2man-1.4.8-debian.patch
new file mode 100644
index 000000000000..d6cad591276c
--- /dev/null
+++ b/app-text/txt2man/files/txt2man-1.4.8-debian.patch
@@ -0,0 +1,21 @@
+--- txt2man-1.4.8.orig/txt2man
++++ txt2man-1.4.8/txt2man
+@@ -181,6 +181,7 @@
+ {
+ sub(/\.\.\./, "\\.\\.\\.") # to avoid some side effects in regexp
+ sub(/^ +$/,"") # remove spaces in empty lines
++ sub(/-/,"\\-") # backslash-escape hyphens
+ }
+ /^[[:upper:][:space:]]+$/ { # Section header
+ if ((in_bd + 0) == 1) {
+--- txt2man-1.4.8.orig/Makefile
++++ txt2man-1.4.8/Makefile
+@@ -6,7 +6,7 @@
+ cp -p txt2man.1 $(prefix)/man/man1
+
+ txt2man.1 txt2man.man: txt2man
+- ./txt2man -h 2>&1 | ./txt2man -t txt2man >$@
++ ./txt2man -h 2>&1 | ./txt2man -s 1 -t txt2man >$@
+
+ txt2man.ps: txt2man.man
+ groff -man txt2man.man > txt2man.ps