Ticket #15771: Portfile

File Portfile, 1.7 KB (added by tom.duck@…, 16 years ago)

py25-tables Portfile

Line 
1# $Id$
2
3PortSystem 1.0
4PortGroup python25 1.0
5
6name                    py25-tables
7version                 2.0.3
8categories-append       python science
9platforms               darwin
10maintainers             tom.duck@dal.ca openmaintainer
11
12description             Python package for HDF5 file access.
13long_description        PyTables is a python package used to access \
14                        HDF5 files, and can efficiently manage extremely \
15                        large hierarchical data sets. 
16
17homepage                http://www.pytables.org/
18master_sites            ${homepage}/download/stable/
19distname                pytables-${version}
20
21checksums               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.
28depends_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.
39patchfiles              patch-setup.py
40
41build.target            build_ext
42build.args              --inplace \
43                        --hdf5=${prefix} \
44                        --bzip2=${prefix}
45
46destroot.args           --hdf5=${prefix} \
47                        --bzip2=${prefix}
48
49post-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
55variant 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
61livecheck.version pytables-${version}