Ticket #42461: Portfile.py-netcdf4

File Portfile.py-netcdf4, 1.7 KB (added by jswhit (Jeff Whitaker), 10 years ago)
Line 
1# -*- 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
2# $Id$
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-netcdf4
8version             1.0.8
9revision            1
10categories-append   science
11platforms           darwin
12maintainers         fastmail.fm:jswhit \
13                    openmaintainer
14license             MIT
15
16description         Python/numpy interface to netCDF
17long_description    netCDF version 4 has many features not found in \
18                    earlier versions of the library and is implemented \
19                    on top of HDF5. This module can read and write files \
20                    in both the new netCDF 4 and the old netCDF \
21                    3 format, and can create files that are readable by \
22                    HDF5 clients.
23homepage            http://code.google.com/p/netcdf4-python/
24
25master_sites        http://pypi.python.org/packages/source/n/netCDF4
26distname            netCDF4-${version}
27
28checksums           rmd160  f87865cd2d101d4160504515a177fd396b50c8d0 \
29                    sha256  393a2e1bd10332a446a461c1f5e82b79f23fad76c3f3afa9af326dde54a58795
30
31build.env-append    USE_NCCONFIG=1
32destroot.env-append USE_NCCONFIG=1
33
34python.versions     26 27 32 33
35
36if {${name} ne ${subport}} {
37    depends_lib-append  port:netcdf \
38                        port:py${python.version}-numpy
39
40    pre-configure {
41        # py-netcdf4's setup.py uses nc-config for flags and libs but not compiler
42        configure.cc        [exec ${prefix}/bin/nc-config --cc]
43    }
44
45    livecheck.type      none
46} else {
47    livecheck.type      googlecode
48    livecheck.regex     {netCDF4-(.*)\.tar\.gz}
49}