Ticket #33167: Portfile.2

File Portfile.2, 1.7 KB (added by lsinger@…, 13 years ago)
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem              1.0
5PortGroup               python 1.0
6
7name                    py-novas_py
8version                 3.1
9categories-append       science
10platforms               darwin
11maintainers             ram caltech.edu:lsinger
12description             Naval Observatory Vector Astrometry Software, \
13                        Python Edition
14long_description \
15  Python ctypes wrapper for Naval Observatory Vector Astrometry Software \
16  (NOVAS).  Provides extremely accurate astrometric coordinate conversions \
17  and position of solar system objects.
18
19homepage                http://aa.usno.navy.mil/software/novas/novas_py/
20master_sites            ${homepage}
21distname                NOVAS_Py-${version}
22checksums               md5     c8e57e9c33d6475a4fb170e9dec46119 \
23                        sha1    8366d2a69708d1bd1a989de48d92eb789cb9b3a2 \
24                        rmd160  304837953cc1b9917585ba7dacf8c404c3c9a816
25
26python.versions         25 26 27
27python.default_version  27
28
29default_variants        +DE405
30
31variant DE405 description \
32{Download and prepare a JPL DE405 solar system ephemeris for use with NOVAS} {
33    post-build {
34        system "cd ${worksrcpath} && ${build.cmd} build_ephemeris"
35    }
36    post-destroot {
37        xinstall -d ${destroot}${prefix}/share/${subport}
38        xinstall ${worksrcpath}/DE405.bin ${destroot}${prefix}/share/${subport}/
39    }
40}
41
42patchfiles              patch-compat.py.diff
43
44if {${name} == ${subport}} {
45  livecheck.type      regex
46  livecheck.url       ${master_sites}
47  livecheck.regex     {NOVAS_Py-(\d+(?:\.\d+)*).tar.gz}
48} else {
49  livecheck.type  none
50}