aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-06-07 09:50:41 +0800
committerkris <kris@FreeBSD.org>2002-06-07 09:50:41 +0800
commit9e77c34b55ad5f09668f9893e22e0500633dd797 (patch)
tree37cebb7572ffcf2dac5cdbf70aa69c8b5db5e74d
parent2b91036f517808981c9c6d2a49bf4861936d18d9 (diff)
downloadfreebsd-ports-gnome-9e77c34b55ad5f09668f9893e22e0500633dd797.tar.gz
freebsd-ports-gnome-9e77c34b55ad5f09668f9893e22e0500633dd797.tar.zst
freebsd-ports-gnome-9e77c34b55ad5f09668f9893e22e0500633dd797.zip
Respect NOPORTDOCS
-rw-r--r--news/ubh/Makefile5
-rw-r--r--news/ubh/pkg-plist4
2 files changed, 6 insertions, 3 deletions
diff --git a/news/ubh/Makefile b/news/ubh/Makefile
index c1efc99dd4e5..78ccedb9ee57 100644
--- a/news/ubh/Makefile
+++ b/news/ubh/Makefile
@@ -30,7 +30,10 @@ pre-patch:
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/ubh ${PREFIX}/bin
- ${CP} -R ${WRKSRC}/doc ${PREFIX}/share/doc/ubh
${CP} -R ${WRKSRC}/examples ${PREFIX}/share/ubh
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/doc/ubh
+ ${INSTALL_DATA} ${WRKSRC}/doc/ubh.html ${PREFIX}/share/doc/ubh
+.endif
.include <bsd.port.mk>
diff --git a/news/ubh/pkg-plist b/news/ubh/pkg-plist
index 3fb2c7c597c6..483bee4e52c1 100644
--- a/news/ubh/pkg-plist
+++ b/news/ubh/pkg-plist
@@ -2,5 +2,5 @@ bin/ubh
share/ubh/ubhrc
share/ubh/newsrc
@dirrm share/ubh
-share/doc/ubh/ubh.html
-@dirrm share/doc/ubh
+%%PORTDOCS%%share/doc/ubh/ubh.html
+%%PORTDOCS%%@dirrm share/doc/ubh