Skip to content

Commit

Permalink
Add libevalhyd (#1219)
Browse files Browse the repository at this point in the history
* add libevalhyd

* Update recipe.yaml

* Update recipe.yaml

---------

Co-authored-by: Thorsten Beier <[email protected]>
  • Loading branch information
fbourgin and DerThorsten authored Jul 16, 2024
1 parent b1a9f4d commit 20a5254
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions recipes/recipes_emscripten/libevalhyd/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
context:
name: libevalhyd
version: 0.1.2

package:
name: libevalhyd
version: ${{ version }}

source:
url: https://gitlab.irstea.fr/HYCAR-Hydro/evalhyd/evalhyd-cpp/-/archive/v${{ version }}/evalhyd-cpp-v${{ version }}.tar.gz
sha256: 637ba5a227d890fc559fecf41a2c90ffe45629fc756e2d34ec1906b6c2a21b26

build:
number: 0
script:
- if: win
then: |
cmake -G "Ninja" -D EVALHYD_BUILD_TEST=OFF -D CMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% %SRC_DIR%
ninja install/
else: |
cmake ${CMAKE_ARGS} -G "Ninja" -DEVALHYD_BUILD_TEST=OFF -DCMAKE_INSTALL_PREFIX=$PREFIX $SRC_DIR -DCMAKE_INSTALL_LIBDIR=lib
ninja install
requirements:
build:
- ${{ compiler('cxx') }}
- cmake >=3.15
- ninja
host:
- xtl >=0.7.5
- xtensor >=0.24.6
run:
- xtl >=0.7.5
- xtensor >=0.24.6

tests:
- script:
- if: unix or emscripten
then:
- test -d ${PREFIX}/include/evalhyd
- test -f ${PREFIX}/include/evalhyd/evald.hpp
- test -f ${PREFIX}/include/evalhyd/evalp.hpp
- test -f ${PREFIX}/lib/cmake/EvalHyd/EvalHydConfig.cmake
- test -f ${PREFIX}/lib/cmake/EvalHyd/EvalHydConfigVersion.cmake
- if: win
then:
- if not exist %LIBRARY_PREFIX%\include\evalhyd\evald.hpp (exit 1)
- if not exist %LIBRARY_PREFIX%\include\evalhyd\evalp.hpp (exit 1)
- if not exist %LIBRARY_PREFIX%\lib\cmake\EvalHyd\EvalHydConfig.cmake (exit 1)
- if not exist %LIBRARY_PREFIX%\lib\cmake\EvalHyd\EvalHydConfigVersion.cmake (exit 1)

about:
homepage: https://hydrogr.github.io/evalhyd
license: GPL-3.0-or-later
license_file: LICENCE.rst
summary: A C++ library to evaluate streamflow predictions
description: |
A header-only C++ library to evaluate deterministic and
probabilistic streamflow predictions
documentation: https://hydrogr.github.io/evalhyd/cpp
repository: https://gitlab.irstea.fr/HYCAR-Hydro/evalhyd/evalhyd-cpp

extra:
recipe-maintainers:
- fbourgin
- ThibHlln

0 comments on commit 20a5254

Please sign in to comment.