[38735] trunk/dports/devel
landonf at macports.org
landonf at macports.org
Tue Jul 29 14:10:33 PDT 2008
Revision: 38735
http://trac.macosforge.org/projects/macports/changeset/38735
Author: landonf at macports.org
Date: 2008-07-29 14:10:33 -0700 (Tue, 29 Jul 2008)
Log Message:
-----------
OCaml sqlite3 bindings
Added Paths:
-----------
trunk/dports/devel/caml-sqlite3/
trunk/dports/devel/caml-sqlite3/Portfile
trunk/dports/devel/caml-sqlite3/files/
trunk/dports/devel/caml-sqlite3/files/patch-Makefile.in
Added: trunk/dports/devel/caml-sqlite3/Portfile
===================================================================
--- trunk/dports/devel/caml-sqlite3/Portfile (rev 0)
+++ trunk/dports/devel/caml-sqlite3/Portfile 2008-07-29 21:10:33 UTC (rev 38735)
@@ -0,0 +1,35 @@
+# $Id: $
+
+PortSystem 1.0
+
+name caml-sqlite3
+version 1.2.0
+categories devel ml
+maintainers landonf openmaintainer
+description OCaml bindings for SQLite 3
+long_description ${description}
+
+homepage http://www.ocaml.info/home/ocaml_sources.html
+platforms darwin
+master_sites http://www.ocaml.info/ocaml_sources/
+
+distname ocaml-sqlite3-${version}
+
+
+checksums md5 9e77953ff4b8e2a22532c82ecc6ad74f \
+ sha1 58137eba5430d7f3457c21db5538b404285be76a \
+ rmd160 5d610292dd1902dc0e0f847792bc3c8e991a502c
+
+depends_lib port:ocaml \
+ port:caml-findlib \
+ port:sqlite3
+
+patchfiles patch-Makefile.in
+
+configure.args --with-sqlite3=${prefix}
+
+pre-destroot {
+ set ocaml_site_path [exec ocamlfind printconf destdir]
+ file mkdir ${destroot}/${ocaml_site_path}
+ file mkdir ${destroot}/${ocaml_site_path}/stub-libs
+}
Added: trunk/dports/devel/caml-sqlite3/files/patch-Makefile.in
===================================================================
--- trunk/dports/devel/caml-sqlite3/files/patch-Makefile.in (rev 0)
+++ trunk/dports/devel/caml-sqlite3/files/patch-Makefile.in 2008-07-29 21:10:33 UTC (rev 38735)
@@ -0,0 +1,25 @@
+--- Makefile.in.orig 2008-07-29 14:02:04.000000000 -0700
++++ Makefile.in 2008-07-29 14:03:32.000000000 -0700
+@@ -1,8 +1,8 @@
+ OCFLAGS=-pp camlp4o
+
+-prefix=@prefix@
+-exec_prefix=@exec_prefix@
+-bindir=@bindir@
++prefix=$(DESTDIR)/@prefix@
++exec_prefix=$(DESTDIR)/@exec_prefix@
++bindir=$(DESTDIR)/@bindir@
+
+ CC=@CC@
+ CFLAGS=@CPPFLAGS@ @CFLAGS@ -fPIC -Wall -pedantic -Werror -Wno-long-long
+@@ -35,9 +35,7 @@
+ # one in .
+ install: sqlite3.cma sqlite3.cmxa sqlite3top
+ [ -f *.so ] && SO_FILES=*.so; \
+- ocamlfind install sqlite3 META sqlite3.cmi sqlite3.mli sqlite3.cma *.cmxa *.a *.cmx $$SO_FILES
+- ocamlfind ocamlmktop -o sqlite3top -package "sqlite3" sqlite3.cma
+- $(INSTALL) sqlite3top $(bindir)/sqlite3top
++ ocamlfind install -ldconf ignore -destdir $(DESTDIR)/`ocamlfind printconf destdir` sqlite3 META sqlite3.cmi sqlite3.mli sqlite3.cma *.cmxa *.a *.cmx $$SO_FILES
+
+ remove: uninstall
+ uninstall:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080729/4c7ff4d7/attachment.html
More information about the macports-changes
mailing list