aboutsummaryrefslogtreecommitdiffstats
path: root/testing/emscripten/settings_template-paths.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-03-30 00:44:07 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-03-31 12:58:10 +0200
commita0a7e548470fb9aacbcf101c370e431b32704294 (patch)
treee500d7bc15ba658e4ed9895de11a6b936db6cd13 /testing/emscripten/settings_template-paths.patch
parent5dc3bb2b38d3e0793437bc6027f433f7e76414d1 (diff)
downloadaports-a0a7e548470fb9aacbcf101c370e431b32704294.tar.bz2
aports-a0a7e548470fb9aacbcf101c370e431b32704294.tar.xz
testing/emscripten: new aport
https://kripken.github.io/emscripten-site/ An LLVM-to-JavaScript Compiler
Diffstat (limited to 'testing/emscripten/settings_template-paths.patch')
-rw-r--r--testing/emscripten/settings_template-paths.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/testing/emscripten/settings_template-paths.patch b/testing/emscripten/settings_template-paths.patch
new file mode 100644
index 0000000000..2407f23e3a
--- /dev/null
+++ b/testing/emscripten/settings_template-paths.patch
@@ -0,0 +1,36 @@
+--- a/tools/settings_template_readonly.py
++++ b/tools/settings_template_readonly.py
+@@ -7,19 +7,18 @@
+ import os
+
+ # this helps projects using emscripten find it
+-EMSCRIPTEN_ROOT = os.path.expanduser(os.getenv('EMSCRIPTEN') or '{{{ EMSCRIPTEN_ROOT }}}') # directory
+-LLVM_ROOT = os.path.expanduser(os.getenv('LLVM') or '{{{ LLVM_ROOT }}}') # directory
++EMSCRIPTEN_ROOT = os.path.expanduser(os.getenv('EMSCRIPTEN') or '/usr/share/emscripten') # directory
++LLVM_ROOT = os.path.expanduser(os.getenv('LLVM') or '/usr/lib/emscripten-fastcomp/bin') # directory
+ BINARYEN_ROOT = os.path.expanduser(os.getenv('BINARYEN') or '{{{ BINARYEN_ROOT }}}') # directory
+
+ # If not specified, defaults to sys.executable.
+-#PYTHON = 'python'
++PYTHON = 'python2'
+
+-# Add this if you have manually built the JS optimizer executable (in Emscripten/tools/optimizer) and want to run it from a custom location.
+ # Alternatively, you can set this as the environment variable EMSCRIPTEN_NATIVE_OPTIMIZER.
+-# EMSCRIPTEN_NATIVE_OPTIMIZER='/path/to/custom/optimizer(.exe)'
++EMSCRIPTEN_NATIVE_OPTIMIZER='/usr/bin/emoptimizer'
+
+ # See below for notes on which JS engine(s) you need
+-NODE_JS = os.path.expanduser(os.getenv('NODE') or '{{{ NODE }}}') # executable
++NODE_JS = os.path.expanduser(os.getenv('NODE') or '/usr/bin/node') # executable
+ SPIDERMONKEY_ENGINE = [os.path.expanduser(os.getenv('SPIDERMONKEY') or 'js')] # executable
+ V8_ENGINE = os.path.expanduser(os.getenv('V8') or 'd8') # executable
+
+@@ -29,7 +28,7 @@
+
+ CRUNCH = os.path.expanduser(os.getenv('CRUNCH') or 'crunch') # executable
+
+-#CLOSURE_COMPILER = '..' # define this to not use the bundled version
++CLOSURE_COMPILER = '/usr/bin/closure-compiler' # define this to not use the bundled version
+
+ ########################################################################################################
+