source: trunk/dports/python/py-pynds/Portfile @ 92415

Last change on this file since 92415 was 92415, checked in by aronnax@…, 5 years ago

py-pynds: new port, Python wrapper for nds2-client LIGO data access library

File size: 2.2 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem              1.0
5PortGroup               python 1.0
6
7name                    py-pynds
8version                 0.7.0
9categories              python science
10platforms               darwin
11maintainers             aronnax ram
12description             Network Data Server Client Python Wrapper
13long_description \
14  Python wrapper for accessing streamed LIGO data using the Network \
15  Data Server version 2.
16
17homepage                http://www.lsc-group.phys.uwm.edu/daswg/
18master_sites            ${homepage}download/software/source/
19distname                pynds-${version}
20checksums               md5     fb5ad5fa944c9f5252c8385a55ac76eb \
21                        sha1    79d730534ac7fac2280f8b027f2b3017c5bfb323 \
22                        rmd160  e629494a1dabdf747845e0b69faa87746c3a2a37
23
24python.versions         25 26 27
25python.default_version  27
26
27if {${subport} != ${name}} {
28
29depends_lib-append      port:nds2-client \
30                        port:boost \
31                        port:py${python.version}-numpy
32
33if { ![file exists ${prefix}/lib/libboost_python-mt.dylib] } {
34  depends_lib-delete port:boost
35}
36
37pre-fetch {
38  if { ![file exists ${prefix}/lib/libboost_python-mt.dylib] } {
39    if { [file exists ${prefix}/lib/libboost_system-mt.dylib] } {
40      ui_error "
41****
42**** PyNDS requires port boost installed with variant +python${python.version}.
43**** Please do the following then try installing ${name} again:
44****
45****     sudo port install boost +python${python.version}
46****
47
48"
49    } else {
50      ui_error "
51****
52**** PyNDS requires port boost installed with variant +python${python.version}.
53**** Please do the following then try installing ${name} again:
54****
55****     sudo port install boost +python${python.version}
56****
57
58"
59    }
60    error "${name} requires boost +python${python.version}"
61  }
62}
63
64build.env       PYTHON_CFLAGS="-I${prefix}/include/boost" \
65                CFLAGS="-I${prefix}/include/boost"
66
67}
68
69if {${name} == ${subport}} {
70  livecheck.type      regex
71  livecheck.url       ${master_sites}
72  livecheck.regex     {pynds-(\d+(?:\.\d+)*).tar.gz}
73} else {
74  livecheck.type  none
75}
Note: See TracBrowser for help on using the repository browser.