mirror of
https://github.com/ivabus/pantry
synced 2024-12-01 20:45:10 +03:00
533e481097
no `cmp` on bare arch closes #5411
37 lines
958 B
YAML
37 lines
958 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:
|
|
script:
|
|
- ./configure $ARGS
|
|
- make shared
|
|
- make install
|
|
env:
|
|
ARGS:
|
|
- --prefix="{{ prefix }}"
|
|
- --enable-reentrant
|
|
|
|
test:
|
|
- cc testprog.c -o testprog -lcfitsio
|
|
- ./testprog > testprog.lis
|
|
- run: |
|
|
cmp testprog.lis testprog.out
|
|
cmp testprog.fit testprog.std
|
|
if: darwin
|
|
# archlinux doesn't have cmp or diff, but it has sha256sum
|
|
- run: |
|
|
test "$(sha256sum testprog.lis | awk '{print $1}')" = "$(sha256sum testprog.out | awk '{print $1}')"
|
|
test "$(sha256sum testprog.fit | awk '{print $1}')" = "$(sha256sum testprog.std | awk '{print $1}')"
|
|
if: linux
|