# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 # $Id: Portfile 74165 2010-12-06 15:33:45Z jochen@macports.org $ PortSystem 1.0 PortGroup python26 1.0 name py26-gsl version 0.9.5 categories python science platforms darwin maintainers nomaintainer description Python interface to the GNU Scientific Library long_description Python interface to the GSL, the GNU Scientfic \ Library. Variants for the use of different \ array-objects supported by pygsl are provided. homepage http://pygsl.sourceforge.net/ master_sites sourceforge:pygsl distname pygsl-${version} checksums md5 fca5cbda1380218a28f2ebdc15a224fb \ sha1 718064cd6c9d50cae5048c920ab7ab2324d27c88 \ rmd160 0b9d2654bc1cfb84649603b2680932c4ce47a849 build.env CFLAGS="-I${prefix}/include/gsl -I${prefix}/include/python2.6 -I${prefix}/include" \ LDFLAGS=-L${prefix}/lib depends_build port:swig-python depends_lib port:gsl pre-build { # Resolve GSL version issue (1.9 vs 1.10/1.11) by re-creating this file using swig eval file delete [glob ${worksrcpath}/swig_src/gslwrap_wrap.c] } variant numarray conflicts numpy Numeric description "Use numarray as array-object" { depends_lib-append port:py26-numarray build.args --array-object=numarray } variant Numeric conflicts numarray numpy description "Use Numeric as array-object" { depends_lib-append port:py26-numeric build.args --array-object=Numeric } variant numpy conflicts numarray Numeric description "Use numpy as array-object" { depends_lib-append port:py26-numpy build.args --array-object=numpy } if { ![variant_isset numarray] && ![variant_isset Numeric] && ![variant_isset numpy] } { default_variants +numpy } post-destroot { xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name} }