[53343] trunk/dports/devel
erickt at macports.org
erickt at macports.org
Fri Jul 3 14:07:06 PDT 2009
Revision: 53343
http://trac.macports.org/changeset/53343
Author: erickt at macports.org
Date: 2009-07-03 14:07:06 -0700 (Fri, 03 Jul 2009)
Log Message:
-----------
Add portfile for camlzip.
Added Paths:
-----------
trunk/dports/devel/caml-camlzip/
trunk/dports/devel/caml-camlzip/Portfile
trunk/dports/devel/caml-camlzip/files/
trunk/dports/devel/caml-camlzip/files/META
trunk/dports/devel/caml-camlzip/files/Makefile.diff
Added: trunk/dports/devel/caml-camlzip/Portfile
===================================================================
--- trunk/dports/devel/caml-camlzip/Portfile (rev 0)
+++ trunk/dports/devel/caml-camlzip/Portfile 2009-07-03 21:07:06 UTC (rev 53343)
@@ -0,0 +1,42 @@
+# $Id$
+
+PortSystem 1.0
+name caml-camlzip
+version 1.04
+categories devel ml
+maintainers erickt openmaintainer
+description Automated code generation for converting OCaml-values to S-expressions
+homepage http://cristal.inria.fr/~xleroy/software.html
+platforms darwin
+
+master_sites http://caml.inria.fr/distrib/bazar-ocaml
+distfiles camlzip-${version}.tar.gz
+worksrcdir camlzip-${version}
+
+checksums md5 b3930f4f2e2563b9a5e1b17aa455e635 \
+ sha1 43660307fba6243bf2e2e0c8c6ac078477c9d9f9 \
+ rmd160 37a1aae1f84ee30c5f2f0ee2e4b603bf2b5bf397
+
+depends_lib port:ocaml port:caml-findlib
+
+patchfiles Makefile.diff
+
+post-patch {
+ file copy ${filespath}/META ${worksrcpath}
+}
+
+use_configure no
+
+build.env PREFIX=${prefix}
+build.target all allopt
+
+set ocamlfind_destdir ${destroot}[exec ocamlfind printconf destdir]
+destroot.env OCAMLFIND_INSTFLAGS="-ldconf ignore -destdir $ocamlfind_destdir"
+destroot.target ocamlfind-install
+
+pre-destroot {
+ file mkdir $ocamlfind_destdir
+}
+
+livecheck.check regex
+livecheck.regex "camlzip-(.*?).tar.gz"
Added: trunk/dports/devel/caml-camlzip/files/META
===================================================================
--- trunk/dports/devel/caml-camlzip/files/META (rev 0)
+++ trunk/dports/devel/caml-camlzip/files/META 2009-07-03 21:07:06 UTC (rev 53343)
@@ -0,0 +1,6 @@
+name="zip"
+version="1.04"
+description="reading and writing ZIP, JAR and GZIP files"
+requires="unix"
+archive(byte)="zip.cma"
+archive(native)="zip.cmxa"
Added: trunk/dports/devel/caml-camlzip/files/Makefile.diff
===================================================================
--- trunk/dports/devel/caml-camlzip/files/Makefile.diff (rev 0)
+++ trunk/dports/devel/caml-camlzip/files/Makefile.diff 2009-07-03 21:07:06 UTC (rev 53343)
@@ -0,0 +1,12 @@
+--- Makefile 2002-04-22 08:28:57.000000000 -0700
++++ Makefile 2009-07-03 12:06:22.000000000 -0700
+@@ -68,6 +68,9 @@
+ installopt:
+ cp zip.cmxa zip.a zip.cmx gzip.cmx $(INSTALLDIR)
+
++ocamlfind-install: all allopt
++ ocamlfind install $(OCAMLFIND_INSTFLAGS) zip META gzip.cmi gzip.cmx gzip.mli libcamlzip.a zip.a zip.cma zip.cmi zip.cmx zip.cmxa zip.mli zlib.cmi zlib.mli dllcamlzip.so
++
+ depend:
+ gcc -MM -I$(ZLIB_INCLUDE) *.c > .depend
+ ocamldep *.mli *.ml >> .depend
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090703/14c009c0/attachment.html>
More information about the macports-changes
mailing list