Ticket #15825: Portfile

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

h4h5tools Portfile (added sha1 and rmd160 checksums)

Line 
1# $Id$
2
3PortSystem 1.0
4
5name                    h4h5tools
6version                 2.0
7categories-append       science
8platforms               darwin
9maintainers             dal.ca:tom.duck openmaintainer
10
11description             HDF4 to HDF5 conversion tools.
12long_description        Provides the h4toh5 conversion utility and \
13                        library.
14
15homepage                http://hdf.ncsa.uiuc.edu/h4toh5/
16master_sites            ftp://ftp.hdfgroup.org/HDF5/h4toh5/src/
17distname                h4h5tools_20
18
19checksums               md5 fda518fb9441fb04ca9f9b3ae0688260 \
20                        sha1 eb26d1c094d5d2ab9bef2b488cdbba709ebe6ca3 \
21                        rmd160 19a452244b3d4b6afa3f26ff0bd3b713b469e566
22
23depends_lib-append      port:hdf5 \
24                        port:hdf4
25
26configure.cc            ${prefix}/bin/h4cc
27
28# Setting H4_HAVE_NETCDF overcomes a bug in the distribution.  This has been
29# communicated upstream, and hopefully will be fixed.
30configure.cflags        -DH4_HAVE_NETCDF
31
32post-destroot {
33  xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
34  xinstall -m 644 -W ${worksrcpath} README.txt COPYING copyright.html \
35    ${destroot}${prefix}/share/doc/${name}
36
37  xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/doc/pdf
38  xinstall -m 644 -W ${worksrcpath}/doc \
39    H4H5ProgrammersNotes.pdf h4toh5lib_RM.pdf h4toh5lib_UG.pdf \
40    ${destroot}${prefix}/share/doc/${name}/doc/pdf
41
42  xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/doc/html
43  xinstall -m 644 -W ${worksrcpath}/doc \
44    h4toh5lib_RM.html h4toh5lib_UG.html \
45    ${destroot}${prefix}/share/doc/${name}/doc/html
46}
47
48livecheck.check    regexm
49livecheck.url      ${homepage}
50livecheck.regex    {Latest Official Release of H4 / H5 Conversion Library:.?<[^>]*>([0-9]+\.[0-9])}