# -*- 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
description A library for X-ray matter interaction cross sections
long_description ${name} provides an API with over 50 functions designed \
to provide convenient access to databases with cross \
sections (photoelectric, Compton, Rayleigh, XRF etc.), \
line energies, edge energies, fluorescence yields, \
scattering factors, refractive indices, Compton profiles \
etc. Bindings exist for Perl, Python, Java, Fortran, IDL, \
homepage http://ftp.esrf.eu/pub/scisoft/xraylib/readme.html
master_sites http://lvserver.ugent.be/xraylib/ \
http://xraylib.s3.amazonaws.com/
checksums rmd160 f690e335bcb41df7a5a32a8c717059886d2bfe34 \
sha256 a22a73b8d90eb752b034bab1a4cf6abdd81b8c7dc5020bcb22132d2ee7aacd42 \
configure.args --disable-idl \
# to be fixed in later versions of xraylib...
perl5.conflict_variants yes
perl5.create_variants ${perl5.branches}
if {[variant_isset perl5_26] || [variant_isset perl5_28]} {
configure.perl ${perl5.bin}
configure.args-delete --disable-perl
configure.args-append --enable-perl --enable-perl-integration
depends_build-append port:swig-perl
variant python27 description {Python 2.7 bindings} conflicts python34 {
configure.args-append --enable-python --enable-python-integration --enable-python-numpy PYTHON=${prefix}/bin/python2.7
configure.args-delete --disable-python --disable-python-numpy
depends_build-append port:swig-python port:py27-cython
depends_lib-append port:python27 port:py27-numpy