Ticket #53082: Portfile

File Portfile, 1.2 KB (added by jswhit (Jeff Whitaker), 7 years ago)

new Portfile for py-pygrib version 2.0.2 (2.0.1 no longer works with latest macports Jasper lib)

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             2.0.2
9revision            1
10categories-append   science
11license             MIT
12platforms           darwin
13
14maintainers         fastmail.fm:jswhit openmaintainer
15
16description         Python interface to the Grib API library
17long_description    ${description}
18
19homepage            https://github.com/jswhit/pygrib
20master_sites        pypi:p/pygrib
21distname            pygrib-${version}
22
23checksums           rmd160  54316925506319f5a1dc6049bceccc5659f3d24d \
24                    sha256  82eb5e6037217f7ef200521ffc90c59c1db6008ca10d84a5e8ae80008b94ae00
25
26python.default_version 27
27python.versions     26 27 33 34
28
29if {${name} ne ${subport}} {
30    depends_lib-append \
31                    port:py${python.version}-pyproj \
32                    port:py${python.version}-numpy \
33                    port:grib_api
34    build.env-append \
35                    GRIBAPI_DIR=${prefix} \
36                    PNG_DIR=${prefix} \
37                    JASPER_DIR=${prefix} \
38                    OPENJPEG_DIR=${prefix}
39}