# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup python24 1.0 name py-gsl version 0.9.1 revision 1 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 72323e678ae5473d4a7d9cfc04dcb568 build.env CFLAGS="-I${prefix}/include/gsl -I${prefix}/include/python2.4 -I${prefix}/include" \ LDFLAGS=-L${prefix}/lib depends_build port:swig pre-build { # Resolve GSL version issue (1.9 vs 1.10) 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:gsl \ port:py-numarray build.args --array-object=numarray } variant Numeric conflicts numarray numpy description "Use Numeric as array-object" { depends_lib-append port:gsl \ port:py-numeric build.args --array-object=Numeric } variant numpy conflicts numarray Numeric description "Use numpy as array-object" { depends_lib-append port:gsl \ port:py-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} }