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 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | |
---|
7 | name py-novas_py |
---|
8 | version 3.1 |
---|
9 | categories-append science |
---|
10 | platforms darwin |
---|
11 | maintainers ram caltech.edu:lsinger |
---|
12 | description Naval Observatory Vector Astrometry Software, \ |
---|
13 | Python Edition |
---|
14 | long_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 | |
---|
19 | homepage http://aa.usno.navy.mil/software/novas/novas_py/ |
---|
20 | master_sites ${homepage} |
---|
21 | distname NOVAS_Py-${version} |
---|
22 | checksums md5 c8e57e9c33d6475a4fb170e9dec46119 \ |
---|
23 | sha1 8366d2a69708d1bd1a989de48d92eb789cb9b3a2 \ |
---|
24 | rmd160 304837953cc1b9917585ba7dacf8c404c3c9a816 |
---|
25 | |
---|
26 | python.versions 25 26 27 |
---|
27 | python.default_version 27 |
---|
28 | |
---|
29 | default_variants +DE405 |
---|
30 | |
---|
31 | variant 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 | |
---|
42 | patchfiles patch-compat.py.diff |
---|
43 | |
---|
44 | if {${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 | } |
---|