Ticket #44698: Portfile

File Portfile, 1.8 KB (added by duncanmmacleod (Duncan Macleod), 8 years ago)

v0.1 Portfile

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-gwpy
8version             0.1
9
10categories-append   science
11maintainers         ligo.org:duncan.macleod openmaintainer
12
13platforms           darwin
14license             GPL-3
15
16description         A python package for gravitational-wave astrophysics
17long_description    GWpy is a collaboration-driven Python package providing \
18                    tools for studying data from ground-based \
19                    gravitational-wave detectors.
20homepage            https://gwpy.github.io
21
22master_sites        https://pypi.python.org/packages/source/g/gwpy/ \
23                    https://github.com/gwpy/gwpy/releases/v${version}/
24distname            gwpy-${version}
25
26checksums   rmd160  c7fd247bdabe81f3c8dda99aa273f82bc9a8171f \
27            sha256  b7d84424ac068b5b560d2083f5977bdff4ba9303fe9369c193c897fefa47a3fb
28
29python.versions     27
30
31if {${name} ne ${subport}} {
32
33    depends_lib-append  port:py${python.version}-dateutil \
34                        port:py${python.version}-numpy \
35                        port:py${python.version}-scipy \
36                        port:glue \
37                        port:py${python.version}-matplotlib \
38                        port:py${python.version}-astropy
39
40    depends_build-append \
41                        port:pkgconfig \
42                        port:py${python.version}-setuptools \
43
44    variant nds2 description {Add NDS2 support} {
45        depends_lib-append port:nds2-client
46    }
47
48    variant gwf description {Add GWF support} {
49        depends_lib-append port:lalframe
50    }
51
52    variant hdf5 description {Add HDF5 support} {
53        depends_lib-append port:py${python.version}-h5py
54    }
55}