Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions recipes/recipes_emscripten/passagemath-sirocco/recipe.yaml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import pytest


def test_import_passagemath_sirocco():
import passagemath_sirocco
15 changes: 15 additions & 0 deletions recipes/recipes_emscripten/sirocco/build.sh
Original file line number Diff line number Diff line change
@@ -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
44 changes: 44 additions & 0 deletions recipes/recipes_emscripten/sirocco/recipe.yaml
Original file line number Diff line number Diff line change
@@ -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
Loading