aboutsummaryrefslogtreecommitdiffstats
path: root/databases/rrdtool
diff options
context:
space:
mode:
authoritetcu <itetcu@FreeBSD.org>2010-03-08 07:16:12 +0800
committeritetcu <itetcu@FreeBSD.org>2010-03-08 07:16:12 +0800
commitdfd21789f7da6a6b488d7090762bf3e863ec7a86 (patch)
tree11699a8e3753653c4464b3e72812f6b0f243b3ea /databases/rrdtool
parentb026e34307be9a38f6fabe9e7784104f30199ea4 (diff)
downloadfreebsd-ports-gnome-dfd21789f7da6a6b488d7090762bf3e863ec7a86.tar.gz
freebsd-ports-gnome-dfd21789f7da6a6b488d7090762bf3e863ec7a86.tar.zst
freebsd-ports-gnome-dfd21789f7da6a6b488d7090762bf3e863ec7a86.zip
- honor NOPORTDOCS|NOPORTEXAMPLES
PR: 144021 Submitted by: Dan Lukes Approved by: maintainer timeout Feature safe: yes
Diffstat (limited to 'databases/rrdtool')
-rw-r--r--databases/rrdtool/Makefile7
-rw-r--r--databases/rrdtool/pkg-plist4
2 files changed, 6 insertions, 5 deletions
diff --git a/databases/rrdtool/Makefile b/databases/rrdtool/Makefile
index 62c61b360852..5df10d657c60 100644
--- a/databases/rrdtool/Makefile
+++ b/databases/rrdtool/Makefile
@@ -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
diff --git a/databases/rrdtool/pkg-plist b/databases/rrdtool/pkg-plist
index 7e15d210f74a..6fba0cd60f89 100644
--- a/databases/rrdtool/pkg-plist
+++ b/databases/rrdtool/pkg-plist
@@ -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