Changeset 117556


Ignore:
Timestamp:
Mar 3, 2014, 5:06:11 PM (7 years ago)
Author:
larryv@…
Message:

xraylib: Update to 3.0.0, add Perl and Ruby variants (maintainer, #42545).

Also:

  • Don't bother with github-1.0 anymore, since it wasn't being used at all.
  • Use "configure.args-replace" where appropriate.
  • Reword some variant descriptions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/science/xraylib/Portfile

    r110143 r117556  
    55PortGroup           github 1.0
    66
    7 github.setup        tschoonj xraylib 2.16.0 xraylib-
    8 revision            2
     7name                xraylib
     8version             3.0.0
    99categories          science
    1010platforms           darwin
     
    2020                    scattering factors, refractive indices, Compton profiles \
    2121                    etc. Bindings exist for Perl, Python, Java, Fortran, IDL, \
    22                     Lua and .NET.
     22                    Lua, Ruby, PHP and .NET.
    2323
    2424master_sites        http://lvserver.ugent.be/xraylib/ \
    2525                    http://xraylib.s3.amazonaws.com/
    2626
    27 checksums           rmd160  3b9a0db5fe2ae285cd364478c9e8c3d76e855069 \
    28                     sha256 91ccbd25338c00027d58ee13239375926a0e106d9b883d1c927e846e035e276c
    29 
    30 patchfiles          configure.ac.diff \
    31                     python_xrlsetup.py.in.diff \
    32                     xraylib.i.diff
    33 
    34 patch.pre_args      -p1
     27checksums           rmd160  6c8c82c0afe3664adcd044a4371229a76bad5bf9 \
     28                    sha256  0cc506e15f2f3563384dcb97cb4f9399b13d90f074b54c8d25cd59b7804d8636
    3529
    3630configure.args      --disable-idl \
     
    3933                    --disable-python \
    4034                    --disable-java \
    41                     --disable-lua
     35                    --disable-lua \
     36                    --disable-ruby
    4237
    4338# to be fixed in later versions of xraylib...
     
    4540configure.ccache    no
    4641
    47 use_autoreconf      yes
    4842
    49 variant perl description {Perl bindings} {
    50     configure.args-append --enable-perl
     43variant perl5_10 description {Perl 5.10 bindings} conflicts perl5_12 perl5_14 perl5_16 perl5_18 {
     44    configure.args-append --enable-perl --enable-perl-integration PERL=${prefix}/bin/perl5.10
    5145    configure.args-delete --disable-perl
    5246    depends_build-append port:swig-perl
     47    depends_lib-append port:perl5.10
    5348}
    5449
    55 variant python26 description {Python2.6 bindings} conflicts python27 python31 python32 python33 {
     50variant perl5_12 description {Perl 5.12 bindings} conflicts perl5_10 perl5_14 perl5_16 perl5_18 {
     51    configure.args-append --enable-perl --enable-perl-integration PERL=${prefix}/bin/perl5.12
     52    configure.args-delete --disable-perl
     53    depends_build-append port:swig-perl
     54    depends_lib-append port:perl5.12
     55}
     56
     57variant perl5_14 description {Perl 5.14 bindings} conflicts perl5_10 perl5_12 perl5_16 perl5_18 {
     58    configure.args-append --enable-perl --enable-perl-integration PERL=${prefix}/bin/perl5.14
     59    configure.args-delete --disable-perl
     60    depends_build-append port:swig-perl
     61    depends_lib-append port:perl5.14
     62}
     63
     64variant perl5_16 description {Perl 5.16 bindings} conflicts perl5_10 perl5_12 perl5_14 perl5_18 {
     65    configure.args-append --enable-perl --enable-perl-integration PERL=${prefix}/bin/perl5.16
     66    configure.args-delete --disable-perl
     67    depends_build-append port:swig-perl
     68    depends_lib-append port:perl5.16
     69}
     70
     71variant perl5_18 description {Perl 5.18 bindings} conflicts perl5_10 perl5_12 perl5_14 perl5_16 {
     72    configure.args-append --enable-perl --enable-perl-integration PERL=${prefix}/bin/perl5.18
     73    configure.args-delete --disable-perl
     74    depends_build-append port:swig-perl
     75    depends_lib-append port:perl5.18
     76}
     77
     78variant python26 description {Python 2.6 bindings} conflicts python27 python31 python32 python33 {
    5679    configure.args-append --enable-python --enable-python-integration PYTHON=${prefix}/bin/python2.6
    5780    configure.args-delete --disable-python
     
    6083}
    6184
    62 variant python27 description {Python2.7 bindings} conflicts python26 python31 python32 python33 {
     85variant python27 description {Python 2.7 bindings} conflicts python26 python31 python32 python33 {
    6386    configure.args-append --enable-python --enable-python-integration PYTHON=${prefix}/bin/python2.7
    6487    configure.args-delete --disable-python
     
    6790}
    6891
    69 variant python31 description {Python3.1 bindings} conflicts python27 python26 python32 python33 {
     92variant python31 description {Python 3.1 bindings} conflicts python27 python26 python32 python33 {
    7093    configure.args-append --enable-python --enable-python-integration PYTHON=${prefix}/bin/python3.1
    7194    configure.args-delete --disable-python
     
    7497}
    7598
    76 variant python32 description {Python3.2 bindings} conflicts python27 python31 python26 python33 {
     99variant python32 description {Python 3.2 bindings} conflicts python27 python31 python26 python33 {
    77100    configure.args-append --enable-python --enable-python-integration PYTHON=${prefix}/bin/python3.2
    78101    configure.args-delete --disable-python
     
    81104}
    82105
    83 variant python33 description {Python3.3 bindings} conflicts python27 python31 python26 python32 {
     106variant python33 description {Python 3.3 bindings} conflicts python27 python31 python26 python32 {
    84107    configure.args-append --enable-python --enable-python-integration PYTHON=${prefix}/bin/python3.3
    85108    configure.args-delete --disable-python
     
    88111}
    89112
     113variant ruby18 description {Ruby 1.8.7 bindings} conflicts ruby19 ruby20 ruby21 {
     114    configure.args-append --enable-ruby --enable-ruby-integration RUBY=${prefix}/bin/ruby1.8
     115    configure.args-delete --disable-ruby
     116    depends_build-append port:swig-ruby
     117    depends_lib-append port:ruby
     118}
     119
     120variant ruby19 description {Ruby 1.9 bindings} conflicts ruby18 ruby20 ruby21 {
     121    configure.args-append --enable-ruby --enable-ruby-integration RUBY=${prefix}/bin/ruby1.9
     122    configure.args-delete --disable-ruby
     123    depends_build-append port:swig-ruby
     124    depends_lib-append port:ruby19
     125}
     126
     127variant ruby20 description {Ruby 2.0 bindings} conflicts ruby18 ruby19 ruby21 {
     128    configure.args-append --enable-ruby --enable-ruby-integration RUBY=${prefix}/bin/ruby2.0
     129    configure.args-delete --disable-ruby
     130    depends_build-append port:swig-ruby
     131    depends_lib-append port:ruby20
     132}
     133
     134variant ruby21 description {Ruby 2.1 bindings} conflicts ruby18 ruby19 ruby20 {
     135    configure.args-append --enable-ruby --enable-ruby-integration RUBY=${prefix}/bin/ruby2.1
     136    configure.args-delete --disable-ruby
     137    depends_build-append port:swig-ruby
     138    depends_lib-append port:ruby21
     139}
     140
    90141variant java description {Java bindings} {
    91     configure.args-append --enable-java
    92     configure.args-delete --disable-java
     142    configure.args-replace --disable-java --enable-java
    93143    depends_build-append port:swig-java
    94144}
    95145
    96146variant lua description {Lua bindings} {
    97     configure.args-append --enable-lua
    98     configure.args-delete --disable-lua
     147    configure.args-replace --disable-lua --enable-lua
    99148    depends_build-append port:swig-lua
    100149    depends_lib-append port:lua
    101150}
    102151
    103 variant gcc44 description {build with gfortran from gcc44} conflicts gcc45 gcc46 gcc47 gcc48 {
    104     configure.args-append --enable-fortran2003
    105     configure.args-delete --disable-fortran2003
     152variant gcc44 description {Build with gfortran from GCC 4.4} conflicts gcc45 gcc46 gcc47 gcc48 {
     153    configure.args-replace --disable-fortran2003 --enable-fortran2003
    106154    depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
    107155    depends_build-append port:gcc44
     
    109157}
    110158
    111 variant gcc45 description {build with gfortran from gcc45} conflicts gcc44 gcc46 gcc47 gcc48 {
    112     configure.args-append --enable-fortran2003
    113     configure.args-delete --disable-fortran2003
     159variant gcc45 description {Build with gfortran from GCC 4.5} conflicts gcc44 gcc46 gcc47 gcc48 {
     160    configure.args-replace --disable-fortran2003 --enable-fortran2003
    114161    depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
    115162    depends_build-append port:gcc45
     
    117164}
    118165
    119 variant gcc46 description {build with gfortran from gcc46} conflicts gcc44 gcc45 gcc47 gcc48 {
    120     configure.args-append --enable-fortran2003
    121     configure.args-delete --disable-fortran2003
     166variant gcc46 description {Build with gfortran from GCC 4.6} conflicts gcc44 gcc45 gcc47 gcc48 {
     167    configure.args-replace --disable-fortran2003 --enable-fortran2003
    122168    depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
    123169    depends_build-append port:gcc46
     
    125171}
    126172
    127 variant gcc47 description {build with gfortran from gcc47} conflicts gcc44 gcc45 gcc46 gcc48 {
    128     configure.args-append --enable-fortran2003
    129     configure.args-delete --disable-fortran2003
     173variant gcc47 description {Build with gfortran from GCC 4.7} conflicts gcc44 gcc45 gcc46 gcc48 {
     174    configure.args-replace --disable-fortran2003 --enable-fortran2003
    130175    depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
    131176    depends_build-append port:gcc47
     
    133178}
    134179
    135 variant gcc48 description {build with gfortran from gcc48} conflicts gcc44 gcc45 gcc46 gcc47 {
    136     configure.args-append --enable-fortran2003
    137     configure.args-delete --disable-fortran2003
     180variant gcc48 description {Build with gfortran from GCC 4.8} conflicts gcc44 gcc45 gcc46 gcc47 {
     181    configure.args-replace --disable-fortran2003 --enable-fortran2003
    138182    depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
    139183    depends_build-append port:gcc48
Note: See TracChangeset for help on using the changeset viewer.