[73408] trunk/dports/science

ryandesign at macports.org ryandesign at macports.org
Fri Nov 12 11:37:39 PST 2010


Revision: 73408
          http://trac.macports.org/changeset/73408
Author:   ryandesign at macports.org
Date:     2010-11-12 11:37:35 -0800 (Fri, 12 Nov 2010)
Log Message:
-----------
xraylib: new port, version 2.14.0; see #27285

Added Paths:
-----------
    trunk/dports/science/xraylib/
    trunk/dports/science/xraylib/Portfile

Added: trunk/dports/science/xraylib/Portfile
===================================================================
--- trunk/dports/science/xraylib/Portfile	                        (rev 0)
+++ trunk/dports/science/xraylib/Portfile	2010-11-12 19:37:35 UTC (rev 73408)
@@ -0,0 +1,83 @@
+# -*- 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
+# $Id$
+
+PortSystem          1.0
+
+name                xraylib
+version             2.14.0
+categories          science
+platforms           darwin
+maintainers         me.com:Tom.Schoonjans
+
+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 \
+                    and .NET.
+
+homepage            http://github.com/tschoonj/xraylib
+master_sites        http://github.com/tschoonj/xraylib/downloads
+
+checksums           sha1    6fa2add4ffedcd94003bcff648ea6e657976d56e \
+                    rmd160  c436cd31e38628a4290c3a9af7ddd89812eccb1c
+
+configure.args      --disable-idl \
+                    --disable-fortran2003 \
+                    --disable-perl \
+                    --disable-python \
+                    --disable-java
+
+# to be fixed in later versions of xraylib...
+use_parallel_build  no
+
+variant perl description {Perl bindings} {
+    configure.args-append --enable-perl
+    configure.args-delete --disable-perl
+    depends_build-append port:swig-perl
+}
+
+variant python description {Python bindings} {
+    configure.args-append --enable-python
+    configure.args-delete --disable-python
+    depends_build-append port:swig-python
+}
+
+variant java description {Java bindings} {
+    configure.args-append --enable-java
+    configure.args-delete --disable-java
+    depends_build-append port:swig-java
+}
+
+variant gcc43 description {build with gfortran from gcc43} conflicts gcc44 gcc45 g95 {
+    configure.args-append --enable-fortran2003
+    configure.args-delete --disable-fortran2003
+    depends_lib-append port:gcc43
+    configure.fc ${prefix}/bin/gfortran-mp-4.3
+}
+
+variant gcc44 description {build with gfortran from gcc44} conflicts gcc43 gcc45 g95 {
+    configure.args-append --enable-fortran2003
+    configure.args-delete --disable-fortran2003
+    depends_lib-append port:gcc44
+    configure.fc ${prefix}/bin/gfortran-mp-4.4
+}
+
+variant gcc45 description {build with gfortran from gcc45} conflicts gcc43 gcc44 g95 {
+    configure.args-append --enable-fortran2003
+    configure.args-delete --disable-fortran2003
+    depends_lib-append port:gcc45
+    configure.fc ${prefix}/bin/gfortran-mp-4.5
+}
+
+variant g95 description {build with g95} conflicts gcc43 gcc44 gcc45 {
+    configure.args-append --enable-fortran2003
+    configure.args-delete --disable-fortran2003
+    depends_lib-append port:g95
+    configure.fc ${prefix}/bin/g95
+}
+
+default_variants    +python


Property changes on: trunk/dports/science/xraylib/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101112/9c51ff7e/attachment.html>


More information about the macports-changes mailing list