[33406] trunk/dports/lang/ocaml/Portfile

pguyot at kallisys.net pguyot at kallisys.net
Sat Jan 26 02:33:23 PST 2008


Revision: 33406
          http://trac.macosforge.org/projects/macports/changeset/33406
Author:   pguyot at kallisys.net
Date:     2008-01-26 02:33:20 -0800 (Sat, 26 Jan 2008)

Log Message:
-----------
lang/ocaml: update to 3.10.1 which fixes many bugs including compatibility problems with 10.5. added a doc variant as provided by nox@ in #14072

Modified Paths:
--------------
    trunk/dports/lang/ocaml/Portfile

Modified: trunk/dports/lang/ocaml/Portfile
===================================================================
--- trunk/dports/lang/ocaml/Portfile	2008-01-26 10:25:43 UTC (rev 33405)
+++ trunk/dports/lang/ocaml/Portfile	2008-01-26 10:33:20 UTC (rev 33406)
@@ -3,16 +3,22 @@
 PortSystem		1.0
 
 name 			ocaml
-version			3.10.0
+version			3.10.1
+set major_vers	[join [lrange [split ${version} .] 0 1] .]
 platforms		darwin
 maintainers		pguyot at kallisys.net
 categories		lang ml
 description		Objective Caml is an implementation of the ML language
 homepage		http://www.ocaml.org/
-master_sites	http://caml.inria.fr/pub/distrib/ocaml-3.10/
-checksums		md5 5b14fe7ef863ab8295c9b7d428d5e93c \
-				sha1 5c7ee7dd5ac55bee2877ca0ace5ffb044df8efb5 \
-				rmd160 19615743230f0215135eb966f1f08a6a828f9aa4
+master_sites	http://caml.inria.fr/pub/distrib/ocaml-${major_vers}/
+checksums       ocaml-${version}.tar.bz2 \
+					md5 15a8c603b34d466329881285438349ef \
+					sha1 908176ff481fd6ce3ab89a96a76d9b3d7ca8c105 \
+					rmd160 bf5bc105aece26df6460204d5a04e90c0d90d1cb \
+				ocaml-3.10-refman.html.tar.gz \
+					md5 663b31c8ea364a531aa325a5b06a2763 \
+					sha1 491a39ca6ae8a5ae52fb8e07e987e97bba1b9f43 \
+					rmd160 6b4c99a83942563f1571385681d54f4d194507fe
 
 long_description \
 			Objective Caml is an implementation of the ML language, based on \
@@ -21,6 +27,9 @@
 
 use_bzip2			yes
 
+set doc_distname	${name}-${major_vers}-refman
+set docdir			${prefix}/share/doc/${name}-${version}
+
 platform darwin 9 {
 	macosx_deployment_target	10.4
 }
@@ -39,8 +48,8 @@
 					LIBDIR=${destroot}${prefix}/lib/ocaml \
 					MANDIR=${destroot}${prefix}/share/man
 
-# Change "ld.conf" to remove ${destroot} in paths.
 post-destroot {
+	# Change "ld.conf" to remove ${destroot} in paths.
 	reinplace "s:${destroot}::g" ${destroot}${prefix}/lib/ocaml/ld.conf
 }
 
@@ -50,6 +59,25 @@
 	configure.args-delete 	-no-tk
 }
 
+variant doc description {Install extra documentation} {
+	extract.only        ${distfiles}
+	distfiles-append    ${doc_distname}.html.tar.gz
+
+	post-extract {
+		system "tar xzvf ${distpath}/${doc_distname}.html.tar.gz -C ${workpath}"
+	}
+
+	post-destroot {
+		xinstall -d ${destroot}${docdir}
+		xinstall -m 0644 -W ${worksrcpath} Changes LICENSE README ${destroot}${docdir}
+		xinstall -d ${destroot}${docdir}/html/libref
+		eval xinstall -m 0644 [glob ${workpath}/htmlman/libref/*] \
+			${destroot}${docdir}/html/libref
+		eval xinstall -m 0644 [glob ${workpath}/htmlman/*.*] \
+			${destroot}${docdir}/html
+	}
+}
+
 livecheck.check	regex
 livecheck.url	http://caml.inria.fr/news.en.rss
 livecheck.regex	"<title>Objective Caml (.*) released"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080126/3317418c/attachment.html


More information about the macports-changes mailing list