Commit fc12e32cb13e75b14501ade5b4e7189bfd198c51
1 parent
d3d2a2fd
Add conda recipes
Showing
7 changed files
with
54 additions
and
2 deletions
.gitignore
configure.ac
dev/conda-recipes/build.sh
0 → 100755
| 1 | +#!/bin/bash | |
| 2 | + | |
| 3 | +# Set Mac OS X minimum deployment target | |
| 4 | +if [ `uname` == Darwin ]; then | |
| 5 | + export CXXFLAGS="-mmacosx-version-min=${MACOSX_DEPLOYMENT_TARGET}" | |
| 6 | + export LDFLAGS="-mmacosx-version-min=${MACOSX_DEPLOYMENT_TARGET}" | |
| 7 | +fi | |
| 8 | + | |
| 9 | +# Configure GammaLib | |
| 10 | +./configure --prefix="$PREFIX" | |
| 11 | + | |
| 12 | +# Build | |
| 13 | +make | |
| 14 | + | |
| 15 | +# Install | |
| 16 | +make install | ... | ... |
dev/conda-recipes/conda_build_config.yaml
0 → 100644
dev/conda-recipes/meta.yaml.in
0 → 100644
| 1 | +package: | |
| 2 | + name: gammalib | |
| 3 | + version: @VERSION@ | |
| 4 | + | |
| 5 | + | |
| 6 | +source: | |
| 7 | + url: http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-@VERSION@.tar.gz | |
| 8 | + #md5: a2751da55f7b97d48db57156e8096792 | |
| 9 | + | |
| 10 | +build: | |
| 11 | + number: 1 | |
| 12 | + binary_relocation: True | |
| 13 | + detect_binary_files_with_prefix: True | |
| 14 | + | |
| 15 | +requirements: | |
| 16 | + build: | |
| 17 | + - python | |
| 18 | + - setuptools | |
| 19 | + - cfitsio | |
| 20 | + - readline | |
| 21 | + - ncurses | |
| 22 | + - swig | |
| 23 | + run: | |
| 24 | + - python | |
| 25 | + - cfitsio | |
| 26 | + - readline | |
| 27 | + - ncurses | |
| 28 | + | |
| 29 | +about: | |
| 30 | + home: http://cta.irap.omp.eu/gammalib | |
| 31 | + license: GPL3 | ... | ... |
dev/release.py
| ... | ... | @@ -385,7 +385,6 @@ def set_package_version(version): |
| 385 | 385 | # file name should include their access paths with respect to the source |
| 386 | 386 | # directory |
| 387 | 387 | filenames = ['configure.ac', |
| 388 | - 'gammalib.pc.in', | |
| 389 | 388 | 'README.md', |
| 390 | 389 | 'sonar-project.properties', |
| 391 | 390 | 'doc/Doxyfile', | ... | ... |
gammalib.pc.in
| ... | ... | @@ -6,7 +6,7 @@ includedir=${prefix}/include |
| 6 | 6 | Name: GammaLib |
| 7 | 7 | Description: Versatile toolbox for analysis of astronomical gamma-ray data |
| 8 | 8 | URL: http://cta.irap.omp.eu/gammalib/ |
| 9 | -Version: 1.5.0.dev1 | |
| 9 | +Version: @VERSION@ | |
| 10 | 10 | Requires: |
| 11 | 11 | Requires.private: @CFITSIO@ |
| 12 | 12 | Conflicts: | ... | ... |