Ignore:
Timestamp:
Jun 5, 2013, 7:55:54 AM (6 years ago)
Author:
g5pw@…
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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/coccinelle/Portfile

    r105643 r106691  
    66name                coccinelle
    77version             1.0.0-rc17
     8revision            1
    89license             GPL-2
    910maintainers         g5pw openmaintainer
     
    1718platforms           darwin
    1819
    19 homepage            http://coccinelle.lip6.fr/
     20homepage            http://coccinelle.lip6.fr
    2021
    2122depends_lib         port:ocaml \
    2223                    port:ocaml-findlib \
     24                    port:ocaml-menhir \
     25                    port:ocaml-pcre
    2326
    24 master_sites        ${homepage}distrib
     27master_sites        ${homepage}/distrib
    2528
    2629extract.suffix      .tgz
     
    3134configure.args-append \
    3235                    --enable-release \
    33                     --without-python
     36                    --disable-dependency-tracking \
     37                    --disable-pycaml \
     38                    --enable-dynlink \
     39                    --enable-camlp4 \
     40                    --enable-menhirLib \
     41                    --enable-ocaml \
     42                    --enable-opt \
     43                    --disable-pcre \
     44                    --disable-python \
     45                    --with-menhir=${prefix}/bin/menhir
    3446
    3547# Build optimized version only
     
    3850variant python26 conflicts python33 python32 python31 python27 description {Build with python 2.6 support} {
    3951    set mypydir ${frameworks_dir}/Python.framework/Versions/2.6
    40     configure.args-delete   --without-python
    41     configure.args-append   --with-python=${mypydir}/bin/python
     52    configure.args-delete   --disable-python
     53    configure.args-append   --enable-python \
     54                            --with-python=${mypydir}/bin/python
     55
     56    configure.env-append \
     57                        PKG_CONFIG_PATH=${mypydir}/lib/pkgconfig
    4258    depends_lib-append      port:python26
    4359}
     
    4561variant python27 conflicts python33 python32 python31 python26 description {Build with python 2.7 support} {
    4662    set mypydir ${frameworks_dir}/Python.framework/Versions/2.7
    47     configure.args-delete   --without-python
    48     configure.args-append   --with-python=${mypydir}/bin/python
     63    configure.args-delete   --disable-python
     64    configure.args-append   --enable-python \
     65                            -with-python=${mypydir}/bin/python
     66    configure.env-append \
     67                        PKG_CONFIG_PATH=${mypydir}/lib/pkgconfig
    4968    depends_lib-append      port:python27
    5069}
     
    5271variant python31 conflicts python33 python32 python27 python26 description {Build with python 3.1 support} {
    5372    set mypydir ${frameworks_dir}/Python.framework/Versions/3.1
    54     configure.args-delete   --without-python
    55     configure.args-append   --with-python=${mypydir}/bin/python3
     73    configure.args-delete   --disable-python
     74    configure.args-append   --enable-python \
     75                            --with-python=${mypydir}/bin/python3
     76    configure.env-append \
     77                        PKG_CONFIG_PATH=${mypydir}/lib/pkgconfig
    5678    depends_lib-append      port:python31
    5779}
     
    5981variant python32 conflicts python33 python31 python27 python26 description {Build with python 3.2 support} {
    6082    set mypydir ${frameworks_dir}/Python.framework/Versions/3.2
    61     configure.args-delete   --without-python
    62     configure.args-append   --with-python=${mypydir}/bin/python3
     83    configure.args-delete   --disable-python
     84    configure.args-append   --enable-python \
     85                            --with-python=${mypydir}/bin/python3
     86    configure.env-append \
     87                        PKG_CONFIG_PATH=${mypydir}/lib/pkgconfig
    6388    depends_lib-append      port:python32
    6489}
     
    6691variant python33 conflicts python32 python31 python27 python26 description {Build with python 3.3 support} {
    6792    set mypydir ${frameworks_dir}/Python.framework/Versions/3.3
    68     configure.args-delete   --without-python
    69     configure.args-append   --with-python=${mypydir}/bin/python3
     93    configure.args-delete   --disable-python
     94    configure.args-append   --enable-python \
     95                            --with-python=${mypydir}/bin/python3
     96    configure.env-append \
     97                        PKG_CONFIG_PATH=${mypydir}/lib/pkgconfig
    7098    depends_lib-append      port:python33
     99}
     100
     101variant pcre description {Enable PCRE support} {
     102    configure.args-delete   --disable-pcre
     103    configure.args-append   --enable-pcre
     104
     105    depends_lib                     port:pcre
    71106}
    72107
Note: See TracChangeset for help on using the changeset viewer.