source: trunk/dports/x11/xtide/Portfile @ 18717

Last change on this file since 18717 was 18717, checked in by jberry, 14 years ago

Update xtide --> 2.8.3

  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1# $Id: Portfile,v 1.2 2006/07/24 17:38:39 jberry Exp $
2
3PortSystem 1.0
4
5name                                    xtide
6version                                 2.8.3
7
8categories                              x11 science
9platforms                               darwin
10maintainers                             darwinports@opendarwin.org jberry@darwinports.org
11
12description                             Tide prediction software, with a large database of locations.
13long_description                XTide is a package that provides tide and current predictions \
14                                                in a wide variety of formats.  Graphs, text listings, and calendars \
15                                                can be generated, or a tide clock can be provided on your desktop. \
16                                                For x11, plain command line, and as an http server.
17
18homepage                                http://www.flaterco.com/xtide
19master_sites                    ftp://www.flaterco.com/xtide
20use_bzip2                               yes
21
22set harmonics_version   20060708
23set harmonics_file              harmonics-dwf-${harmonics_version}.tcd.bz2
24
25distfiles                               ${distname}${extract.suffix} \
26                                                ${harmonics_file}
27checksums                               ${distname}${extract.suffix} md5 653fd807116290ab96bd5aa1bb974315 \
28                                                ${harmonics_file} md5 7e8acfeb5aa454c1c19fc14bb7263513
29extract.only                    ${distname}${extract.suffix}
30
31depends_lib                             port:libpng
32configure.args                  --mandir=${prefix}/share/man
33
34post-patch {
35        # Make the default harmonics path conveniently point to our file
36        reinplace s|harmonics.tcd|${prefix}/share/${name}/harmonics.tcd| ${worksrcpath}/TideContext.cc
37}
38
39post-destroot {
40        xinstall -d -m 755 ${destroot}${prefix}/share/xtide
41        xinstall -m 644 ${distpath}/${harmonics_file} ${destroot}${prefix}/share/${name}/harmonics.tcd.bz2
42        system "bzip2 -d ${destroot}${prefix}/share/${name}/harmonics.tcd.bz2"
43}
Note: See TracBrowser for help on using the repository browser.