Ticket #63546: xraylib.diff

File xraylib.diff, 3.9 KB (added by joefowler (Joe Fowler), 3 years ago)

Patch to Portfile

  • Portfile

    old new  
    55PortGroup           github 1.0
    66PortGroup           compilers 1.0
    77
    8 github.setup        tschoonj xraylib 3.3.0 xraylib-
     8github.setup        tschoonj xraylib 4.1.1 xraylib-
    99revision            1
    1010
    1111categories          science
     
    2222                    etc. Bindings exist for Perl, Python, Java, Fortran, IDL, \
    2323                    Lua, Ruby, PHP and .NET.
    2424
    25 checksums           rmd160  f690e335bcb41df7a5a32a8c717059886d2bfe34 \
    26                     sha256  a22a73b8d90eb752b034bab1a4cf6abdd81b8c7dc5020bcb22132d2ee7aacd42 \
    27                     size    7662773
     25checksums           rmd160  9293e9c1dcca551bb37ee587928fd46ea33b90a4 \
     26                    sha256  c82447a27d3d2a1887a57e85295a369eef2b7ecdec28010eb5ea90fc09c53ca1 \
     27                    size    13510073
    2828
    2929compilers.choose    fc
    3030compilers.setup
    3131
     32# As the INSTALL file says, the configure script is absent from the
     33# download archive. Generate it with "autoreconf -i".
     34configure.cmd       "autoreconf -i && ./configure"
     35
    3236configure.args      --disable-idl \
    3337                    --disable-fortran2003 \
    3438                    --disable-perl \
     
    5660    depends_build-append port:swig-perl
    5761}
    5862
    59 variant python27 description {Python 2.7 bindings} conflicts python37 python38 {
     63variant python27 description {Python 2.7 bindings} conflicts python37 python38 python39 {
    6064    configure.args-append --enable-python --enable-python-integration --enable-python-numpy PYTHON=${prefix}/bin/python2.7
    6165    configure.args-delete --disable-python --disable-python-numpy
    6266    depends_build-append port:swig-python port:py27-cython
    6367    depends_lib-append port:python27 port:py27-numpy
    64     post-extract {
    65         reinplace "s|/usr/bin/env python|${prefix}/bin/python2.7|g" ${worksrcpath}/python/xraylib
    66     }
    6768}
    6869
    69 variant python37 description {Python 3.7 bindings} conflicts python27 python38 {
     70variant python37 description {Python 3.7 bindings} conflicts python27 python38 python39 {
    7071    configure.args-append --enable-python --enable-python-integration --enable-python-numpy PYTHON=${prefix}/bin/python3.7
    7172    configure.args-delete --disable-python --disable-python-numpy
    7273    depends_build-append port:swig-python port:py37-cython
    7374    depends_lib-append port:python37 port:py37-numpy
    74     post-extract {
    75         reinplace "s|/usr/bin/env python|${prefix}/bin/python3.7|g" ${worksrcpath}/python/xraylib
    76     }
    7775}
    7876
    79 variant python38 description {Python 3.8 bindings} conflicts python27 python37 {
     77variant python38 description {Python 3.8 bindings} conflicts python27 python37 python39 {
    8078    configure.args-append --enable-python --enable-python-integration --enable-python-numpy PYTHON=${prefix}/bin/python3.8
    8179    configure.args-delete --disable-python --disable-python-numpy
    8280    depends_build-append port:swig-python port:py38-cython
    8381    depends_lib-append port:python38 port:py38-numpy
    84     post-extract {
    85         reinplace "s|/usr/bin/env python|${prefix}/bin/python3.8|g" ${worksrcpath}/python/xraylib
    86     }
     82}
     83
     84variant python39 description {Python 3.8 bindings} conflicts python27 python37 python38 {
     85    configure.args-append --enable-python --enable-python-integration --enable-python-numpy PYTHON=${prefix}/bin/python3.9
     86    configure.args-delete --disable-python --disable-python-numpy
     87    depends_build-append port:swig-python port:py39-cython
     88    depends_lib-append port:python39 port:py39-numpy
    8789}
    8890
    8991variant ruby24 description {Ruby 2.4 bindings} conflicts ruby25 ruby26 {
     
    122124    configure.args-replace --disable-fortran2003 --enable-fortran2003
    123125}
    124126
    125 if {![variant_isset python27] && ![variant_isset python37] && ![variant_isset python38]} {
     127if {![variant_isset python27] && ![variant_isset python37] && ![variant_isset python38] && ![variant_isset python39]} {
    126128    default_variants    +python38
    127129}
    128130