From nobody@FreeBSD.org  Tue Feb 15 15:25:52 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id DBEB916A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 15 Feb 2005 15:25:52 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id BFF0543D3F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 15 Feb 2005 15:25:52 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j1FFPqNq000508
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 15 Feb 2005 15:25:52 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j1FFPqKE000507;
	Tue, 15 Feb 2005 15:25:52 GMT
	(envelope-from nobody)
Message-Id: <200502151525.j1FFPqKE000507@www.freebsd.org>
Date: Tue, 15 Feb 2005 15:25:52 GMT
From: Jun Mukai <mukai@jmuk.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] devel/ocaml-extlib: problem with NOPORTDOCS=yes
X-Send-Pr-Version: www-2.3

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 15 15:30:31 GMT 2005
>Closed-Date:    Tue Feb 15 21:52:44 GMT 2005
>Last-Modified:  Tue Feb 15 21:52:44 GMT 2005
>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:
State-Changed-From-To: open->closed 
State-Changed-By: vs 
State-Changed-When: Tue Feb 15 21:52:31 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=77560 
>Unformatted:
