pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/libxslt libxslt: fix man page



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2e3ad40d087d
branches:  trunk
changeset: 414779:2e3ad40d087d
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Apr 02 06:42:02 2020 +0000

description:
libxslt: fix man page

Addresses PR 55123 with a SUBST_SED.

Bump PKGREVISION.

diffstat:

 textproc/libxslt/Makefile |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r 4cefb4368779 -r 2e3ad40d087d textproc/libxslt/Makefile
--- a/textproc/libxslt/Makefile Wed Apr 01 20:30:53 2020 +0000
+++ b/textproc/libxslt/Makefile Thu Apr 02 06:42:02 2020 +0000
@@ -1,7 +1,9 @@
-# $NetBSD: Makefile,v 1.110 2019/11/06 13:23:45 wiz Exp $
+# $NetBSD: Makefile,v 1.111 2020/04/02 06:42:02 wiz Exp $
 
 .include "Makefile.common"
 
+PKGREVISION=   1
+
 BUILD_DEPENDS+=        docbook-xml-[0-9]*:../../textproc/docbook-xml
 BUILD_DEPENDS+=        docbook-xsl-[0-9]*:../../textproc/docbook-xsl
 
@@ -16,6 +18,14 @@
 PKGCONFIG_OVERRIDE+=   libexslt.pc.in
 TEST_TARGET=           check
 
+# fix PR 55123 - leading whitespace breaks manpage
+SUBST_CLASSES+=                man
+SUBST_FILES.man=       doc/xsltproc.1
+SUBST_STAGE.man=       post-build
+SUBST_MESSAGE.man=     Clean up manpages.
+SUBST_SED.man+=                -e 's,^[         ]*,,'
+SUBST_SED.man+=                -e '/^$$/d'
+
 BUILDLINK_TRANSFORM.SunOS+=    opt:-Wl,./libxslt.syms:-Wl,./libxslt_solaris.syms
 
 .include "../../mk/bsd.prefs.mk"



Home | Main Index | Thread Index | Old Index