Ticket #46337: coccinelle-python.patch

File coccinelle-python.patch, 3.4 KB (added by larryv (Lawrence Velázquez), 9 years ago)

remove all Python variants except 2.7 and 3.4

  • dports/devel/coccinelle/Portfile

    diff --git a/dports/devel/coccinelle/Portfile b/dports/devel/coccinelle/Portfile
    index a5c1140..1dc060c 100644
    a b PortSystem 1.0 
    55
    66name                coccinelle
    77version             1.0.0-rc21
     8revision            1
    89license             GPL-2
    910maintainers         g5pw openmaintainer
    1011
    configure.args-append \ 
    4546# Build optimized version only
    4647# build.target        opt-only
    4748                   
    48 variant python26 conflicts python33 python32 python31 python27 description {Build with python 2.6 support} {
    49     set mypydir ${frameworks_dir}/Python.framework/Versions/2.6
    50     configure.args-delete   --disable-python
    51     configure.args-append   --enable-python \
    52                             --with-python=${mypydir}/bin/python
    53 
    54     configure.env-append \
    55                         PKG_CONFIG_PATH=${mypydir}/lib/pkgconfig
    56     depends_lib-append      port:python26
    57 }
     49# TODO: Remove after 2015-12-26.
     50variant python26 requires python27 description {Legacy variant} {}
     51variant python31 requires python34 description {Legacy variant} {}
     52variant python32 requires python34 description {Legacy variant} {}
     53variant python33 requires python34 description {Legacy variant} {}
    5854
    59 variant python27 conflicts python33 python32 python31 python26 description {Build with python 2.7 support} {
     55variant python27 conflicts python34 description {Build with python 2.7 support} {
    6056    set mypydir ${frameworks_dir}/Python.framework/Versions/2.7
    6157    configure.args-delete   --disable-python
    6258    configure.args-append   --enable-python \
    variant python27 conflicts python33 python32 python31 python26 description {Buil 
    6662    depends_lib-append      port:python27
    6763}
    6864
    69 variant python31 conflicts python33 python32 python27 python26 description {Build with python 3.1 support} {
    70     set mypydir ${frameworks_dir}/Python.framework/Versions/3.1
    71     configure.args-delete   --disable-python
    72     configure.args-append   --enable-python \
    73                             --with-python=${mypydir}/bin/python3
    74     configure.env-append \
    75                         PKG_CONFIG_PATH=${mypydir}/lib/pkgconfig
    76     depends_lib-append      port:python31
    77 }
    78 
    79 variant python32 conflicts python33 python31 python27 python26 description {Build with python 3.2 support} {
    80     set mypydir ${frameworks_dir}/Python.framework/Versions/3.2
    81     configure.args-delete   --disable-python
    82     configure.args-append   --enable-python \
    83                             --with-python=${mypydir}/bin/python3
    84     configure.env-append \
    85                         PKG_CONFIG_PATH=${mypydir}/lib/pkgconfig
    86     depends_lib-append      port:python32
    87 }
    88 
    89 variant python33 conflicts python32 python31 python27 python26 description {Build with python 3.3 support} {
    90     set mypydir ${frameworks_dir}/Python.framework/Versions/3.3
     65variant python34 conflicts python27 description {Build with python 3.4 support} {
     66    set mypydir ${frameworks_dir}/Python.framework/Versions/3.4
    9167    configure.args-delete   --disable-python
    9268    configure.args-append   --enable-python \
    9369                            --with-python=${mypydir}/bin/python3
    9470    configure.env-append \
    9571                        PKG_CONFIG_PATH=${mypydir}/lib/pkgconfig
    96     depends_lib-append      port:python33
     72    depends_lib-append      port:python34
    9773}
    9874
    9975variant pcre description {Enable PCRE support} {