Date: Tue, 15 Feb 2005 15:25:52 GMT From: Jun Mukai <mukai@jmuk.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/77560: [PATCH] devel/ocaml-extlib: problem with NOPORTDOCS=yes Message-ID: <200502151525.j1FFPqKE000507@www.freebsd.org> Resent-Message-ID: <200502151530.j1FFUVxr091280@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 77560 >Category: ports >Synopsis: [PATCH] devel/ocaml-extlib: problem with NOPORTDOCS=yes >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 15 15:30:31 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Jun Mukai >Release: FreeBSD 4.10 >Organization: >Environment: FreeBSD verraeter 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Tue Jun 1 14:16:21 JST 2004 mukai@verraeter:/usr/obj/usr/src/sys/VERRAETER i386 >Description: Ocaml-extlib has problem when building with NOPORTDOCS=yes. This is based on the lack of PLIST_SUB in Makefile. >How-To-Repeat: cd /usr/ports/devel/ocaml-extlib make NOPORTDOCS=yes install make deinstall >Fix: diff -ru ocaml-extlib.orig/Makefile ocaml-extlib/Makefile --- ocaml-extlib.orig/Makefile Sun Feb 6 06:11:29 2005 +++ ocaml-extlib/Makefile Wed Feb 16 00:23:41 2005 @@ -20,7 +20,13 @@ ocamlfind:${PORTSDIR}/devel/ocaml-findlib USE_GMAKE= yes -ALL_TARGET= all opt doc +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 -ru ocaml-extlib.orig/pkg-plist ocaml-extlib/pkg-plist --- ocaml-extlib.orig/pkg-plist Wed Nov 3 07:36:10 2004 +++ ocaml-extlib/pkg-plist Tue Feb 15 23:48:09 2005 @@ -106,4 +106,4 @@ %%PORTDOCS%%%%DOCSDIR%%/type_UTF8.html %%PORTDOCS%%%%DOCSDIR%%/type_Unzip.html @dirrm lib/ocaml/site-lib/extlib -@dirrm %%DOCSDIR%% +%%PORTDOCS%%@dirrm %%DOCSDIR%% >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502151525.j1FFPqKE000507>