summaryrefslogtreecommitdiff
path: root/hstcal/meta.yaml
blob: c51e72190be71116c55b159aa7df8eece3db25c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{% set name = 'hstcal' %}
{% set version = GIT_DESCRIBE_TAG ~ ".dev" ~ GIT_DESCRIBE_NUMBER ~ "+" ~ GIT_DESCRIBE_HASH %}
{% if version[0] == 'v' %}
{%   set version = version[1:] %}
{% endif %}
{% set number = '6' %}
# number = 6 ; links against cfitsio >= 3.440 (no curl)

about:
    home: https://github.com/spacetelescope/{{ name }}
    license: BSD
    summary: hstcal

build:
    number: {{ number }}

package:
    name: {{ name }}
    version: {{ version }}

requirements:
    build:
      - cfitsio
      - pkg-config
      - gcc >=4.7

    run:
      - cfitsio
      - libgcc >=4.7

source:
    # The git rev may be overridden by setting an env var with the name
    # "ASCO_GIT_REV_<package short name>" before building the recipe.
    # i.e "ASCO_GIT_REV_hstcal=2.0.0"
    # The value may be a git full hash, short hash, branch, or tag name.
    # The default value is "master".
    git_rev: {{ environ.get("ASCO_GIT_REV_"+name, "master") }}
    git_url: https://github.com/spacetelescope/{{ name }}.git

test:
  commands:
    - calacs.e --gitinfo
    - otool -L $(which calacs.e) [osx]
    - ldd $(which calacs.e) [linux]