1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: Portfile 120497 2014-05-30 14:18:34Z mmoll@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | PortGroup mpi 1.0 |
---|
7 | |
---|
8 | mpi.setup |
---|
9 | |
---|
10 | set realname tables |
---|
11 | name py-${realname} |
---|
12 | version 3.1.1 |
---|
13 | revision 1 |
---|
14 | categories-append science |
---|
15 | platforms darwin |
---|
16 | license BSD |
---|
17 | |
---|
18 | python.versions 26 27 32 33 34 |
---|
19 | |
---|
20 | maintainers mmoll openmaintainer |
---|
21 | |
---|
22 | description Package for managing hierarchical datasets |
---|
23 | long_description PyTables is a package for managing hierarchical datasets \ |
---|
24 | and designed to efficiently and easily cope with \ |
---|
25 | extremely large amounts of data |
---|
26 | |
---|
27 | homepage http://www.pytables.org/ |
---|
28 | master_sites http://sourceforge.net/projects/pytables/files/pytables/${version} |
---|
29 | |
---|
30 | checksums rmd160 f4c4c68c931fe8d3c5817f2619e699bab6fc7f07 \ |
---|
31 | sha256 39b9036376f1185599771c19276f13b5b9119d98f9108f58595745ded3fe2da3 |
---|
32 | |
---|
33 | distname ${realname}-${version} |
---|
34 | |
---|
35 | if {${name} ne ${subport}} { |
---|
36 | build.target build_ext |
---|
37 | build.args --inplace \ |
---|
38 | --hdf5=${prefix} \ |
---|
39 | --bzip2=${prefix} \ |
---|
40 | --lzo=${prefix} \ |
---|
41 | --blosc=${prefix} |
---|
42 | |
---|
43 | destroot.args --hdf5=${prefix} \ |
---|
44 | --bzip2=${prefix} \ |
---|
45 | --lzo=${prefix} \ |
---|
46 | --blosc=${prefix} |
---|
47 | pre-destroot { |
---|
48 | # need to wrap this in a pre-destroot phase so that ${mpi.cc} expands to the right value |
---|
49 | if {[mpi_variant_isset]} { |
---|
50 | destroot.cmd env CC=${mpi.cc} ${destroot.cmd} |
---|
51 | } |
---|
52 | } |
---|
53 | depends_build-append \ |
---|
54 | port:py${python.version}-cython |
---|
55 | |
---|
56 | depends_lib-append port:hdf5-18 \ |
---|
57 | port:py${python.version}-numpy \ |
---|
58 | port:py${python.version}-numexpr \ |
---|
59 | port:zlib \ |
---|
60 | port:bzip2 \ |
---|
61 | port:lzo2 \ |
---|
62 | port:blosc |
---|
63 | |
---|
64 | if {${subport} eq "py26-${realname}" || ${subport} eq "py27-${realname}"} { |
---|
65 | depends_lib-append port:py${python.version}-scientific |
---|
66 | } |
---|
67 | |
---|
68 | post-extract { |
---|
69 | file rename ${worksrcpath}/src/utils.h ${worksrcpath}/src/xxx_utils.h |
---|
70 | } |
---|
71 | |
---|
72 | post-patch { |
---|
73 | eval reinplace "s:utils.h:xxx_utils.h:" [glob ${worksrcpath}/{src,tables}/*.c] |
---|
74 | } |
---|
75 | |
---|
76 | post-destroot { |
---|
77 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport} |
---|
78 | xinstall -m 644 -W ${worksrcpath} ANNOUNCE.txt LICENSE.txt README.txt \ |
---|
79 | RELEASE_NOTES.txt THANKS VERSION \ |
---|
80 | ${destroot}${prefix}/share/doc/${subport} |
---|
81 | } |
---|
82 | } |
---|
83 | |
---|
84 | if {${name} eq ${subport}} { |
---|
85 | livecheck.type regex |
---|
86 | livecheck.url ${homepage} |
---|
87 | livecheck.regex {PyTables ([0-9]+\.[0-9]+\.[0-9]+) \(?final\)? released} |
---|
88 | } else { |
---|
89 | livecheck.type none |
---|
90 | } |
---|