- honor NOPORTDOCS|NOPORTEXAMPLES

PR:		144021
Submitted by:	Dan Lukes
Approved by:	maintainer timeout
Feature safe:	yes
This commit is contained in:
Ion-Mihai Tetcu 2010-03-07 23:16:12 +00:00
parent 514586eca5
commit a2d5cbb6d5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=250676
2 changed files with 6 additions and 5 deletions

View file

@ -101,12 +101,13 @@ MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
post-extract:
@${REINPLACE_CMD} -e 's/^POD3/#POD3/' ${WRKSRC}/doc/Makefile.in
.if defined(NOPORTDOCS)
@${REINPLACE_CMD} -e 's/install-idocDATA install-ihtmlDATA//g' \
-e 's/^ cd .* rrdtool.html index.html/ #/' \
@${REINPLACE_CMD} -e 's/[[:space:]]install-idocDATA//g' \
-e 's/[[:space:]]install-ihtmlDATA//g' \
-e 's/^[[:space:]].*cd .* rrdtool.html index.html/ #/' \
${WRKSRC}/doc/Makefile.in
.endif
.if defined(NOPORTEXAMPLES)
${REINPLACE_CMD} -e 's|SUBDIRS = po src examples doc bindings intl|SUBDIRS = po src doc bindings intl|' \
${REINPLACE_CMD} -e '/^SUBDIRS = /s| examples | |' \
${WRKSRC}/Makefile.in
.endif

View file

@ -24,8 +24,8 @@ libdata/pkgconfig/librrd.pc
%%WITH_RUBY%%%%RUBY_SITEARCHLIBDIR%%/RRD.so
%%WITH_PERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/RRDp
%%WITH_PERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/RRDs
share/rrdtool/examples/rrdcached/RRDCached.pm
share/rrdtool/examples/rrdcached/rrdcached-size.pl
%%PORTEXAMPLES%%share/rrdtool/examples/rrdcached/RRDCached.pm
%%PORTEXAMPLES%%share/rrdtool/examples/rrdcached/rrdcached-size.pl
@dirrm share/rrdtool/examples/rrdcached
@dirrm share/rrdtool/examples
@dirrm share/rrdtool