1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup python25 1.0 |
---|
5 | |
---|
6 | name py25-tables |
---|
7 | version 2.0.3 |
---|
8 | categories-append python science |
---|
9 | platforms darwin |
---|
10 | maintainers tom.duck@dal.ca openmaintainer |
---|
11 | |
---|
12 | description Python package for HDF5 file access. |
---|
13 | long_description PyTables is a python package used to access \ |
---|
14 | HDF5 files, and can efficiently manage extremely \ |
---|
15 | large hierarchical data sets. |
---|
16 | |
---|
17 | homepage http://www.pytables.org/ |
---|
18 | master_sites ${homepage}/download/stable/ |
---|
19 | distname pytables-${version} |
---|
20 | |
---|
21 | checksums md5 0afe29dd420bfdfbd2a4380b4ac7fbee |
---|
22 | |
---|
23 | # * python25, hdf5, py25-numpy, and zlib are the required prerequisites. See: |
---|
24 | # http://www.pytables.org/docs/manual/ch02.html#sourceInstallationDescr |
---|
25 | # * Dependence on bzip2 overrides use of the the OS X version. |
---|
26 | # * py25-setuptools is used by the setup.py install script. |
---|
27 | # * py25-scientific is required by the nctoh5 script. |
---|
28 | depends_lib-append port:python25 \ |
---|
29 | port:hdf5 \ |
---|
30 | port:py25-numpy \ |
---|
31 | port:zlib \ |
---|
32 | port:bzip2 \ |
---|
33 | port:py25-setuptools \ |
---|
34 | port:py25-scientific |
---|
35 | |
---|
36 | # Patch forces the use of setuptools, then appends "-py25" to the ptdump, |
---|
37 | # ptrepack, and nctoh5 utility scripts to avoid interference with those |
---|
38 | # from installs to other versions of python. |
---|
39 | patchfiles patch-setup.py |
---|
40 | |
---|
41 | build.target build_ext |
---|
42 | build.args --inplace \ |
---|
43 | --hdf5=${prefix} \ |
---|
44 | --bzip2=${prefix} |
---|
45 | |
---|
46 | destroot.args --hdf5=${prefix} \ |
---|
47 | --bzip2=${prefix} |
---|
48 | |
---|
49 | post-destroot { |
---|
50 | xinstall -m 644 -W ${worksrcpath} ANNOUNCE.txt LICENSE.txt README.txt \ |
---|
51 | MIGRATING_TO_2.x.txt RELEASE_NOTES.txt THANKS TODO.txt \ |
---|
52 | ${destroot}${prefix}/share/doc/${name} |
---|
53 | } |
---|
54 | |
---|
55 | variant lzo description {Use lzo compression library} { |
---|
56 | depends_lib-append port:lzo |
---|
57 | build.args-append --lzo=${prefix} |
---|
58 | destroot.args-append --lzo=${prefix} |
---|
59 | } |
---|
60 | |
---|
61 | livecheck.version pytables-${version} |
---|