Ticket #63546: xraylib.diff
File xraylib.diff, 3.9 KB (added by joefowler (Joe Fowler), 3 years ago) |
---|
-
Portfile
old new 5 5 PortGroup github 1.0 6 6 PortGroup compilers 1.0 7 7 8 github.setup tschoonj xraylib 3.3.0xraylib-8 github.setup tschoonj xraylib 4.1.1 xraylib- 9 9 revision 1 10 10 11 11 categories science … … 22 22 etc. Bindings exist for Perl, Python, Java, Fortran, IDL, \ 23 23 Lua, Ruby, PHP and .NET. 24 24 25 checksums rmd160 f690e335bcb41df7a5a32a8c717059886d2bfe34 \26 sha256 a22a73b8d90eb752b034bab1a4cf6abdd81b8c7dc5020bcb22132d2ee7aacd42\27 size 766277325 checksums rmd160 9293e9c1dcca551bb37ee587928fd46ea33b90a4 \ 26 sha256 c82447a27d3d2a1887a57e85295a369eef2b7ecdec28010eb5ea90fc09c53ca1 \ 27 size 13510073 28 28 29 29 compilers.choose fc 30 30 compilers.setup 31 31 32 # As the INSTALL file says, the configure script is absent from the 33 # download archive. Generate it with "autoreconf -i". 34 configure.cmd "autoreconf -i && ./configure" 35 32 36 configure.args --disable-idl \ 33 37 --disable-fortran2003 \ 34 38 --disable-perl \ … … 56 60 depends_build-append port:swig-perl 57 61 } 58 62 59 variant python27 description {Python 2.7 bindings} conflicts python37 python38 {63 variant python27 description {Python 2.7 bindings} conflicts python37 python38 python39 { 60 64 configure.args-append --enable-python --enable-python-integration --enable-python-numpy PYTHON=${prefix}/bin/python2.7 61 65 configure.args-delete --disable-python --disable-python-numpy 62 66 depends_build-append port:swig-python port:py27-cython 63 67 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/xraylib66 }67 68 } 68 69 69 variant python37 description {Python 3.7 bindings} conflicts python27 python38 {70 variant python37 description {Python 3.7 bindings} conflicts python27 python38 python39 { 70 71 configure.args-append --enable-python --enable-python-integration --enable-python-numpy PYTHON=${prefix}/bin/python3.7 71 72 configure.args-delete --disable-python --disable-python-numpy 72 73 depends_build-append port:swig-python port:py37-cython 73 74 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/xraylib76 }77 75 } 78 76 79 variant python38 description {Python 3.8 bindings} conflicts python27 python37 {77 variant python38 description {Python 3.8 bindings} conflicts python27 python37 python39 { 80 78 configure.args-append --enable-python --enable-python-integration --enable-python-numpy PYTHON=${prefix}/bin/python3.8 81 79 configure.args-delete --disable-python --disable-python-numpy 82 80 depends_build-append port:swig-python port:py38-cython 83 81 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 84 variant 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 87 89 } 88 90 89 91 variant ruby24 description {Ruby 2.4 bindings} conflicts ruby25 ruby26 { … … 122 124 configure.args-replace --disable-fortran2003 --enable-fortran2003 123 125 } 124 126 125 if {![variant_isset python27] && ![variant_isset python37] && ![variant_isset python38] } {127 if {![variant_isset python27] && ![variant_isset python37] && ![variant_isset python38] && ![variant_isset python39]} { 126 128 default_variants +python38 127 129 } 128 130