Ticket #39263: Portfile.diff

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

    old new  
    55PortGroup           github 1.0
    66
    77github.setup        tschoonj xraylib 2.16.0 xraylib-
    8 revision            1
     8revision            2
    99categories          science
    1010platforms           darwin
    1111license             BSD
     
    2727checksums           rmd160  3b9a0db5fe2ae285cd364478c9e8c3d76e855069 \
    2828                    sha256 91ccbd25338c00027d58ee13239375926a0e106d9b883d1c927e846e035e276c
    2929
    30 patchfiles          patch-configure.diff \
    31                     patch-m4-m4-ax_python_devel.m4.diff \
    32                     patch-python-Makefile.am.diff \
    33                     patch-python-Makefile.in.diff
     30patchfiles          configure.ac.diff \
     31                    python_xrlsetup.py.in.diff \
     32                    xraylib.i.diff
    3433
    3534patch.pre_args      -p1
    3635
     
    4544use_parallel_build  no
    4645configure.ccache    no
    4746
     47use_autoreconf      yes
     48
    4849variant perl description {Perl bindings} {
    4950    configure.args-append --enable-perl
    5051    configure.args-delete --disable-perl
    5152    depends_build-append port:swig-perl
    5253}
    5354
    54 variant python26 description {Python2.6 bindings} conflicts python27 python31 python32 {
     55variant python26 description {Python2.6 bindings} conflicts python27 python31 python32 python33 {
    5556    configure.args-append --enable-python --enable-python-integration PYTHON=${prefix}/bin/python2.6
    5657    configure.args-delete --disable-python
    5758    depends_build-append port:swig-python
    5859    depends_lib-append port:python26
    5960}
    6061
    61 variant python27 description {Python2.7 bindings} conflicts python26 python31 python32 {
     62variant python27 description {Python2.7 bindings} conflicts python26 python31 python32 python33 {
    6263    configure.args-append --enable-python --enable-python-integration PYTHON=${prefix}/bin/python2.7
    6364    configure.args-delete --disable-python
    6465    depends_build-append port:swig-python
    6566    depends_lib-append port:python27
    6667}
    6768
    68 variant python31 description {Python3.1 bindings} conflicts python27 python26 python32 {
     69variant python31 description {Python3.1 bindings} conflicts python27 python26 python32 python33 {
    6970    configure.args-append --enable-python --enable-python-integration PYTHON=${prefix}/bin/python3.1
    7071    configure.args-delete --disable-python
    7172    depends_build-append port:swig-python
    7273    depends_lib-append port:python31
    7374}
    7475
    75 variant python32 description {Python3.2 bindings} conflicts python27 python31 python26 {
     76variant python32 description {Python3.2 bindings} conflicts python27 python31 python26 python33 {
    7677    configure.args-append --enable-python --enable-python-integration PYTHON=${prefix}/bin/python3.2
    7778    configure.args-delete --disable-python
    7879    depends_build-append port:swig-python
    7980    depends_lib-append port:python32
    8081}
    8182
     83variant python33 description {Python3.3 bindings} conflicts python27 python31 python26 python32 {
     84    configure.args-append --enable-python --enable-python-integration PYTHON=${prefix}/bin/python3.3
     85    configure.args-delete --disable-python
     86    depends_build-append port:swig-python
     87    depends_lib-append port:python32
     88}
     89
    8290variant java description {Java bindings} {
    8391    configure.args-append --enable-java
    8492    configure.args-delete --disable-java
     
    92100    depends_lib-append port:lua
    93101}
    94102
    95 variant gcc44 description {build with gfortran from gcc44} conflicts gcc45 g95 gcc46 gcc47 {
     103variant gcc44 description {build with gfortran from gcc44} conflicts gcc45 gcc46 gcc47 gcc48 {
    96104    configure.args-append --enable-fortran2003
    97105    configure.args-delete --disable-fortran2003
    98106    depends_lib-append port:gcc44
    99107    configure.fc ${prefix}/bin/gfortran-mp-4.4
    100108}
    101109
    102 variant gcc45 description {build with gfortran from gcc45} conflicts gcc44 g95 gcc46 gcc47 {
     110variant gcc45 description {build with gfortran from gcc45} conflicts gcc44 gcc46 gcc47 gcc48 {
    103111    configure.args-append --enable-fortran2003
    104112    configure.args-delete --disable-fortran2003
    105113    depends_lib-append port:gcc45
    106114    configure.fc ${prefix}/bin/gfortran-mp-4.5
    107115}
    108116
    109 variant g95 description {build with g95} conflicts gcc44 gcc45 gcc46 gcc47 {
    110     configure.args-append --enable-fortran2003
    111     configure.args-delete --disable-fortran2003
    112     depends_lib-append port:g95
    113     configure.fc ${prefix}/bin/g95
    114 }
    115 
    116 variant gcc46 description {build with gfortran from gcc46} conflicts gcc44 g95 gcc45 gcc47 {
     117variant gcc46 description {build with gfortran from gcc46} conflicts gcc44 gcc45 gcc47 gcc48 {
    117118    configure.args-append --enable-fortran2003
    118119    configure.args-delete --disable-fortran2003
    119120    depends_lib-append port:gcc46
    120121    configure.fc ${prefix}/bin/gfortran-mp-4.6
    121122}
    122123
    123 variant gcc47 description {build with gfortran from gcc47} conflicts gcc44 g95 gcc45 gcc46 {
     124variant gcc47 description {build with gfortran from gcc47} conflicts gcc44 gcc45 gcc46 gcc48 {
    124125    configure.args-append --enable-fortran2003
    125126    configure.args-delete --disable-fortran2003
    126127    depends_lib-append port:gcc47
    127128    configure.fc ${prefix}/bin/gfortran-mp-4.7
    128129}
    129130
    130 if {![variant_isset python26] && ![variant_isset python27] && ![variant_isset python31] && ![variant_isset python32]} {
     131variant gcc48 description {build with gfortran from gcc48} conflicts gcc44 gcc45 gcc46 gcc47 {
     132    configure.args-append --enable-fortran2003
     133    configure.args-delete --disable-fortran2003
     134    depends_lib-append port:gcc48
     135    configure.fc ${prefix}/bin/gfortran-mp-4.8
     136}
     137
     138if {![variant_isset python26] && ![variant_isset python27] && ![variant_isset python31] && ![variant_isset python32] && ![variant_isset python33]} {
    131139    default_variants    +python27
    132140}
    133141