From 2d63e0cf6fde505b14b3a7171b0f3be4ecd40a32 Mon Sep 17 00:00:00 2001 From: Volker Stolz Date: Tue, 15 Feb 2005 21:52:21 +0000 Subject: Fix plist for NOPORTDOCS PR: ports/77560 Submitted by: Jun Mukai (maintainer) --- devel/ocaml-extlib/Makefile | 9 ++++++++- devel/ocaml-extlib/pkg-plist | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'devel/ocaml-extlib') 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%% -- cgit v1.2.3