Commits

reneeotten authored and Perry E. Metzger committed a1369bff1d5
py-ephem: fix livecheck

- modernize checksums - enable tests - update modeline
No tags

python/py-ephem/Portfile

Modified
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
1 +# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2 2
3 3 PortSystem 1.0
4 4 PortGroup python 1.0
5 5
6 6 name py-ephem
7 7 version 3.7.6.0
8 8 categories-append science
9 9 platforms darwin
10 10 maintainers {aronnax @lpsinger} openmaintainer
11 11 license LGPL-3
15 15 astronomy computations. The underlying numeric routines are coded in C and \
16 16 are the same ones that drive the popular XEphem astronomy application, whose \
17 17 author, Elwood Charles Downey, generously gave permission for their use in \
18 18 PyEphem. The name ephem is short for the word ephemeris, which is the \
19 19 traditional term for a table giving the position of a planet, asteroid, or \
20 20 comet for a series of dates.
21 21
22 22 homepage http://rhodesmill.org/pyephem/
23 23 distname ephem-${version}
24 24 master_sites pypi:e/ephem/
25 -checksums md5 405a109f3017251ecd8c2890d850f649 \
26 - rmd160 32e5fcb0e74936706b68bd811a9dcdf55b97b1f8 \
27 - sha256 7a4c82b1def2893e02aec0394f108d24adb17bd7b0ca6f4bc78eb7120c0212ac
25 +
26 +checksums rmd160 32e5fcb0e74936706b68bd811a9dcdf55b97b1f8 \
27 + sha256 7a4c82b1def2893e02aec0394f108d24adb17bd7b0ca6f4bc78eb7120c0212ac \
28 + size 739442
28 29
29 30 python.versions 27 34 35 36
30 31
31 -if {${name} eq ${subport}} {
32 - livecheck.type regex
33 - livecheck.url {https://pypi.python.org/pypi?:action=doap&name=pyephem}
34 - livecheck.regex {<release><Version><revision>([^<]+)</revision></Version></release>}
35 -} else {
32 +if {${name} ne ${subport}} {
36 33 livecheck.type none
34 +
35 + test.dir "${worksrcpath}/build/lib.macosx-${macosx_deployment_target}-${configure.build_arch}-${python.branch}"
36 + test.run yes
37 + test.cmd ${python.bin} -m unittest discover
38 + test.target
37 39 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut