svn commit: r329899 - head/devel/cppunit
Bryan Drewery
bdrewery at FreeBSD.org
Wed Oct 9 13:47:49 UTC 2013
Author: bdrewery
Date: Wed Oct 9 13:47:48 2013
New Revision: 329899
URL: http://svnweb.freebsd.org/changeset/ports/329899
Log:
- Convert to staging
- Convert WITH_DOXYGEN to an option
Modified:
head/devel/cppunit/Makefile
head/devel/cppunit/pkg-plist
Modified: head/devel/cppunit/Makefile
==============================================================================
--- head/devel/cppunit/Makefile Wed Oct 9 13:23:57 2013 (r329898)
+++ head/devel/cppunit/Makefile Wed Oct 9 13:47:48 2013 (r329899)
@@ -9,28 +9,21 @@ MASTER_SITES= SF
MAINTAINER= bdrewery at FreeBSD.org
COMMENT= C++ port of the JUnit framework for unit testing
+OPTIONS_DEFINE= DOXYGEN
+
USE_AUTOTOOLS= libtool
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
-NO_STAGE= yes
-.if defined(WITH_DOXYGEN)
-BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOXYGEN}
+BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
CONFIGURE_ARGS+= --enable-doc --enable-doxygen --enable-html-docs
-PLIST_SUB+= HTMLDOCS="" PORTDOCS=""
+PLIST_SUB+= HTMLDOCS="" PORTDOCS=""
.else
CONFIGURE_ARGS+= --disable-doc --disable-doxygen
-PLIST_SUB+= HTMLDOCS="@comment "
-.endif
-
-MAN1= cppunit-config.1
-#MANCOMPRESSED= no
-
-pre-everything::
-.if !defined(WITH_DOXYGEN)
- @${ECHO_MSG}
- @${ECHO_MSG} "You could define WITH_DOXYGEN if you want HTML documentation"
- @${ECHO_MSG}
+PLIST_SUB+= HTMLDOCS="@comment "
.endif
post-patch:
@@ -38,15 +31,13 @@ post-patch:
${WRKSRC}/Makefile.in
post-install:
- @${FIND} ${PREFIX}/include/cppunit ! -type d | \
- ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
- @${FIND} ${PREFIX}/include/cppunit -type d | ${SORT} -r | \
- ${SED} 's,^${PREFIX}/, at dirrm ,' >> ${TMPPLIST}
-.if !defined(NOPORTDOCS) || defined(WITH_DOXYGEN)
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_MAN} ${WRKSRC}/doc/FAQ ${DOCSDIR}
- ${INSTALL_MAN} ${WRKSRC}/NEWS ${DOCSDIR}
- ${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
-.endif
+ @${FIND} ${STAGEDIR}${PREFIX}/include/cppunit ! -type d | \
+ ${SED} 's,^${STAGEDIR}${PREFIX}/,,' >> ${TMPPLIST}
+ @${FIND} ${STAGEDIR}${PREFIX}/include/cppunit -type d | ${SORT} -r | \
+ ${SED} 's,^${STAGEDIR}${PREFIX}/, at dirrm ,' >> ${TMPPLIST}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_MAN} ${WRKSRC}/doc/FAQ ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_MAN} ${WRKSRC}/NEWS ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
Modified: head/devel/cppunit/pkg-plist
==============================================================================
--- head/devel/cppunit/pkg-plist Wed Oct 9 13:23:57 2013 (r329898)
+++ head/devel/cppunit/pkg-plist Wed Oct 9 13:47:48 2013 (r329899)
@@ -6,6 +6,7 @@ lib/libcppunit.a
lib/libcppunit.la
lib/libcppunit.so
libdata/pkgconfig/cppunit.pc
+man/man1/cppunit-config.1.gz
share/aclocal/cppunit.m4
%%HTMLDOCS%%%%DOCSDIR%%/index.html
%%HTMLDOCS%%%%DOCSDIR%%/_additional_message_8cpp.html
More information about the svn-ports-all
mailing list