aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2005-02-16 05:52:21 +0800
committervs <vs@FreeBSD.org>2005-02-16 05:52:21 +0800
commit41c9302d8cb492fab910f0383bb9fd5f575ab75f (patch)
tree3ad29929557f83fb5d1355a542b1f6bc2dd335fc /devel
parentb8315e6146133b1c63c8cdf79982b42baa9531a4 (diff)
downloadfreebsd-ports-gnome-41c9302d8cb492fab910f0383bb9fd5f575ab75f.tar.gz
freebsd-ports-gnome-41c9302d8cb492fab910f0383bb9fd5f575ab75f.tar.zst
freebsd-ports-gnome-41c9302d8cb492fab910f0383bb9fd5f575ab75f.zip
Fix plist for NOPORTDOCS
PR: ports/77560 Submitted by: Jun Mukai (maintainer)
Diffstat (limited to 'devel')
-rw-r--r--devel/ocaml-extlib/Makefile9
-rw-r--r--devel/ocaml-extlib/pkg-plist2
2 files changed, 9 insertions, 2 deletions
diff --git a/devel/ocaml-extlib/Makefile b/devel/ocaml-extlib/Makefile
index a2b3134a9389..40c93ee0bbce 100644
--- a/devel/ocaml-extlib/Makefile
+++ b/devel/ocaml-extlib/Makefile
@@ -20,7 +20,14 @@ BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \
ocamlfind:${PORTSDIR}/devel/ocaml-findlib
USE_GMAKE= yes
-ALL_TARGET= all opt doc
+ALL_TARGET= all opt
+ALL_TARGET= all opt
+.if !defined(NOPORTDOCS)
+ALL_TARGET+= doc
+PLIST_SUB+= PORTDOCS=""
+.else
+PLIST_SUB+= PORTDOCS="@comment "
+.endif
DOCSDIR= ${PREFIX}/share/doc/ocaml/${PORTNAME}
post-install:
diff --git a/devel/ocaml-extlib/pkg-plist b/devel/ocaml-extlib/pkg-plist
index 1369f0beac9e..becbca961d46 100644
--- a/devel/ocaml-extlib/pkg-plist
+++ b/devel/ocaml-extlib/pkg-plist
@@ -106,4 +106,4 @@ lib/ocaml/site-lib/extlib/META
%%PORTDOCS%%%%DOCSDIR%%/type_UTF8.html
%%PORTDOCS%%%%DOCSDIR%%/type_Unzip.html
@dirrm lib/ocaml/site-lib/extlib
-@dirrm %%DOCSDIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%