Ticket #36470: Portfile

File Portfile, 1.1 KB (added by jswhit (Jeff Whitaker), 11 years ago)

new Portfile for py-pygrib (version 1.9.5)

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: Portfile 94600 2012-06-25 01:18:51Z jmr@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-pygrib
8version             1.9.5
9categories-append   science
10platforms           darwin
11maintainers         fastmail.fm:jswhit openmaintainer
12description         Python interface to the Grib API library
13long_description    ${description}
14homepage            http://code.google.com/p/pygrib/
15master_sites        http://pygrib.googlecode.com/files/
16license             MIT
17
18distname            pygrib-${version}
19checksums           md5    e14a9c7fa6bc0c8036b6f45cac6eb187 \
20                    sha1   29b288d0bad17d0cb375800bd3d2b496744658f5 \
21                    rmd160 b167fe0221e39470fa4a78afcb79eb761b00d7fb \
22
23python.versions        26 27
24python.default_version 27
25
26if {$subport != $name} {
27    depends_lib-append  port:py${python.version}-pyproj port:py${python.version}-numpy port:grib_api
28    build.env-append GRIBAPI_DIR=${prefix} PNG_DIR=${prefix} JASPER_DIR=${prefix} OPENJPEG_DIR=${prefix}
29}