[106691] trunk/dports/devel/coccinelle/Portfile

g5pw at macports.org g5pw at macports.org
Wed Jun 5 00:55:54 PDT 2013


Revision: 106691
          https://trac.macports.org/changeset/106691
Author:   g5pw at macports.org
Date:     2013-06-05 00:55:54 -0700 (Wed, 05 Jun 2013)
Log Message:
-----------
devel/coccinelle:
  fix homepage (I like it better without the slash at the end)
  add some dependencies and explicitly enable them
  add variant for pcre
  fix python variants

Modified Paths:
--------------
    trunk/dports/devel/coccinelle/Portfile

Modified: trunk/dports/devel/coccinelle/Portfile
===================================================================
--- trunk/dports/devel/coccinelle/Portfile	2013-06-05 07:17:42 UTC (rev 106690)
+++ trunk/dports/devel/coccinelle/Portfile	2013-06-05 07:55:54 UTC (rev 106691)
@@ -5,6 +5,7 @@
 
 name                coccinelle
 version             1.0.0-rc17
+revision            1
 license             GPL-2
 maintainers         g5pw openmaintainer
 
@@ -16,12 +17,14 @@
 
 platforms           darwin
 
-homepage            http://coccinelle.lip6.fr/
+homepage            http://coccinelle.lip6.fr
 
 depends_lib         port:ocaml \
                     port:ocaml-findlib \
+                    port:ocaml-menhir \
+                    port:ocaml-pcre
 
-master_sites        ${homepage}distrib
+master_sites        ${homepage}/distrib
 
 extract.suffix      .tgz
 
@@ -30,46 +33,78 @@
 
 configure.args-append \
                     --enable-release \
-                    --without-python
+                    --disable-dependency-tracking \
+                    --disable-pycaml \
+                    --enable-dynlink \
+                    --enable-camlp4 \
+                    --enable-menhirLib \
+                    --enable-ocaml \
+                    --enable-opt \
+                    --disable-pcre \
+                    --disable-python \
+                    --with-menhir=${prefix}/bin/menhir
 
 # Build optimized version only
 # build.target        opt-only
                     
 variant python26 conflicts python33 python32 python31 python27 description {Build with python 2.6 support} {
     set mypydir ${frameworks_dir}/Python.framework/Versions/2.6
-    configure.args-delete   --without-python
-    configure.args-append   --with-python=${mypydir}/bin/python
+    configure.args-delete   --disable-python
+    configure.args-append   --enable-python \
+                            --with-python=${mypydir}/bin/python
+
+    configure.env-append \
+                        PKG_CONFIG_PATH=${mypydir}/lib/pkgconfig
     depends_lib-append      port:python26
 }
 
 variant python27 conflicts python33 python32 python31 python26 description {Build with python 2.7 support} {
     set mypydir ${frameworks_dir}/Python.framework/Versions/2.7
-    configure.args-delete   --without-python
-    configure.args-append   --with-python=${mypydir}/bin/python
+    configure.args-delete   --disable-python
+    configure.args-append   --enable-python \
+                            -with-python=${mypydir}/bin/python
+    configure.env-append \
+                        PKG_CONFIG_PATH=${mypydir}/lib/pkgconfig
     depends_lib-append      port:python27
 }
 
 variant python31 conflicts python33 python32 python27 python26 description {Build with python 3.1 support} {
     set mypydir ${frameworks_dir}/Python.framework/Versions/3.1
-    configure.args-delete   --without-python
-    configure.args-append   --with-python=${mypydir}/bin/python3
+    configure.args-delete   --disable-python
+    configure.args-append   --enable-python \
+                            --with-python=${mypydir}/bin/python3
+    configure.env-append \
+                        PKG_CONFIG_PATH=${mypydir}/lib/pkgconfig
     depends_lib-append      port:python31
 }
 
 variant python32 conflicts python33 python31 python27 python26 description {Build with python 3.2 support} {
     set mypydir ${frameworks_dir}/Python.framework/Versions/3.2
-    configure.args-delete   --without-python
-    configure.args-append   --with-python=${mypydir}/bin/python3
+    configure.args-delete   --disable-python
+    configure.args-append   --enable-python \
+                            --with-python=${mypydir}/bin/python3
+    configure.env-append \
+                        PKG_CONFIG_PATH=${mypydir}/lib/pkgconfig
     depends_lib-append      port:python32
 }
 
 variant python33 conflicts python32 python31 python27 python26 description {Build with python 3.3 support} {
     set mypydir ${frameworks_dir}/Python.framework/Versions/3.3
-    configure.args-delete   --without-python
-    configure.args-append   --with-python=${mypydir}/bin/python3
+    configure.args-delete   --disable-python
+    configure.args-append   --enable-python \
+                            --with-python=${mypydir}/bin/python3
+    configure.env-append \
+                        PKG_CONFIG_PATH=${mypydir}/lib/pkgconfig
     depends_lib-append      port:python33
 }
 
+variant pcre description {Enable PCRE support} {
+    configure.args-delete   --disable-pcre
+    configure.args-append   --enable-pcre
+
+    depends_lib			    port:pcre
+}
+
 livecheck.type      regex
 livecheck.url       ${homepage}/download.php
 livecheck.regex     "Current version: (\\d+\\.\\d+\\.\\d+(-rc\\d+)?)"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130605/093e7ded/attachment.html>


More information about the macports-changes mailing list