Commits

Ryan Schmidt authored ceecf99fded
cdf-to-fits: Update to 1.0-20180227

Closes: https://trac.macports.org/ticket/54133
No tags

science/cdf-to-fits/Portfile

Modified
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 +
1 3 PortSystem 1.0
2 4
3 5 name cdf-to-fits
4 -version 1.0
5 -revision 1
6 +version 1.0-20180227
6 7 maintainers {aronnax @lpsinger}
7 8 categories science
8 9 description CDF to FITS converter
9 10 long_description Tool for converting CDF files to FITS files
10 -homepage http://cdf.gsfc.nasa.gov/html/dtws.html
11 11 platforms darwin
12 -fetch.use_epsv no
13 -master_sites ftp://cdaweb.gsfc.nasa.gov/pub/cdf/conversion_tools/source/
12 +
13 +homepage https://cdf.gsfc.nasa.gov/html/dttools.html
14 +master_sites https://spdf.gsfc.nasa.gov/pub/software/cdf/conversion_tools/source/
14 15 distname ${name}
15 16 dist_subdir ${name}/${version}
16 -extract.suffix .tar
17 -extract.cmd tar
18 -extract.pre_args -xf
19 -extract.post_args
17 +
18 +checksums rmd160 817d1f3fefb59b44cf601f8b1ffe17146e9137d6 \
19 + sha256 603fd9d3d3c18ff5e8ad8bfb59a95196434737782f15caa50ba42222bae1adb8 \
20 + size 89676
20 21
21 22 # cdf is not universal
22 23 universal_variant no
23 24
24 -checksums md5 d805504740ec92c40a85b712fe57b168 \
25 - sha1 c2a6802b4819f4f39a6f24ecd940c9841e19fa16 \
26 - rmd160 091fa81c6bc92a875134e041aa2da6152dfb754b
27 -
28 25 depends_lib port:cfitsio \
29 26 port:cdf
30 27
28 +extract.mkdir yes
29 +post-extract {
30 + file attributes ${configure.dir}/configure -permissions a+x
31 +}
32 +
31 33 patchfiles patch-Makefile.in.diff
32 34
33 35 configure.args --with-cfitsio-prefix=${prefix} \
34 36 --with-cdf-prefix=${prefix}
35 37
36 -destroot.post_args INSTDIR=${destroot}${prefix}/bin
38 +build.target cdf-to-fits
39 +
40 +destroot.post_args INSTALL_DIR=${destroot}${prefix}/bin
37 41
38 42 post-destroot {
39 - set docdir ${destroot}${prefix}/share/doc/${name}
40 - xinstall -d ${docdir}
41 - xinstall -m 644 -W ${worksrcpath} \
43 + set docdir ${prefix}/share/doc/${subport}
44 + xinstall -d ${destroot}${docdir}
45 + xinstall -m 0644 -W ${worksrcpath} \
42 46 README \
43 - ${docdir}
47 + ${destroot}${docdir}
44 48 }
49 +
50 +livecheck.type none

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

Add shortcut