ports/77560: [PATCH] devel/ocaml-extlib: problem with NOPORTDOCS=yes
Jun Mukai
mukai at jmuk.org
Tue Feb 15 15:30:47 UTC 2005
>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 at 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
- at dirrm %%DOCSDIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list