[95926] trunk/dports/devel/ocaml-pcre

mww at macports.org mww at macports.org
Thu Jul 26 11:20:58 PDT 2012


Revision: 95926
          https://trac.macports.org/changeset/95926
Author:   mww at macports.org
Date:     2012-07-26 11:20:58 -0700 (Thu, 26 Jul 2012)
Log Message:
-----------
ocaml-pcre: version 7.0.2

Modified Paths:
--------------
    trunk/dports/devel/ocaml-pcre/Portfile

Removed Paths:
-------------
    trunk/dports/devel/ocaml-pcre/files/

Modified: trunk/dports/devel/ocaml-pcre/Portfile
===================================================================
--- trunk/dports/devel/ocaml-pcre/Portfile	2012-07-26 18:02:21 UTC (rev 95925)
+++ trunk/dports/devel/ocaml-pcre/Portfile	2012-07-26 18:20:58 UTC (rev 95926)
@@ -1,10 +1,10 @@
 # $Id$
 
 PortSystem 1.0
+PortGroup           ocaml 1.0
 
 name                ocaml-pcre
-version             6.2.5
-revision            1
+version             7.0.2
 categories          devel ml
 maintainers         landonf openmaintainer
 license             LGPL-2.1
@@ -16,11 +16,10 @@
 
 homepage            http://www.ocaml.info/home/ocaml_sources.html
 platforms           darwin
-master_sites        http://www.ocaml.info/ocaml_sources/
+master_sites        https://bitbucket.org/mmottl/pcre-ocaml/downloads/
 
-checksums           md5     a6f8873bbf5d2d0897654cc35fa59a42 \
-                    sha1    921094ba7a810a364c119d1099952551c90d19ec \
-                    rmd160  3cb71ae407e1396ab83fa08df9fcd41aacba817f
+checksums           rmd160  cd0f6c62b2c6d42597fdd02bda39e976d77bda0e \
+                    sha256  052a2fdd8da597724ac8ca474fdd40772b461888e3ff8ef75cc71e43a65766ea
 
 distname            pcre-ocaml-${version}
 
@@ -29,48 +28,15 @@
 
 depends_lib         port:ocaml port:ocaml-findlib port:pcre
 
-patchfiles          patch-OCamlMakefile patch-Makefile.conf
+use_oasis           yes
+use_oasis_doc       yes
 
-use_configure       no
-use_parallel_build  no
+configure.args-append "--override docdir ${destroot}${prefix}/share/doc/${name}"
 
-proc ocamlfind_destdir {} {
-    # only bother calculating this darn thing once
-    variable ocamlfind_destdir {}
-    variable destroot
-    variable prefix
-    if {![string length $ocamlfind_destdir]} {
-        set ocamlfind_destdir ${destroot}[exec ${prefix}/bin/ocamlfind printconf destdir]
-    }
-    return $ocamlfind_destdir
-}
-
-pre-build {
-        reinplace "s|##OCAMLFIND_INSTFLAGS##|-destdir '[ocamlfind_destdir]' -metadir ''|" ${worksrcpath}/OCamlMakefile
-        reinplace "s|##PREFIX##|${prefix}|g" ${worksrcpath}/Makefile.conf
-}
-
-build.env-append    CC=${configure.cc}
-
-pre-destroot {
-        file mkdir "[ocamlfind_destdir]/stublibs"
-}
-
 post-destroot {
-        # install the doc/examples dirs if we built them
-        if {[variant_isset doc]} then {
-            file copy ${worksrcpath}/lib/doc/pcre [ocamlfind_destdir]/pcre/pcre-doc
-        }
-        if {[variant_isset examples]} then {
-            file copy ${worksrcpath}/examples [ocamlfind_destdir]/pcre/pcre-examples
-        }
+    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 644 -W ${worksrcpath} AUTHORS.txt CHANGES.txt COPYING.txt INSTALL.txt \
+         ${destroot}${prefix}/share/doc/${name}
+    file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}
 }
 
-variant doc description "Include documentation (requires TeX and Ghostscript)" {
-        build.target-append     doc
-        depends_lib-append      port:ghostscript bin:tex:texlive
-}
-
-variant examples description "Build examples" {
-        build.target-append     examples
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120726/e376795c/attachment.html>


More information about the macports-changes mailing list