Commit fc12e32cb13e75b14501ade5b4e7189bfd198c51

Authored by Jürgen Knödlseder
1 parent d3d2a2fd

Add conda recipes

.gitignore
... ... @@ -20,6 +20,7 @@ inst/mwl/test/*.trs
20 20 pyext/gammalib/*.py
21 21 pyext/gammalib/*.cpp
22 22 pyext/setup.py
  23 +dev/conda-recipes/meta.yaml
23 24 m4/libtool.m4
24 25 m4/ltoptions.m4
25 26 m4/ltsugar.m4
... ...
configure.ac
... ... @@ -1444,6 +1444,7 @@ AC_CONFIG_FILES([Makefile
1444 1444 pyext/Makefile
1445 1445 pyext/setup.py
1446 1446 pyext/gammalib/__init__.py
  1447 + dev/conda-recipes/meta.yaml
1447 1448 examples/Makefile
1448 1449 examples/cpp/Makefile
1449 1450 gammalib.pc
... ...
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
  1 +python:
  2 + - 2.7
  3 + - 3.5
  4 + - 3.6
... ...
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:
... ...