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