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
8 changes: 0 additions & 8 deletions recipes/recipes_emscripten/fricas0-data/build.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
#!/usr/bin/env bash
set -euxo pipefail

cd "${SRC_DIR}"

ecl -eval '(progn (load "lisp/load-lisp.lisp") (load "lisp/compile-interp.lisp") (quit))'
echo ')lisp (progn (load "lisp/compile-algebra.lisp") (quit))' | ecl -load fricas

find interp -maxdepth 1 -type f -name "*.lisp" -delete
find algebra -maxdepth 1 -type f -name "*.lsp" -delete

DATA_DIR="$PREFIX/share/fricas0-data"
mkdir -p "$DATA_DIR"

Expand Down
4 changes: 1 addition & 3 deletions recipes/recipes_emscripten/fricas0-data/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ source:
sha256: a26f48558c5b4fe346382cb0d7fa24b638e1a89f3396be8049dc4add9dbda57e

build:
number: 0
number: 1
noarch: generic

requirements:
build:
- ecl
- ${{ compiler('cxx') }}

tests:
- package_contents:
Expand Down
11 changes: 10 additions & 1 deletion recipes/recipes_emscripten/fricas0-ecl/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ make install

export ECL_TO_RUN="${HOST_ECL_PREFIX}/bin/ecl"

cd ./fricas0-data

$ECL_TO_RUN -eval '(progn (load "lisp/load-lisp.lisp") (load "lisp/compile-interp.lisp") (quit))'
echo ')lisp (progn (load "lisp/compile-algebra.lisp") (quit))' | $ECL_TO_RUN -load fricas

find interp -maxdepth 1 -type f -name "*.lisp" -delete
find algebra -maxdepth 1 -type f -name "*.lsp" -delete
cd ..

make distclean || true

# strip the x32 ABI suffix that GMP's sub-configure can't handle.
Expand Down Expand Up @@ -59,4 +68,4 @@ python3 "${EMSCRIPTEN_DIR}/tools/file_packager.py" \
--preload "${SRC_DIR}/fricas0-data@/fricas0-data" \
--js-output="${PREFIX}/bin/ecl.data.js"

cp -r "web"/* "${PREFIX}/bin/"
cp -r "web"/* "${PREFIX}/bin/"
6 changes: 4 additions & 2 deletions recipes/recipes_emscripten/fricas0-ecl/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ source:
target_directory: web

build:
number: 0
number: 1

requirements:
build:
- ${{ compiler("c") }}
- make
- pkg-config
- gcc
- gxx
host:
- gmp
- libffi
Expand All @@ -43,4 +45,4 @@ about:
extra:
recipe-maintainers:
- oldk1331
- wangyenshu
- wangyenshu