Ticket #18786: devel--caml-sqlite3.patch

File devel--caml-sqlite3.patch, 4.3 KB (added by Damien.Pollet@…, 16 years ago)
  • devel/caml-sqlite3/Portfile

    diff -ruN /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/caml-sqlite3/Portfile devel/caml-sqlite3/Portfile
    old new  
    1 # $Id: Portfile 47078 2009-02-21 18:50:06Z mww@macports.org $
     1# $Id: Portfile 40948 2008-10-18 20:05:04Z ryandesign@macports.org $
    22
    33PortSystem          1.0
    44
    55name                caml-sqlite3
    6 version             1.3.0
    7 categories          devel ml databases
     6version             1.4.0
     7revision            1
     8categories          devel ml
    89maintainers         landonf openmaintainer
    910description         OCaml bindings for SQLite 3
    1011long_description    ${description}
     
    1516
    1617distname            ocaml-sqlite3-${version}
    1718
    18 
    19 checksums           md5     8ed5bebf6fb0dd06acebb82ed242cbb0 \
    20                     sha1    768d90129216578f645d2ba0c28f48889e4426b6 \
    21                     rmd160  105cacd607fbb59f1d9cc3764d76097af1d9c1f5
     19checksums           md5     257b7de04c29dccf9b70d911f89757ad \
     20                    sha1    10e161c3e5572d27d2abeaf65ed5497746d2654a \
     21                    rmd160  cfd9e16a57dd11d6e6854a00550f96a401a22f6b
    2222
    2323depends_lib         port:ocaml \
    2424                    port:caml-findlib \
    2525                    port:sqlite3
    2626
    27 patchfiles          patch-Makefile.in
     27patchfiles          patch-Makefile.in.diff
    2828
    2929configure.args      --with-sqlite3=${prefix}
    3030
     
    3333    file mkdir ${destroot}/${ocaml_site_path}
    3434    file mkdir ${destroot}/${ocaml_site_path}/stublibs
    3535}
     36
     37post-destroot {
     38    xinstall -d -755 ${destroot}${prefix}/share/doc/${name}
     39    eval xinstall -m 644 [glob ${worksrcpath}/doc/*.html] \
     40        ${destroot}/${prefix}/share/doc/${name}
     41}
     42
  • devel/caml-sqlite3/files/patch-Makefile.in

    diff -ruN /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/caml-sqlite3/files/patch-Makefile.in devel/caml-sqlite3/files/patch-Makefile.in
    old new  
    1 --- Makefile.in 2009-02-21 19:26:24.000000000 +0100
    2 +++ Makefile.in 2009-02-21 19:29:07.000000000 +0100
    3 @@ -1,6 +1,6 @@
    4 -prefix=@prefix@
    5 -exec_prefix=@exec_prefix@
    6 -bindir=@bindir@
    7 +prefix=$(DESTDIR)/@prefix@
    8 +exec_prefix=$(DESTDIR)/@exec_prefix@
    9 +bindir=$(DESTDIR)/@bindir@
    10  
    11  HAS_ENABLE_LOAD_EXTENSION=@HAS_ENABLE_LOAD_EXTENSION@
    12  ifeq ($(HAS_ENABLE_LOAD_EXTENSION), true)
    13 @@ -42,9 +42,7 @@
    14  # one in .
    15  install: sqlite3.cma sqlite3.cmxa sqlite3top
    16         [ -f *.so ] && SO_FILES=*.so; \
    17 -       ocamlfind install sqlite3 META sqlite3.cmi sqlite3.mli sqlite3.cma *.cmxa *.a *.cmx $$SO_FILES
    18 -       ocamlfind ocamlmktop -o sqlite3top -package "sqlite3" sqlite3.cma
    19 -       $(INSTALL) sqlite3top $(bindir)/sqlite3top
    20 +       ocamlfind install -ldconf ignore -destdir $(DESTDIR)/`ocamlfind printconf destdir` sqlite3 META sqlite3.cmi sqlite3.mli sqlite3.cma *.cmxa *.a *.cmx $$SO_FILES
    21  
    22  remove: uninstall
    23  uninstall:
  • devel/caml-sqlite3/files/patch-Makefile.in.diff

    diff -ruN /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/caml-sqlite3/files/patch-Makefile.in.diff devel/caml-sqlite3/files/patch-Makefile.in.diff
    old new  
     1--- Makefile.in.orig    2009-02-19 12:47:49.000000000 +0000
     2+++ Makefile.in 2009-02-19 13:04:32.000000000 +0000
     3@@ -1,4 +1,4 @@
     4-prefix=@prefix@
     5+prefix=$(DESTDIR)@prefix@
     6 exec_prefix=@exec_prefix@
     7 bindir=@bindir@
     8 
     9@@ -42,9 +42,7 @@
     10 # one in .
     11 install: sqlite3.cma sqlite3.cmxa sqlite3top
     12        [ -f *.so ] && SO_FILES=*.so; \
     13-       ocamlfind install sqlite3 META sqlite3.cmi sqlite3.mli sqlite3.cma *.cmxa *.a *.cmx $$SO_FILES
     14-       ocamlfind ocamlmktop -o sqlite3top -package "sqlite3" sqlite3.cma
     15-       $(INSTALL) sqlite3top $(bindir)/sqlite3top
     16+       ocamlfind install -ldconf ignore -destdir $(DESTDIR)/`ocamlfind printconf destdir` sqlite3 META sqlite3.cmi sqlite3.mli sqlite3.cma *.cmxa *.a *.cmx $$SO_FILES
     17 
     18 remove: uninstall
     19 uninstall: