# -*- 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

PortSystem              1.0
PortGroup               python 1.0

name                    py-gsl
version                 2.3.0
revision                1

categories-append       science
license                 GPL-2+
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               rmd160  6fce43c412daf0dfc392fd1a7451258bee6047ac \
                        sha256  26f79645bccef52a4f9f24c4307d9be954992ac008581750d4413e405404406a \
                        size    1096186

python.versions         27 35 36 37 38

if {${name} ne ${subport}} {
    depends_build-append \
                        port:swig-python

    depends_lib-append  port:gsl \
                        port:py${python.version}-numpy

    # configure step is new, JJS 4/28/16
    use_configure    yes
    configure.cmd    ${python.bin} setup.py config
    # blank pre_args
    configure.pre_args
    configure.universal_args-delete --disable-dependency-tracking

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} COPYING CREDITS \
            ChangeLog README ${destroot}${docdir}
    }
}
