Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Oct 2013 13:47:49 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r329899 - head/devel/cppunit
Message-ID:  <201310091347.r99Dlnrj096328@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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}/,@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}/,@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310091347.r99Dlnrj096328>