Ticket #42545: Portfile.diff

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

Portfile diff

  • Portfile

    old new  
    11# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    2 # $Id: Portfile 110143 2013-08-27 15:39:45Z jeremyhu@macports.org $
    32
    43PortSystem          1.0
    54PortGroup           github 1.0
    65
    7 github.setup        tschoonj xraylib 2.16.0 xraylib-
    8 revision            2
     6github.setup        tschoonj xraylib 3.0.0 xraylib-
     7revision            0
    98categories          science
    109platforms           darwin
    1110license             BSD
     
    1918                    line energies, edge energies, fluorescence yields, \
    2019                    scattering factors, refractive indices, Compton profiles \
    2120                    etc. Bindings exist for Perl, Python, Java, Fortran, IDL, \
    22                     Lua and .NET.
     21                    Lua, Ruby, PHP and .NET.
    2322
    2423master_sites        http://lvserver.ugent.be/xraylib/ \
    2524                    http://xraylib.s3.amazonaws.com/
    2625
    27 checksums           rmd160  3b9a0db5fe2ae285cd364478c9e8c3d76e855069 \
    28                     sha256 91ccbd25338c00027d58ee13239375926a0e106d9b883d1c927e846e035e276c
     26checksums           rmd160 6c8c82c0afe3664adcd044a4371229a76bad5bf9 \
     27                    sha256 0cc506e15f2f3563384dcb97cb4f9399b13d90f074b54c8d25cd59b7804d8636
    2928
    30 patchfiles          configure.ac.diff \
    31                     python_xrlsetup.py.in.diff \
    32                     xraylib.i.diff
    33 
    34 patch.pre_args      -p1
    3529
    3630configure.args      --disable-idl \
    3731                    --disable-fortran2003 \
    3832                    --disable-perl \
    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...
    4439use_parallel_build  no
    4540configure.ccache    no
    4641
    47 use_autoreconf      yes
    4842
    49 variant perl description {Perl bindings} {
    50     configure.args-append --enable-perl
     43variant perl510 description {Perl5.10 bindings} conflicts perl512 perl514 perl516 perl518 {
     44    configure.args-append --enable-perl --enable-perl-integration PERL=${prefix}/bin/perl5.10
     45    configure.args-delete --disable-perl
     46    depends_build-append port:swig-perl
     47    depends_lib-append port:perl5.10
     48}
     49
     50variant perl512 description {Perl5.12 bindings} conflicts perl510 perl514 perl516 perl518 {
     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 perl514 description {Perl5.14 bindings} conflicts perl510 perl512 perl516 perl518 {
     58    configure.args-append --enable-perl --enable-perl-integration PERL=${prefix}/bin/perl5.14
    5159    configure.args-delete --disable-perl
    5260    depends_build-append port:swig-perl
     61    depends_lib-append port:perl5.14
     62}
     63
     64variant perl516 description {Perl5.16 bindings} conflicts perl510 perl512 perl514 perl518 {
     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 perl518 description {Perl5.18 bindings} conflicts perl510 perl512 perl514 perl516 {
     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
    5376}
    5477
    5578variant python26 description {Python2.6 bindings} conflicts python27 python31 python32 python33 {
     
    87110    depends_lib-append port:python33
    88111}
    89112
     113variant ruby18 description {Ruby1.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 {Ruby1.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 {Ruby2.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 {Ruby2.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} {
    91142    configure.args-append --enable-java
    92143    configure.args-delete --disable-java