Ticket #36220: Portfile.diff

File Portfile.diff, 2.4 KB (added by Tom.Schoonjans@…, 12 years ago)
  • Portfile

    old new  
    55
    66name                xraylib
    77version             2.16.0
     8revision            1
    89categories          science
    910platforms           darwin
    1011maintainers         me.com:Tom.Schoonjans
     
    2526checksums           rmd160  3b9a0db5fe2ae285cd364478c9e8c3d76e855069 \
    2627                    sha256 91ccbd25338c00027d58ee13239375926a0e106d9b883d1c927e846e035e276c
    2728
     29patchfiles          patch-configure.diff \
     30                    patch-m4-m4-ax_python_devel.m4.diff \
     31                    patch-python-Makefile.am.diff \
     32                    patch-python-Makefile.in.diff
     33
     34patch.pre_args      -p1
     35
    2836configure.args      --disable-idl \
    2937                    --disable-fortran2003 \
    3038                    --disable-perl \
     
    4250    depends_build-append port:swig-perl
    4351}
    4452
    45 variant python description {Python bindings} {
    46     configure.args-append --enable-python --enable-python-integration
     53variant python26 description {Python2.6 bindings} conflicts python27 python31 python32 {
     54    configure.args-append --enable-python --enable-python-integration PYTHON=${prefix}/bin/python2.6
     55    configure.args-delete --disable-python
     56    depends_build-append port:swig-python
     57    depends_lib-append port:python26
     58}
     59
     60variant python27 description {Python2.7 bindings} conflicts python26 python31 python32 {
     61    configure.args-append --enable-python --enable-python-integration PYTHON=${prefix}/bin/python2.7
     62    configure.args-delete --disable-python
     63    depends_build-append port:swig-python
     64    depends_lib-append port:python27
     65}
     66
     67variant python31 description {Python3.1 bindings} conflicts python27 python26 python32 {
     68    configure.args-append --enable-python --enable-python-integration PYTHON=${prefix}/bin/python3.1
     69    configure.args-delete --disable-python
     70    depends_build-append port:swig-python
     71    depends_lib-append port:python31
     72}
     73
     74variant python32 description {Python3.2 bindings} conflicts python27 python31 python26 {
     75    configure.args-append --enable-python --enable-python-integration PYTHON=${prefix}/bin/python3.2
    4776    configure.args-delete --disable-python
    4877    depends_build-append port:swig-python
     78    depends_lib-append port:python32
    4979}
    5080
    5181variant java description {Java bindings} {
     
    96126    configure.fc ${prefix}/bin/gfortran-mp-4.7
    97127}
    98128
    99 default_variants    +python
     129default_variants    +python27