diff --git a/recipes/recipes_emscripten/passagemath-sirocco/recipe.yaml b/recipes/recipes_emscripten/passagemath-sirocco/recipe.yaml new file mode 100644 index 0000000000..d56007ada7 --- /dev/null +++ b/recipes/recipes_emscripten/passagemath-sirocco/recipe.yaml @@ -0,0 +1,70 @@ +context: + version: 10.8.7 + +package: + name: passagemath-sirocco + version: ${{ version }} + +source: +- url: https://pypi.org/packages/source/p/passagemath-sirocco/passagemath_sirocco-${{ version }}.tar.gz + sha256: 23b2506a5612c57574e1ad4f4e36b1df5013d01eecc7337daecd6fe188d5a190 + +build: + script: ${{ PYTHON }} -m pip install . + number: 0 + +requirements: + build: + - python + - crossenv >=1.2 + - cross-python_emscripten-wasm32 + - ${{ compiler("c") }} + - ${{ compiler("cxx") }} + - pip + - passagemath-setup + - passagemath-environment + - cython + - cysignals + - numpy + - pkgconfig + - passagemath-abi == ${{ version }} + host: + - python + - gmp + - mpfr + - sirocco + - numpy + - passagemath-modules + run: + - python + - cysignals + - passagemath-modules + +tests: +- script: pytester + files: + recipe: + - test_passagemath_sirocco.py + requirements: + build: + - pytester + run: + - pytester-run + - passagemath-repl + +about: + license: GPL-2.0-or-later + license_file: README.rst + summary: 'passagemath: Certified root continuation with sirocco' + description: | + Distribution of a part of the Sage library. + It provides a Cython interface to the sirocco library for computing + topologically certified root continuation of bivariate polynomials. + +extra: + emscripten_tests: + python: + pytest_files: + - test_passagemath_sirocco.py + recipe-maintainers: + - mkoeppe diff --git a/recipes/recipes_emscripten/passagemath-sirocco/test_passagemath_sirocco.py b/recipes/recipes_emscripten/passagemath-sirocco/test_passagemath_sirocco.py new file mode 100644 index 0000000000..2fc0e5b9ca --- /dev/null +++ b/recipes/recipes_emscripten/passagemath-sirocco/test_passagemath_sirocco.py @@ -0,0 +1,5 @@ +import pytest + + +def test_import_passagemath_sirocco(): + import passagemath_sirocco diff --git a/recipes/recipes_emscripten/sirocco/build.sh b/recipes/recipes_emscripten/sirocco/build.sh new file mode 100644 index 0000000000..8dc1269469 --- /dev/null +++ b/recipes/recipes_emscripten/sirocco/build.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +set -euxo pipefail + +autoreconf --install + +emconfigure ./configure \ + --prefix="${PREFIX}" \ + --disable-shared \ + --enable-static \ + CPPFLAGS="-I${PREFIX}/include" \ + LDFLAGS="-L${PREFIX}/lib" + +emmake make + +emmake make install diff --git a/recipes/recipes_emscripten/sirocco/recipe.yaml b/recipes/recipes_emscripten/sirocco/recipe.yaml new file mode 100644 index 0000000000..d86d1734ec --- /dev/null +++ b/recipes/recipes_emscripten/sirocco/recipe.yaml @@ -0,0 +1,44 @@ +context: + name: sirocco + version: 2.1.1 + +package: + name: ${{ name }} + version: ${{ version }} + +source: + url: https://github.com/miguelmarco/SIROCCO2/releases/download/${{ version }}/libsirocco-${{ version }}.tar.gz + sha256: 83d1dd5622120eda42c475696235dd67be8072a76baad0a70693d9743a659a61 + +build: + number: 0 + +requirements: + build: + - autoconf + - automake + - libtool + - make + - ${{ compiler("c") }} + - ${{ compiler('cxx') }} + - pkg-config + - autoconf-archive + host: + - mpfr + - gmp + +tests: + - package_contents: + files: + - lib/libsirocco.a + - include/sirocco.h + +about: + homepage: https://github.com/miguelmarco/SIROCCO2 + license: GPL-3.0-only + license_file: LICENSE + summary: Sirocco Is a ROot Certified COntinuator + +extra: + recipe-maintainers: + - mkoeppe