Commit d2ee6a3866fe37b4703aabee1469f9acc14b76fb
1 parent
47dab4bf
Add conda.recipe
Showing
10 changed files
with
65 additions
and
2 deletions
.gitignore
Makefile.am
| @@ -31,6 +31,12 @@ pkgconfigdir = $(libdir)/pkgconfig | @@ -31,6 +31,12 @@ pkgconfigdir = $(libdir)/pkgconfig | ||
| 31 | # Files to install in Pkgconfig directory | 31 | # Files to install in Pkgconfig directory |
| 32 | pkgconfig_DATA = ctools.pc | 32 | pkgconfig_DATA = ctools.pc |
| 33 | 33 | ||
| 34 | +# Conda activate directory | ||
| 35 | +condaactivatedir = $(sysconfdir)/conda/activate.d | ||
| 36 | +condaactivate_DATA = dev/ctools-activate.sh | ||
| 37 | +condadeactivatedir = $(sysconfdir)/conda/deactivate.d | ||
| 38 | +condadeactivate_DATA = dev/ctools-deactivate.sh | ||
| 39 | + | ||
| 34 | # Manual pages to install | 40 | # Manual pages to install |
| 35 | man_MANS = | 41 | man_MANS = |
| 36 | 42 |
configure.ac
| @@ -1047,6 +1047,7 @@ AC_CONFIG_FILES([Makefile | @@ -1047,6 +1047,7 @@ AC_CONFIG_FILES([Makefile | ||
| 1047 | pyext/Makefile | 1047 | pyext/Makefile |
| 1048 | pyext/setup.py | 1048 | pyext/setup.py |
| 1049 | pyext/ctools/__init__.py | 1049 | pyext/ctools/__init__.py |
| 1050 | + dev/conda.recipe/meta.yaml | ||
| 1050 | cscripts/__init__.py | 1051 | cscripts/__init__.py |
| 1051 | cscripts/Makefile | 1052 | cscripts/Makefile |
| 1052 | caldb/Makefile | 1053 | caldb/Makefile |
ctools.pc.in
| @@ -6,7 +6,7 @@ includedir=${prefix}/include | @@ -6,7 +6,7 @@ includedir=${prefix}/include | ||
| 6 | Name: ctools | 6 | Name: ctools |
| 7 | Description: CTA science analysis tools | 7 | Description: CTA science analysis tools |
| 8 | URL: http://cta.irap.omp.eu/ctools | 8 | URL: http://cta.irap.omp.eu/ctools |
| 9 | -Version: 1.5.0.dev1 | 9 | +Version: @VERSION@ |
| 10 | Requires: | 10 | Requires: |
| 11 | Requires.private: gammalib >= 1.5.0.dev1 | 11 | Requires.private: gammalib >= 1.5.0.dev1 |
| 12 | Conflicts: | 12 | Conflicts: |
dev/conda.recipe/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 ctools | ||
| 10 | +./configure --prefix="$PREFIX" | ||
| 11 | + | ||
| 12 | +# Build | ||
| 13 | +make | ||
| 14 | + | ||
| 15 | +# Install | ||
| 16 | +make install |
dev/conda.recipe/conda_build_config.yaml
0 → 100644
dev/conda.recipe/meta.yaml.in
0 → 100644
| 1 | +package: | ||
| 2 | + name: ctools | ||
| 3 | + version: "@VERSION@" | ||
| 4 | + | ||
| 5 | + | ||
| 6 | +source: | ||
| 7 | + fn: ctools-@VERSION@.tar.gz | ||
| 8 | + url: http://cta.irap.omp.eu/ctools/releases/ctools/ctools-@VERSION@.tar.gz | ||
| 9 | + #md5: a2751da55f7b97d48db57156e8096792 | ||
| 10 | + | ||
| 11 | +build: | ||
| 12 | + number: 1 | ||
| 13 | + binary_relocation: True | ||
| 14 | + detect_binary_files_with_prefix: True | ||
| 15 | + | ||
| 16 | +requirements: | ||
| 17 | + build: | ||
| 18 | + - python | ||
| 19 | + - setuptools | ||
| 20 | + - swig | ||
| 21 | + - gammalib >=1.5.0.dev1 | ||
| 22 | + run: | ||
| 23 | + - python | ||
| 24 | + - gammalib >=1.5.0.dev1 | ||
| 25 | + | ||
| 26 | +about: | ||
| 27 | + home: http://cta.irap.omp.eu/ctools | ||
| 28 | + license: GPL3 |
dev/ctools-activate.sh
0 → 100644
dev/ctools-deactivate.sh
0 → 100644
dev/release.py
| @@ -385,7 +385,6 @@ def set_package_version(version): | @@ -385,7 +385,6 @@ def set_package_version(version): | ||
| 385 | # file name should include their access paths with respect to the source | 385 | # file name should include their access paths with respect to the source |
| 386 | # directory | 386 | # directory |
| 387 | filenames = ['configure.ac', | 387 | filenames = ['configure.ac', |
| 388 | - 'ctools.pc.in', | ||
| 389 | 'README.md', | 388 | 'README.md', |
| 390 | 'sonar-project.properties', | 389 | 'sonar-project.properties', |
| 391 | 'doc/Doxyfile', | 390 | 'doc/Doxyfile', |