Ticket #51629: 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-ldasgen
7version       2.5.0
8categories    science
9platforms     darwin
10maintainers   ligo.org:ed.maros
11
12description   Filters library used by ldas-tools
13long_description ${description}
14
15homepage      https://wiki.ligo.org/DASWG/LDASTools
16master_sites  http://software.ligo.org/lscsoft/source/
17
18checksums     rmd160 96d30566e32cb0db1f0a2d2f7b88060533950793 \
19              sha256 2eedeea1be81c4fec29c501da3c18db52bb930663bd923b5735c5e64c720eb1d
20
21conflicts      port:ldas-tools
22depends_lib    port:ldas-tools-al
23
24configure.args --disable-silent-rules \
25               --with-optimization=high \
26               --disable-tcl \
27               --disable-python \
28               --without-doxygen \
29               --without-dot \
30               --disable-latex
31
32if {${os.major} < 13} {
33    configure.args-append --disable-cxx11
34}
35
36# requires clang from Xcode5 or higher to build
37compiler.blacklist-append {clang < 500.2.75} llvm-gcc-4.2 gcc-4.2
38
39use_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#------------------------------------------------------------------------
51set pythons_suffixes {27 34}
52
53set pythons_ports {}
54foreach s ${pythons_suffixes} {
55    lappend pythons_ports python${s}
56}
57
58foreach 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
76livecheck.type   regex
77livecheck.url    ${master_sites}
78livecheck.regex  {ldas-tools-filters-(\d+(?:\.\d+)*).tar.gz}