mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 10:35:17 +03:00
98e4a91c8b
* +cfitsio * add testprog.tpt to test fixtures --------- Co-authored-by: Jacob Heider <jacob@tea.xyz>
37 lines
739 B
YAML
37 lines
739 B
YAML
distributable:
|
|
url: https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio-{{version}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
url: https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/
|
|
match: /cfitsio-\d+\.\d+(\.\d+)?\.tar\.gz/
|
|
strip:
|
|
- /^cfitsio-/
|
|
- /\.tar\.gz$/
|
|
|
|
dependencies:
|
|
darwin:
|
|
zlib.net: '*'
|
|
|
|
build:
|
|
dependencies:
|
|
tea.xyz/gx/cc: c99
|
|
tea.xyz/gx/make: '*'
|
|
script: |
|
|
./configure $ARGS
|
|
make shared
|
|
make install
|
|
env:
|
|
ARGS:
|
|
- --prefix="{{ prefix }}"
|
|
- --enable-reentrant
|
|
|
|
test:
|
|
dependencies:
|
|
tea.xyz/gx/cc: c99
|
|
script: |
|
|
cc testprog.c -o testprog -lcfitsio
|
|
./testprog > testprog.lis
|
|
cmp testprog.lis testprog.out
|
|
cmp testprog.fit testprog.std
|