source: trunk/dports/science/nds2-client/Portfile

Last change on this file was 141253, checked in by jeremyhu@…, 2 years ago

nds2-client: Remove clang blacklisting

The port seems to build fine these days.
Tested with macports-clang-3.4 and Xcode 7's clang.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.8 KB
Line 
1# $Id: Portfile 141253 2015-10-13 16:17:05Z ryandesign@macports.org $
2
3PortSystem        1.0
4
5name              nds2-client
6version           0.11.6
7revision          2
8categories        science
9platforms         darwin
10license           GPL-2
11maintainers       ligo.org:ed.maros openmaintainer
12
13description       Network Data Server Client
14long_description \
15  Client tool for accessing streamed LIGO data using the Network \
16  Data Server version 2.
17
18homepage          https://www.lsc-group.phys.uwm.edu/daswg/projects/nds-client.html
19master_sites      https://www.lsc-group.phys.uwm.edu/daswg/download/software/source/
20
21checksums         rmd160  ca470079f3d908cb95b379d257374e3b91863034 \
22                  sha256  3abc8ec2ca58fc3184e46b14b81b1b87882b1abe4e739c7c0ae35e1ad77b5f20
23
24depends_build-append \
25                  port:pkgconfig
26
27default_variants  +doc +gssapi +swig_python27 +swig_java
28
29configure.javac   /usr/bin/javac -source 1.5 -target 1.5
30configure.args    --disable-silent-rules \
31                  --disable-doc \
32                  --disable-swig-python \
33                  --disable-swig-octave \
34                  --disable-swig-java \
35                  --without-sasl \
36                  --without-gssapi
37
38set pythons_suffixes {27 34}
39
40set pythons_ports {}
41foreach s ${pythons_suffixes} {
42    lappend pythons_ports swig_python${s}
43}
44
45variant doc description "Enable HTML documentation" {
46
47    depends_build-append            port:docbook-xsl \
48                                    port:libxslt
49    configure.args-strsed           s/--disable-doc/--enable-doc/
50
51}
52
53foreach s ${pythons_suffixes} {
54    set p python${s}
55    set v [string index ${s} 0].[string index ${s} 1]
56    set i [lsearch -exact ${pythons_ports} swig_${p}]
57    set c [lreplace ${pythons_ports} ${i} ${i}]
58    set d ${frameworks_dir}/Python.framework/Versions/${v}/lib/python${v}
59    eval [subst {
60        variant swig_${p} description "Enable SWIG Python interface for Python ${v}" conflicts ${c} {
61
62            depends_build-append    port:swig-python
63            depends_lib-append      port:${p} port:py${s}-numpy
64            configure.args-strsed   s/--disable-swig-python/--enable-swig-python/
65            destroot.args-append    pythondir="${d}" pyexecdir="${d}"
66
67        }
68    }]
69}
70
71variant swig_octave description "Enable SWIG Octave interface" {
72
73    depends_build-append            port:swig-octave
74    configure.args-strsed           s/--disable-swig-octave/--enable-swig-octave/
75
76}
77
78variant swig_java description "Enable SWIG Java interface" {
79
80    # Need GNU Classpath to get jni.h header
81    depends_build-append            bin:javac:gcc48 port:swig-java port:gnu-classpath
82    depends_lib-append              bin:java:kaffe
83    configure.args-strsed           s/--disable-swig-java/--enable-swig-java/
84
85}
86
87variant sasl description "Use cyrus-sasl2 for authentication" conflicts gssapi {
88
89    configure.args-strsed           s/--without-sasl/--with-sasl=${prefix}/
90    depends_lib-append              port:cyrus-sasl2
91
92}
93
94variant gssapi description "Use kerberos5 gssapi for authentication" conflicts sasl {
95
96    configure.args-strsed           s/--without-gssapi/--with-gssapi=${prefix}/
97    depends_lib-append              port:kerberos5
98
99}
100
101set need_octave 0
102if {[variant_isset swig_octave]} {
103    set need_octave 1
104}
105if ${need_octave} {
106    # The Octave dependency can be satisfied by either octave or octave-devel.
107    depends_lib-append              path:bin/octave:octave
108    destroot.args-append            pkgoctexecdir="${prefix}/share/octave/site/m"
109}
110
111set need_sqlite 0
112foreach s ${pythons_ports} {
113    if {[variant_isset ${s}]} {
114        set need_sqlite 1
115    }
116}
117if {[variant_isset swig_octave]} {
118    set need_sqlite 1
119}
120if {[variant_isset swig_java]} {
121    set need_sqlite 1
122}
123if ${need_sqlite} {
124    depends_lib-append port:sqlite3
125}
126
127use_parallel_build yes
128
129livecheck.type    regex
130livecheck.url     ${master_sites}
131livecheck.regex   {nds2-client-(\d+(?:\.\d+)*).tar.gz}
Note: See TracBrowser for help on using the repository browser.