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-frameAPI |
---|
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 139f36ec8cf851e6438943ab748b490e294d19cf \ |
---|
19 | sha256 5f16bc86be0a5ade99d4affdd4c1e4a8b829854f0960b3ab285968574042694b |
---|
20 | |
---|
21 | conflicts port:ldas-tools |
---|
22 | depends_lib port:ldas-tools-ldasgen \ |
---|
23 | port:ldas-tools-filters \ |
---|
24 | port:ldas-tools-framecpp |
---|
25 | |
---|
26 | configure.args --disable-silent-rules \ |
---|
27 | --with-optimization=high \ |
---|
28 | --disable-tcl \ |
---|
29 | --disable-python \ |
---|
30 | --without-doxygen \ |
---|
31 | --without-dot \ |
---|
32 | --disable-latex |
---|
33 | |
---|
34 | if {${os.major} < 13} { |
---|
35 | configure.args-append --disable-cxx11 |
---|
36 | } |
---|
37 | |
---|
38 | # requires clang from Xcode5 or higher to build |
---|
39 | compiler.blacklist-append {clang < 500.2.75} llvm-gcc-4.2 gcc-4.2 |
---|
40 | |
---|
41 | use_parallel_build yes |
---|
42 | |
---|
43 | #variant docs description {build documentation} { |
---|
44 | # configure.args-delete --disable-latex \ |
---|
45 | # --disable-dot \ |
---|
46 | # --disable-ldas-documentation \ |
---|
47 | # configure.args-append --docdir=${prefix}/share/doc/ldas-tools |
---|
48 | #} |
---|
49 | |
---|
50 | #------------------------------------------------------------------------ |
---|
51 | # Python variants |
---|
52 | #------------------------------------------------------------------------ |
---|
53 | set pythons_suffixes {27 34} |
---|
54 | |
---|
55 | set pythons_ports {} |
---|
56 | foreach s ${pythons_suffixes} { |
---|
57 | lappend pythons_ports python${s} |
---|
58 | } |
---|
59 | |
---|
60 | foreach s ${pythons_suffixes} { |
---|
61 | set p python${s} |
---|
62 | set v [string index ${s} 0].[string index ${s} 1] |
---|
63 | set i [lsearch -exact ${pythons_ports} ${p}] |
---|
64 | set c [lreplace ${pythons_ports} ${i} ${i}] |
---|
65 | set d ${frameworks_dir}/Python.framework/Versions/${v}/lib/python${v} |
---|
66 | eval [subst { |
---|
67 | variant ${p} description "Enable SWIG Python interface for Python ${v}" conflicts ${c} { |
---|
68 | |
---|
69 | depends_build-append port:swig-python |
---|
70 | depends_lib-append port:${p} port:py${s}-numpy |
---|
71 | configure.args-strsed s/--disable-python/--enable-python/ |
---|
72 | destroot.args-append pythondir="${d}" pyexecdir="${d}" |
---|
73 | |
---|
74 | } |
---|
75 | }] |
---|
76 | } |
---|
77 | |
---|
78 | livecheck.type regex |
---|
79 | livecheck.url ${master_sites} |
---|
80 | livecheck.regex {ldas-tools-filters-(\d+(?:\.\d+)*).tar.gz} |
---|