Skip to content

Commit 0f4ac2d

Browse files
committed
Update emscripten package
1 parent 61afd1d commit 0f4ac2d

File tree

2 files changed

+15
-20
lines changed

2 files changed

+15
-20
lines changed

recipes/recipes/emscripten_emscripten-wasm32/build_compiler_package.sh

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,33 @@
11
#!/bin/bash
22

3+
mkdir -p ${PREFIX}/bin
4+
35
# Copy the [de]activate scripts to $PREFIX/etc/conda/[de]activate.d.
46
# This will allow them to be run on environment activation.
5-
for CHANGE in "activate" "deactivate"
7+
for TASK in "activate" "deactivate"
68
do
7-
mkdir -p "${PREFIX}/etc/conda/${CHANGE}.d"
8-
envsubst '$PKG_VERSION' < "${RECIPE_DIR}/${CHANGE}.sh" > "${PREFIX}/etc/conda/${CHANGE}.d/${PKG_NAME}_${CHANGE}.sh"
9+
mkdir -p "${PREFIX}/etc/conda/${TASK}.d"
10+
envsubst '$PKG_VERSION' < "${RECIPE_DIR}/${TASK}.sh" > "${PREFIX}/etc/conda/${TASK}.d/${TASK}_${PKG_NAME}.sh"
11+
cp "${PREFIX}/etc/conda/${TASK}.d/${TASK}_${PKG_NAME}.sh" "${PREFIX}/bin/${TASK}_emscripten.sh"
912
done
1013

11-
mkdir -p ${PREFIX}/bin
12-
cp "${PREFIX}/etc/conda/${CHANGE}.d/${PKG_NAME}_${CHANGE}.sh" ${PREFIX}/bin/activate_emscripten.sh
13-
1414
export EMSDK_PYTHON=${BUILD_PREFIX}/bin/python
1515

1616
./emsdk install $PKG_VERSION
1717

18-
# export EMSDK=/Users/wolfv/Programs/emscripten-forge/emscripten_forge_emsdk_install
1918
export EMSDK=.
2019

21-
2220
echo "emsdk patching"
2321
pushd upstream/emscripten
24-
cat $RECIPE_DIR/patches/*.patch | patch -p1 --verbose
25-
popd
22+
cat $RECIPE_DIR/patches/*.patch | patch -p1 --verbose
23+
popd
2624
echo "...done"
2725

2826

29-
30-
3127
mkdir -p $PREFIX/opt/emsdk/
3228
cp -r $EMSDK/upstream $PREFIX/opt/emsdk/upstream
3329
rm -rf $PREFIX/opt/emsdk/upstream/emscripten/test/
3430

35-
mkdir -p $PREFIX/bin
36-
3731
for file in $PREFIX/opt/emsdk/upstream/bin/*; do
3832
echo "Linking $file"
3933
ln -sf $file $PREFIX/bin/

recipes/recipes/emscripten_emscripten-wasm32/recipe.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,19 @@ context:
33
version: 3.1.73
44

55
build:
6-
number: 9
7-
6+
number: 10
87

98
outputs:
109
- package:
1110
name: ${{ name|lower }}
1211
version: ${{ version }}
13-
12+
1413
source:
1514
git: https://github.com/emscripten-core/emsdk.git
1615

1716
build:
1817
script: build_compiler_package.sh
19-
18+
2019
dynamic_linking:
2120
binary_relocation: false
2221

@@ -42,14 +41,16 @@ outputs:
4241
noarch: generic
4342
script:
4443
- echo "emscripten abi is built."
45-
44+
4645

4746
about:
4847
homepage: https://emscripten.org
4948
license: MIT
5049
license_file: LICENSE.txt
5150
summary: emscripten
52-
description: Emscripten is a complete compiler toolchain to WebAssembly, using LLVM, with a special focus on speed, size, and the Web platform.
51+
description: |
52+
Emscripten is a complete compiler toolchain to WebAssembly, using LLVM, with
53+
a special focus on speed, size, and the Web platform.
5354
documentation: https://emscripten.org/
5455

5556
extra:

0 commit comments

Comments
 (0)