source: trunk/dports/science/ldas-tools/Portfile @ 138520

Last change on this file since 138520 was 138520, checked in by larryv@…, 4 years ago

ldas-tools: Update to 2.4.0 (#48311)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 138520 2015-07-10 21:27:34Z larryv@macports.org $
2
3PortSystem    1.0
4PortGroup     compiler_blacklist_versions 1.0
5
6name          ldas-tools
7version       2.4.0
8categories    science
9platforms     darwin
10maintainers   ligo.org:ed.maros
11
12description   Suite of LDAS tools
13long_description ${description}
14
15homepage      http://www.ldas-sw.ligo.caltech.edu
16master_sites  http://software.ligo.org/lscsoft/source/
17
18checksums     rmd160 9b250e836b502379ff24124d1bf67e2c3e164feb \
19              sha256 d49438554a9628ff320e889e55fb3a60a6596c4ab581eb089b4356e9e5e51b86
20
21configure.args --disable-silent-rules \
22               --with-optimization=high \
23               --disable-tcl \
24               --disable-python \
25               --without-doxygen \
26               --without-dot \
27               --disable-latex
28
29if {${os.major} < 13} {
30    configure.args-append --disable-cxx11
31}
32
33depends_lib    port:openssl \
34               port:zlib \
35               port:bzip2 \
36               port:flex
37
38# requires clang from Xcode5 or higher to build
39compiler.blacklist-append {clang < 500.2.75} llvm-gcc-4.2 gcc-4.2
40
41use_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#------------------------------------------------------------------------
53set pythons_suffixes {27 34}
54
55set pythons_ports {}
56foreach s ${pythons_suffixes} {
57    lappend pythons_ports python${s}
58}
59
60foreach 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
78livecheck.type   regex
79livecheck.url    ${master_sites}
80livecheck.regex  {ldas-tools-(\d+(?:\.\d+)*).tar.gz}
Note: See TracBrowser for help on using the repository browser.