source: trunk/dports/science/xraylib/Portfile

Last change on this file was 154377, checked in by mojca@…, 9 months ago

xraylib: remove forgotten perl5_22

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.5 KB
Line 
1# -*- 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 154377 2016-10-28 21:13:03Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6PortGroup           perl5 1.0
7PortGroup           compilers 1.0
8
9name                xraylib
10version             3.2.0
11revision            1
12categories          science
13platforms           darwin
14license             BSD
15maintainers         nomaintainer
16
17description         A library for X-ray matter interaction cross sections
18
19long_description    ${name} provides an API with over 50 functions designed \
20                    to provide convenient access to databases with cross \
21                    sections (photoelectric, Compton, Rayleigh, XRF etc.), \
22                    line energies, edge energies, fluorescence yields, \
23                    scattering factors, refractive indices, Compton profiles \
24                    etc. Bindings exist for Perl, Python, Java, Fortran, IDL, \
25                    Lua, Ruby, PHP and .NET.
26
27homepage            http://ftp.esrf.eu/pub/scisoft/xraylib/readme.html
28master_sites        http://lvserver.ugent.be/xraylib/ \
29                    http://xraylib.s3.amazonaws.com/
30
31checksums           rmd160  b3d9194b05d8329eb80c6187dfabf48e5bbe458e \
32                    sha256  a734a0ea7b8224918f4e2105a4cf6c63664f257c1940a4c633beedf470d1576b
33
34compilers.choose    fc
35compilers.setup
36
37configure.args      --disable-idl \
38                    --disable-fortran2003 \
39                    --disable-perl \
40                    --disable-python \
41                    --disable-java \
42                    --disable-lua \
43                    --disable-ruby \
44                    --disable-python-numpy
45
46# to be fixed in later versions of xraylib...
47use_parallel_build  no
48configure.ccache    no
49
50perl5.conflict_variants yes
51perl5.branches 5.24
52perl5.default_branch 5.24
53perl5.create_variants ${perl5.branches}
54
55if {[variant_isset perl5_24]} {
56    configure.perl ${perl5.bin}
57    configure.args-delete --disable-perl
58    configure.args-append --enable-perl --enable-perl-integration
59    depends_build-append port:swig-perl
60}
61
62variant python27 description {Python 2.7 bindings} conflicts python34 {
63    configure.args-append --enable-python --enable-python-integration --enable-python-numpy PYTHON=${prefix}/bin/python2.7
64    configure.args-delete --disable-python --disable-python-numpy
65    depends_build-append port:swig-python port:py27-cython
66    depends_lib-append port:python27 port:py27-numpy
67}
68
69variant python34 description {Python 3.4 bindings} conflicts python27 {
70    configure.args-append --enable-python --enable-python-integration --enable-python-numpy PYTHON=${prefix}/bin/python3.4
71    configure.args-delete --disable-python --disable-python-numpy
72    depends_build-append port:swig-python port:py34-cython
73    depends_lib-append port:python34 port:py34-numpy
74}
75
76variant ruby18 description {Ruby 1.8.7 bindings} conflicts ruby19 ruby20 ruby21 {
77    configure.args-append --enable-ruby --enable-ruby-integration RUBY=${prefix}/bin/ruby1.8
78    configure.args-delete --disable-ruby
79    depends_build-append port:swig-ruby
80    depends_lib-append port:ruby
81}
82
83variant ruby19 description {Ruby 1.9 bindings} conflicts ruby18 ruby20 ruby21 {
84    configure.args-append --enable-ruby --enable-ruby-integration RUBY=${prefix}/bin/ruby1.9
85    configure.args-delete --disable-ruby
86    depends_build-append port:swig-ruby
87    depends_lib-append port:ruby19
88}
89
90variant ruby20 description {Ruby 2.0 bindings} conflicts ruby18 ruby19 ruby21 {
91    configure.args-append --enable-ruby --enable-ruby-integration RUBY=${prefix}/bin/ruby2.0
92    configure.args-delete --disable-ruby
93    depends_build-append port:swig-ruby
94    depends_lib-append port:ruby20
95}
96
97variant ruby21 description {Ruby 2.1 bindings} conflicts ruby18 ruby19 ruby20 {
98    configure.args-append --enable-ruby --enable-ruby-integration RUBY=${prefix}/bin/ruby2.1
99    configure.args-delete --disable-ruby
100    depends_build-append port:swig-ruby
101    depends_lib-append port:ruby21
102}
103
104variant java description {Java bindings} {
105    configure.args-replace --disable-java --enable-java
106    depends_build-append port:swig-java
107}
108
109variant lua description {Lua bindings} {
110    configure.args-replace --disable-lua --enable-lua
111    depends_build-append port:swig-lua
112    depends_lib-append port:lua
113}
114
115if {[fortran_variant_isset]} {
116    configure.args-replace --disable-fortran2003 --enable-fortran2003
117}
118
119if {![variant_isset python27] &&  ![variant_isset python34]} {
120    default_variants    +python27
121}
122
123test.run  yes
124test.cmd  check
Note: See TracBrowser for help on using the repository browser.