Ticket #51632: Portfile

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