-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1456 from emscripten-forge/tree
Add tree
- Loading branch information
Showing
4 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export CONFIG_LDFLAGS="\ | ||
-Os \ | ||
--minify=0 \ | ||
-sALLOW_MEMORY_GROWTH=1 \ | ||
-sEXPORTED_RUNTIME_METHODS=FS,ENV,getEnvStrings,TTY \ | ||
-sFORCE_FILESYSTEM=1 \ | ||
-sMODULARIZE=1 \ | ||
" | ||
|
||
emmake make \ | ||
CFLAGS="$CFLAGS -Os" \ | ||
LDFLAGS="$LDFLAGS $CONFIG_LDFLAGS" | ||
|
||
mkdir -p $PREFIX/bin | ||
cp tree $PREFIX/bin/tree.js | ||
cp tree.wasm $PREFIX/bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
context: | ||
name: tree | ||
version: 2.2.1 | ||
|
||
package: | ||
name: ${{ name }} | ||
version: ${{ version }} | ||
|
||
source: | ||
url: http://oldmanprogrammer.net/tar/${{ name }}/${{ name }}-${{ version }}.tgz | ||
sha256: 68ac45dc78c0c311ada06200ffc3c285e74223ba208061f8d15ffac25e44b2ec | ||
|
||
build: | ||
number: 0 | ||
|
||
requirements: | ||
build: | ||
- ${{ compiler("c") }} | ||
- make | ||
|
||
tests: | ||
- script: | ||
- test -f $PREFIX/bin/tree.js | ||
- test -f $PREFIX/bin/tree.wasm | ||
- script: | | ||
OUTPUT=$(run_modularized $PREFIX/bin/tree.js --version) | ||
if [[ "$OUTPUT" != "tree v2.2.1 © 1996 - 2024 by Steve Baker, Thomas Moore, Francesc Rocher, Florian Sesser, Kyosuke Tokoro" ]]; then | ||
echo "Unexpected output: $OUTPUT" | ||
exit 1 | ||
fi | ||
requirements: | ||
build: | ||
- run_modularized >= 0.1.2 | ||
about: | ||
license: GPL-2.0-only | ||
license_file: LICENSE | ||
|
||
extra: | ||
recipe-maintainers: | ||
- ianthomas23 |