Ticket #51626: Portfile

File Portfile, 2.4 KB (added by emaros, 8 years ago)
Line 
1# $Id: Portfile 126610 2014-10-12 20:22:46Z ram@macports.org $
2
3PortSystem    1.0
4PortGroup     compiler_blacklist_versions 1.0
5
6name          ldas-tools-al
7version       2.5.0
8categories    science
9platforms     darwin
10maintainers   ligo.org:ed.maros
11
12description   Suite of LDAS tools
13long_description ${description}
14
15homepage      https://wiki.ligo.org/DASWG/LDASTools
16master_sites  http://software.ligo.org/lscsoft/source/
17
18checksums     rmd160 65d06067bf42270eadc5704bc1e1985cef89b9db \
19              sha256 97c907802ad2f3766be817720de93aafdec9ea5386e0ff6550659e435e5c0d73
20
21conflicts      port:ldas-tools
22depends_lib    port:openssl \
23               port:zlib \
24               port:bzip2 \
25               port:flex
26
27
28configure.args --disable-silent-rules \
29               --with-optimization=high \
30               --disable-tcl \
31               --disable-python \
32               --without-doxygen \
33               --without-dot \
34               --disable-latex
35
36if {${os.major} < 13} {
37    configure.args-append --disable-cxx11
38}
39
40# requires clang from Xcode5 or higher to build
41compiler.blacklist-append {clang < 500.2.75} llvm-gcc-4.2 gcc-4.2
42
43use_parallel_build yes
44
45#variant docs description {build documentation} {
46#  configure.args-delete --disable-latex \
47#                        --disable-dot \
48#                        --disable-ldas-documentation \
49#  configure.args-append --docdir=${prefix}/share/doc/ldas-tools
50#}
51
52#------------------------------------------------------------------------
53# Python variants
54#------------------------------------------------------------------------
55set pythons_suffixes {27 34}
56
57set pythons_ports {}
58foreach s ${pythons_suffixes} {
59    lappend pythons_ports python${s}
60}
61
62foreach s ${pythons_suffixes} {
63    set p python${s}
64    set v [string index ${s} 0].[string index ${s} 1]
65    set i [lsearch -exact ${pythons_ports} ${p}]
66    set c [lreplace ${pythons_ports} ${i} ${i}]
67    set d ${frameworks_dir}/Python.framework/Versions/${v}/lib/python${v}
68    eval [subst {
69        variant ${p} description "Enable SWIG Python interface for Python ${v}" conflicts ${c} {
70
71            depends_build-append    port:swig-python
72            depends_lib-append      port:${p} port:py${s}-numpy
73            configure.args-strsed   s/--disable-python/--enable-python/
74            destroot.args-append    pythondir="${d}" pyexecdir="${d}"
75
76        }
77    }]
78}
79
80livecheck.type   regex
81livecheck.url    ${master_sites}
82livecheck.regex  {ldas-tools-(\d+(?:\.\d+)*).tar.gz}