Ticket #42462: Portfile.py-pygrib

File Portfile.py-pygrib, 1.3 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-pygrib
8version             1.9.9
9revision            0
10categories-append   science
11license             MIT
12platforms           darwin
13
14maintainers         fastmail.fm:jswhit \
15                    openmaintainer
16
17description         Python interface to the Grib API library
18long_description    ${description}
19
20homepage            http://code.google.com/p/pygrib/
21master_sites        http://pypi.python.org/packages/source/p/pygrib
22distname            pygrib-${version}
23
24checksums           rmd160  41137e22ad3e01a128b9eb2331cfd91d7ba77dea \
25                    sha256  554ac3316542e6182f78a1c2b0a4e42babe8b997f72632f1a781107d82bafc48
26
27python.default_version 27
28python.versions     26 27 32 33
29
30if {${name} ne ${subport}} {
31    depends_lib-append \
32                    port:py${python.version}-pyproj \
33                    port:py${python.version}-numpy \
34                    port:grib_api
35    build.env-append \
36                    GRIBAPI_DIR=${prefix} \
37                    PNG_DIR=${prefix} \
38                    JASPER_DIR=${prefix} \
39                    OPENJPEG_DIR=${prefix}
40}