Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Sep 2013 01:35:23 +0000 (UTC)
From:      "Vanilla I. Shu" <vanilla@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r328232 - head/textproc/google-ctemplate
Message-ID:  <201309250135.r8P1ZN0s098977@svn.freebsd.org>

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



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