svn commit: r328232 - head/textproc/google-ctemplate

Vanilla I. Shu vanilla at FreeBSD.org
Wed Sep 25 01:35:24 UTC 2013


Author: vanilla
Date: Wed Sep 25 01:35:23 2013
New Revision: 328232
URL: http://svnweb.freebsd.org/changeset/ports/328232

Log:
  Support stage.

Modified:
  head/textproc/google-ctemplate/Makefile
  head/textproc/google-ctemplate/pkg-plist

Modified: head/textproc/google-ctemplate/Makefile
==============================================================================
--- head/textproc/google-ctemplate/Makefile	Wed Sep 25 01:29:24 2013	(r328231)
+++ head/textproc/google-ctemplate/Makefile	Wed Sep 25 01:35:23 2013	(r328232)
@@ -11,23 +11,21 @@ DISTNAME=	ctemplate-${PORTVERSION}
 MAINTAINER=	vanilla at FreeBSD.org
 COMMENT=	A simple but powerful template language for C++
 
+OPTIONS_DEFINE=	DOCS
+
 GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 USES=		pkgconfig
 
-.if !defined(NOPORTDOCS)
-PORTDOCS=	*
-.endif
+.include <bsd.port.options.mk>
 
 post-patch:
-	${REINPLACE_CMD} -e 's|^pkgconfigdir.*|pkgconfigdir = $${PREFIX}/libdata/pkgconfig|' \
+	@${REINPLACE_CMD} -e 's|^pkgconfigdir.*|pkgconfigdir = $${PREFIX}/libdata/pkgconfig|' \
 		${WRKSRC}/Makefile.in
-
-.if !defined(NOPORTDOCS)
 	@${REINPLACE_CMD} -e \
 		's|$$(prefix)/share/doc/$$(PACKAGE)-$$(VERSION)|${DOCSDIR}|' \
 		${WRKSRC}/Makefile.in
-.else
+.if empty(PORT_OPTIONS:MDOCS)
 	@${REINPLACE_CMD} -e \
 		'/install-data-am/ s|install-dist_docDATA||' \
 		${WRKSRC}/Makefile.in

Modified: head/textproc/google-ctemplate/pkg-plist
==============================================================================
--- head/textproc/google-ctemplate/pkg-plist	Wed Sep 25 01:29:24 2013	(r328231)
+++ head/textproc/google-ctemplate/pkg-plist	Wed Sep 25 01:35:23 2013	(r328232)
@@ -8,8 +8,8 @@ include/ctemplate/template_annotator.h
 include/ctemplate/template_cache.h
 include/ctemplate/template_dictionary.h
 include/ctemplate/template_dictionary_interface.h
-include/ctemplate/template_enums.h
 include/ctemplate/template_emitter.h
+include/ctemplate/template_enums.h
 include/ctemplate/template_modifiers.h
 include/ctemplate/template_namelist.h
 include/ctemplate/template_pathops.h
@@ -24,4 +24,21 @@ lib/libctemplate_nothreads.so
 lib/libctemplate_nothreads.so.2
 libdata/pkgconfig/libctemplate.pc
 libdata/pkgconfig/libctemplate_nothreads.pc
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/README_windows.txt
+%%PORTDOCS%%%%DOCSDIR%%/auto_escape.html
+%%PORTDOCS%%%%DOCSDIR%%/designstyle.css
+%%PORTDOCS%%%%DOCSDIR%%/example.html
+%%PORTDOCS%%%%DOCSDIR%%/guide.html
+%%PORTDOCS%%%%DOCSDIR%%/howto.html
+%%PORTDOCS%%%%DOCSDIR%%/index.html
+%%PORTDOCS%%%%DOCSDIR%%/reference.html
+%%PORTDOCS%%%%DOCSDIR%%/tips.html
+%%PORTDOCS%%%%DOCSDIR%%/xss_resources.html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
 @dirrm include/ctemplate


More information about the svn-ports-all mailing list