Bug 77560

Summary: [PATCH] devel/ocaml-extlib: problem with NOPORTDOCS=yes
Product: Ports & Packages Reporter: Jun Mukai <mukai>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff
none
file.diff none

Description Jun Mukai 2005-02-15 15:30:31 UTC
Ocaml-extlib has problem when building with NOPORTDOCS=yes.
This is based on the lack of PLIST_SUB in Makefile.

Fix: 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:
How-To-Repeat:  cd /usr/ports/devel/ocaml-extlib
make NOPORTDOCS=yes install
make deinstall
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2005-02-15 21:52:31 UTC
State Changed
From-To: open->closed

Committed, thanks!