ports/186795: [PATCH] devel/cppcheck: fix manpage installation
Dmitry Marakasov
amdmi3 at amdmi3.ru
Sat Feb 15 15:30:02 UTC 2014
>Number: 186795
>Category: ports
>Synopsis: [PATCH] devel/cppcheck: fix manpage installation
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Feb 15 15:30:01 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Dmitry Marakasov
>Release: FreeBSD 10.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD hades.panopticon 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260807: Fri Jan 17 13:14:28 MSK
>Description:
- Add MANPAGES option
- Make manpage installation dependent on this option, not DOCS
- Fix plist in case of manpages disabled
Port maintainer (bf at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.99_11 (mode: change, diff: SVN)
>How-To-Repeat:
>Fix:
--- cppcheck-1.63.patch begins here ---
Index: Makefile
===================================================================
--- Makefile (revision 344403)
+++ Makefile (working copy)
@@ -20,13 +20,13 @@
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_ENV+= TINYXML=-ltinyxml2
-OPTIONS_DEFINE= MATCHCOMPILER RULES
-OPTIONS_DEFAULT= MATCHCOMPILER RULES
+OPTIONS_DEFINE= MATCHCOMPILER RULES MANPAGES
+OPTIONS_DEFAULT= MATCHCOMPILER RULES MANPAGES
MATCHCOMPILER_DESC= Build-time optimizations via Python
RULES_DESC= User-defined rule support (requires PCRE)
-PLIST_FILES= bin/cppcheck bin/cppcheck-htmlreport man/man1/cppcheck.1.gz
+PLIST_FILES= bin/cppcheck bin/cppcheck-htmlreport
.include <bsd.port.options.mk>
@@ -35,12 +35,14 @@
PORTDATA= *
.endif
-.if ${PORT_OPTIONS:MDOCS}
+.if ${PORT_OPTIONS:MMANPAGES}
ALL_TARGET+= man
BUILD_DEPENDS+= xsltproc:${PORTSDIR}/textproc/libxslt \
${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl
MAKE_ENV+= DB2MAN="${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl"
+PLIST_FILES+= man/man1/cppcheck.1.gz
+
post-install:
@${INSTALL_MAN} ${WRKSRC}/cppcheck.1 ${STAGEDIR}${PREFIX}/man/man1
.endif
@@ -59,7 +61,7 @@
@${REINPLACE_CMD} \
-e 's|-Iexternals -Iexternals/tinyxml|-I${LOCALBASE}/include|' \
${WRKSRC}/Makefile
-.if ${PORT_OPTIONS:MDOCS}
+.if ${PORT_OPTIONS:MMANPAGES}
@${REINPLACE_CMD} -e '\|DB2MAN=|d' \
${WRKSRC}/Makefile
.endif
--- cppcheck-1.63.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list