Ticket #33707: Portfile

File Portfile, 12.1 KB (added by lpsinger (Leo Singer), 12 years ago)

new Portfile

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
9revision                1
10categories-append       science
11platforms               darwin
12maintainers             aronnax
13description             Naval Observatory Vector Astrometry Software, \
14                        Python Edition
15long_description \
16  Python ctypes wrapper for Naval Observatory Vector Astrometry Software \
17  (NOVAS).  Provides extremely accurate astrometric coordinate conversions \
18  and position of solar system objects.
19
20homepage                http://aa.usno.navy.mil/software/novas/novas_py/
21master_sites            ${homepage}:py \
22                        ftp://ssd.jpl.nasa.gov/pub/eph/planets/ascii/de405/:ephemeris
23distname                NOVAS_Py-${version}
24distfiles               ${distname}${extract.suffix}:py
25checksums               ${distname}${extract.suffix} \
26                        md5     c8e57e9c33d6475a4fb170e9dec46119 \
27                        sha1    8366d2a69708d1bd1a989de48d92eb789cb9b3a2 \
28                        rmd160  304837953cc1b9917585ba7dacf8c404c3c9a816
29
30python.versions         25 26 27
31python.default_version  27
32
33if {${name} == ${subport}} {
34
35livecheck.type          regex
36livecheck.url           ${master_sites}
37livecheck.regex         {NOVAS_Py-(\d+(?:\.\d+)*).tar.gz}
38
39} else {
40
41default_variants        +DE405
42
43variant DE405 description \
44{Download and prepare a JPL DE405 solar system ephemeris for use with NOVAS} {
45
46    distfiles-append    ascp1600.405:ephemeris \
47                        ascp1620.405:ephemeris \
48                        ascp1640.405:ephemeris \
49                        ascp1660.405:ephemeris \
50                        ascp1680.405:ephemeris \
51                        ascp1700.405:ephemeris \
52                        ascp1720.405:ephemeris \
53                        ascp1740.405:ephemeris \
54                        ascp1760.405:ephemeris \
55                        ascp1780.405:ephemeris \
56                        ascp1800.405:ephemeris \
57                        ascp1820.405:ephemeris \
58                        ascp1840.405:ephemeris \
59                        ascp1860.405:ephemeris \
60                        ascp1880.405:ephemeris \
61                        ascp1900.405:ephemeris \
62                        ascp1920.405:ephemeris \
63                        ascp1940.405:ephemeris \
64                        ascp1960.405:ephemeris \
65                        ascp1980.405:ephemeris \
66                        ascp2000.405:ephemeris \
67                        ascp2020.405:ephemeris \
68                        ascp2040.405:ephemeris \
69                        ascp2060.405:ephemeris \
70                        ascp2080.405:ephemeris \
71                        ascp2100.405:ephemeris \
72                        ascp2120.405:ephemeris \
73                        ascp2140.405:ephemeris \
74                        ascp2160.405:ephemeris \
75                        ascp2180.405:ephemeris \
76                        ascp2200.405:ephemeris \
77                        header.405:ephemeris
78
79    checksums-append    ascp1600.405 \
80                        rmd160  382a9db27899ace93688778fdeccdbc289b5c2a3 \
81                        sha256  4f8a05fa29e338220ff7dd734d36525aee9b66fbe9ff149a4cb31d60ce2bca90 \
82                        ascp1620.405 \
83                        rmd160  79de11121471eda2e12955c315dfc95ec849ff50 \
84                        sha256  aa78b6d9d88acbbd35f9aba9db57a154ac18ac57f834907bb74d216b00882e1b \
85                        ascp1640.405 \
86                        rmd160  6c55e500e3c98da37fb44cf64b31845999d708e0 \
87                        sha256  a1f1b310bdb732a5a612b08048801e1ff47ad4d779929c4ec52faaa795a5070f \
88                        ascp1660.405 \
89                        rmd160  e596dc7e58a4ce710312779bd9d9ddc1b77cb61d \
90                        sha256  c9add74053d2609ca77da84637a77f8357d474ad4847065bc85037e15928d419 \
91                        ascp1680.405 \
92                        rmd160  444842917234864890f5e06a0d97a207fd5e6fae \
93                        sha256  5607298bbd9896f909e407c2e4e66e3766e697e2bb29322e0e296e1bc44fa517 \
94                        ascp1700.405 \
95                        rmd160  7a1177482f330386b909cc4d9c4639953b764b2e \
96                        sha256  13d0bf4809965fc91301c11e7670899434e532962ea66b0a5c2064281cc20cbb \
97                        ascp1720.405 \
98                        rmd160  9cd1f8cfe96ceacc17e71208d843cce3a1df78c8 \
99                        sha256  62047300a9002bdc9d89dbf61a8e9e9b237c21563619a29d038938c46759b8c2 \
100                        ascp1740.405 \
101                        rmd160  1b4af8c58fcf8719651ae7b2703cc3dd54969dff \
102                        sha256  32153023fb139281e28c6be20ea69443f7035ccd7279131c192ed658b0b5f64b \
103                        ascp1760.405 \
104                        rmd160  663c77b000790909e2d3c79891d6e5b532d47e4b \
105                        sha256  e45f6f107f4943cf48e5d4969626b3d6b9098b353980259c376777dbe1f9ebfc \
106                        ascp1780.405 \
107                        rmd160  ea08e74068d5fd4feee611518ab5a08c6929d786 \
108                        sha256  533695e583949b8c19e8165d0a634571d5a5bbf1e3a8d1d0204e3fdc93c2ae0a \
109                        ascp1800.405 \
110                        rmd160  572608b84b22b97281fe0f2c4350fb5d6934949a \
111                        sha256  2d59261240d6efbf2b40e1359b15cc700ac3c6fff9e7fac58b51f4e4922f66a5 \
112                        ascp1820.405 \
113                        rmd160  a3f97b6d37cb1dda48f33b39ec65023ca14cc355 \
114                        sha256  9177d04f5435490b11491cd97d0f0a2144e65f9fff9fe72b3aec17b62157314c \
115                        ascp1840.405 \
116                        rmd160  09869321c456937357e49fd55e5aa6ec0861b2d3 \
117                        sha256  cff8fa2225b6844cc3639e46c331659912aaf40e4107b72ebf53bd874d6e4c81 \
118                        ascp1860.405 \
119                        rmd160  230177413636c7e27826db3a29ef7088a57ce4dc \
120                        sha256  81e4fc9d729d3476ef96a23de566b0ea44ff77fe5a7571d757faedae70b6d5c5 \
121                        ascp1880.405 \
122                        rmd160  c3e33f6d5040faf19cc6a19f65d87738b27431a6 \
123                        sha256  19dc41504e640a4a319c4113edfdf8b915d0255b802563769cd6ef85a7f948b1 \
124                        ascp1900.405 \
125                        rmd160  f3aea5e45aba32ecc704d02393358a9b9b4ca363 \
126                        sha256  04f7a1568e89710374be5ae4c14335de2b62aa0197c1a513562b4dac0bb5607a \
127                        ascp1920.405 \
128                        rmd160  138184aaa80cbf5a9e90d6bebbf10801d0bde940 \
129                        sha256  85b25691f32fa16a0919781594a8f12e06928357b7c4b88bbda985a537375322 \
130                        ascp1940.405 \
131                        rmd160  ab7fd094a9dbc8c448b033f3fb03d2f6eba3fc03 \
132                        sha256  08d18219c1669344e28f8f3f2682e2fb0d10dbbca3c0bb9bee4c2e2c27025a54 \
133                        ascp1960.405 \
134                        rmd160  18deca719c672993af01f152cfd96e313d21beaa \
135                        sha256  0b2ce55428dcf24adce742bb3ce97080292611df42847f4f9a9253fd0acc49fa \
136                        ascp1980.405 \
137                        rmd160  f88f9bc4d39423611a00c66486edde8a0bc2fc21 \
138                        sha256  3f5b6787b617b3339546327d38a4ad806fd40bd0b0788d10131417ec5cf05c19 \
139                        ascp2000.405 \
140                        rmd160  cc4dd6e614ae803935a9c4b6632824419fc921e1 \
141                        sha256  cf9efe6c508c02cf30aa740aa2c2d36b726aebf5db947801222e4de3c69ece2a \
142                        ascp2020.405 \
143                        rmd160  455796d41c10e3e5f30376b66424dac27032d0de \
144                        sha256  c71df85a18820129f945ae0753815d514fdf8decc7dff8375c895611e9afbbbe \
145                        ascp2040.405 \
146                        rmd160  cb51c2d0b829b8a4f3aba5c5744e413b3d74eba8 \
147                        sha256  94b33ff564f9f4c134020b857f9caae5e102fda1c3847df5b0a1329fdb198c59 \
148                        ascp2060.405 \
149                        rmd160  28780e53211566eb564a8b72288d3070ba7280a2 \
150                        sha256  19e06cd08662e2723548edb68e21ac2cf909678e8320e8d4edb8460d512dd04e \
151                        ascp2080.405 \
152                        rmd160  f413df05e4c0107a2fafc47be1d88cc816ccb1ee \
153                        sha256  ea4a6bef9cc60ed33277ea8da57957037d7073cc465a2f22d527d81e6f8fc2ce \
154                        ascp2100.405 \
155                        rmd160  9d334db2a3e8b0f821cf202440316dd04c97d3b2 \
156                        sha256  e324f3744657bd0312e12a80b82eadbd0765d706d00b6fec0a77b17f1896ecaa \
157                        ascp2120.405 \
158                        rmd160  7034278a25e55021ce9f7e1e5613c97a81b75d16 \
159                        sha256  6a67d8424f7484d732f9c2e792d80b4392a98f030937a8852ff939fa5309ba80 \
160                        ascp2140.405 \
161                        rmd160  9d2306b7c18693d78ae5407f16023e3f42e8bfd6 \
162                        sha256  9d9e6007850289d875d8ff4706877f4e567de99b1e1c3ea86ce7bf547c6e7218 \
163                        ascp2160.405 \
164                        rmd160  b346d49f0f2bb3ddc8e2326eec4ec66ff2c59558 \
165                        sha256  e03c54358f5d204dfcd8d3a188581aeaf334524eb12d63fd1c3aa7d6a3fd0cf8 \
166                        ascp2180.405 \
167                        rmd160  c9f7bed19326d3606ad211e9ff44acdbb622e6f9 \
168                        sha256  c2ee7f64464352f913140d832e62f46b49f1bb68e17c916e66366627a226d4bc \
169                        ascp2200.405 \
170                        rmd160  40ba6e5e6d6bbec5d92685b7d9f12f73baf23ba2 \
171                        sha256  17926b40bd57cc0bca76d83908183caaca6d047819f947becd20f9e56b84b6da \
172                        header.405 \
173                        rmd160  ed2b0e1bddade151bec6a1fffac16c7b8c2f92a8 \
174                        sha256  1839f173ffa0df0abd3987a6ba73c1ff8942e79eb6ec9eb7f24065816d62aa94
175
176    patchfiles-append   patch-setup.py.diff
177
178    post-extract {
179        file copy "${distpath}/ascp1600.405" ${worksrcpath}
180        file copy "${distpath}/ascp1620.405" ${worksrcpath}
181        file copy "${distpath}/ascp1640.405" ${worksrcpath}
182        file copy "${distpath}/ascp1660.405" ${worksrcpath}
183        file copy "${distpath}/ascp1680.405" ${worksrcpath}
184        file copy "${distpath}/ascp1700.405" ${worksrcpath}
185        file copy "${distpath}/ascp1720.405" ${worksrcpath}
186        file copy "${distpath}/ascp1740.405" ${worksrcpath}
187        file copy "${distpath}/ascp1760.405" ${worksrcpath}
188        file copy "${distpath}/ascp1780.405" ${worksrcpath}
189        file copy "${distpath}/ascp1800.405" ${worksrcpath}
190        file copy "${distpath}/ascp1820.405" ${worksrcpath}
191        file copy "${distpath}/ascp1840.405" ${worksrcpath}
192        file copy "${distpath}/ascp1860.405" ${worksrcpath}
193        file copy "${distpath}/ascp1880.405" ${worksrcpath}
194        file copy "${distpath}/ascp1900.405" ${worksrcpath}
195        file copy "${distpath}/ascp1920.405" ${worksrcpath}
196        file copy "${distpath}/ascp1940.405" ${worksrcpath}
197        file copy "${distpath}/ascp1960.405" ${worksrcpath}
198        file copy "${distpath}/ascp1980.405" ${worksrcpath}
199        file copy "${distpath}/ascp2000.405" ${worksrcpath}
200        file copy "${distpath}/ascp2020.405" ${worksrcpath}
201        file copy "${distpath}/ascp2040.405" ${worksrcpath}
202        file copy "${distpath}/ascp2060.405" ${worksrcpath}
203        file copy "${distpath}/ascp2080.405" ${worksrcpath}
204        file copy "${distpath}/ascp2100.405" ${worksrcpath}
205        file copy "${distpath}/ascp2120.405" ${worksrcpath}
206        file copy "${distpath}/ascp2140.405" ${worksrcpath}
207        file copy "${distpath}/ascp2160.405" ${worksrcpath}
208        file copy "${distpath}/ascp2180.405" ${worksrcpath}
209        file copy "${distpath}/ascp2200.405" ${worksrcpath}
210        file copy "${distpath}/header.405"   ${worksrcpath}
211
212    }
213    post-build {
214        system "cd ${worksrcpath} && ${build.cmd} build_ephemeris --build-temp=."
215    }
216    post-destroot {
217        xinstall -d ${destroot}${prefix}/share/${subport}
218        xinstall ${worksrcpath}/DE405.bin ${destroot}${prefix}/share/${subport}/
219    }
220}
221
222patchfiles              patch-compat.py.diff
223
224livecheck.type  none
225
226}