Index: head/devel/zziplib/files/patch-docs_Makefile.in =================================================================== --- head/devel/zziplib/files/patch-docs_Makefile.in (revision 474027) +++ head/devel/zziplib/files/patch-docs_Makefile.in (nonexistent) @@ -1,11 +0,0 @@ ---- docs/Makefile.in.orig 2009-08-27 16:33:21.000000000 +0200 -+++ docs/Makefile.in 2009-08-27 16:33:21.000000000 +0200 -@@ -451,7 +451,7 @@ uninstall-am: - - - all : all-am default --default : doc @MAINTAINER_MODE_FALSE@ mans -+default : @MAINTAINER_MODE_FALSE@ mans - clean-doc clean-docs : clean-unpack - - rm $(DISTCLEANFILES) - - rm $(MAINTAINERCLEANFILES) Property changes on: head/devel/zziplib/files/patch-docs_Makefile.in ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/devel/zziplib/files/patch-docs_dbk2man.py =================================================================== --- head/devel/zziplib/files/patch-docs_dbk2man.py (nonexistent) +++ head/devel/zziplib/files/patch-docs_dbk2man.py (revision 474028) @@ -0,0 +1,47 @@ +--- docs/dbk2man.py.orig 2018-03-16 11:55:55 UTC ++++ docs/dbk2man.py +@@ -1,4 +1,4 @@ +-#!/usr/local/bin/python2.7 ++#! /usr/bin/python + """ Converts an xml-file with docbook elements into troff manual pages. + The conversion uses etree expecting elements in the input. + The output goes to a multiple files in manX/* subdirectories. +@@ -223,22 +223,23 @@ def refentry2man(refentry, subdirectory + if found is not None: manvolnum = found.text + written = 0 + section = refentry.find("refnamediv") +- for refname in section.findall("refname"): +- if not refentrytitle: +- refentrytitle = refname.text +- manpage = refname.text +- filename = "%s/man%s/%s.%s" % (subdirectory, manvolnum, manpage, manvolnum) +- if manpage != refentrytitle: +- manpagetext = ".so %s.%s\n" % (refentrytitle, manvolnum) +- writefile(filename, manpagetext) +- else: +- manpagetext = text ++ if section is not None: ++ for refname in section.findall("refname"): ++ if not refentrytitle: ++ refentrytitle = refname.text ++ manpage = refname.text ++ filename = "%s/man%s/%s.%s" % (subdirectory, manvolnum, manpage, manvolnum) ++ if manpage != refentrytitle: ++ manpagetext = ".so %s.%s\n" % (refentrytitle, manvolnum) ++ writefile(filename, manpagetext) ++ else: ++ manpagetext = text ++ writefile(filename, manpagetext) ++ written += 1 ++ if not written: ++ manpage = refentrytitle ++ filename = "%s/man%s/%s.%s" % (subdirectory, manvolnum, manpage, manvolnum) + writefile(filename, manpagetext) +- written += 1 +- if not written: +- manpage = refentrytitle +- filename = "%s/man%s/%s.%s" % (subdirectory, manvolnum, manpage, manvolnum) +- writefile(filename, manpagetext) + + def writefile(filename, manpagetext): + dirname = os.path.dirname(filename) Property changes on: head/devel/zziplib/files/patch-docs_dbk2man.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property