[arch-commits] Commit in emscripten/repos/community-x86_64 (10 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Thu Oct 10 21:29:02 UTC 2019


    Date: Thursday, October 10, 2019 @ 21:29:02
  Author: svenstaro
Revision: 514622

archrelease: copy trunk to community-x86_64

Added:
  emscripten/repos/community-x86_64/PKGBUILD
    (from rev 514621, emscripten/trunk/PKGBUILD)
  emscripten/repos/community-x86_64/arch-template.patch
    (from rev 514621, emscripten/trunk/arch-template.patch)
  emscripten/repos/community-x86_64/emscripten.install
    (from rev 514621, emscripten/trunk/emscripten.install)
  emscripten/repos/community-x86_64/emscripten.sh
    (from rev 514621, emscripten/trunk/emscripten.sh)
  emscripten/repos/community-x86_64/libcxxabi-include-libunwind.patch
    (from rev 514621, emscripten/trunk/libcxxabi-include-libunwind.patch)
Deleted:
  emscripten/repos/community-x86_64/PKGBUILD
  emscripten/repos/community-x86_64/arch-template.patch
  emscripten/repos/community-x86_64/emscripten.install
  emscripten/repos/community-x86_64/emscripten.sh
  emscripten/repos/community-x86_64/libcxxabi-include-libunwind.patch

-----------------------------------+
 PKGBUILD                          |  158 ++++++++++++++++++------------------
 arch-template.patch               |   50 +++++------
 emscripten.install                |   26 ++---
 emscripten.sh                     |    4 
 libcxxabi-include-libunwind.patch |   24 ++---
 5 files changed, 131 insertions(+), 131 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-10-10 21:28:52 UTC (rev 514621)
+++ PKGBUILD	2019-10-10 21:29:02 UTC (rev 514622)
@@ -1,79 +0,0 @@
-# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
-# Contributor: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
-# Contributor: Stefan Husmann <stefan-husmann at t-online.de>
-# Contributor: Vlad Kolotvin <vlad.kolotvin at gmail.com>
-
-pkgname=emscripten
-pkgver=1.38.47
-pkgrel=3
-pkgdesc="LLVM-based project that compiles C and C++ into highly-optimizable JavaScript for the web"
-arch=('x86_64')
-url="http://emscripten.org"
-license=('custom')
-depends=(nodejs python binaryen)
-makedepends=(cmake libxml2 git ninja)
-optdepends=('java-environment: for using clojure'
-            'ruby: for using websockify addon'
-            'cmake: for emcc --show-ports')
-install=emscripten.install
-# Get commit SHAs from here:
-# https://chromium.googlesource.com/emscripten-releases/+/refs/heads/master/DEPS
-source=(emscripten-$pkgver.tar.gz::"https://github.com/kripken/emscripten/archive/$pkgver.tar.gz"
-        git+https://github.com/llvm/llvm-project.git#commit=411f1885b655ea622fe124a87a6eadfd988d7a5e
-        "emscripten.sh"
-        arch-template.patch
-        libcxxabi-include-libunwind.patch)
-sha512sums=('3cc645f214e79f36fb25876dc98c24582ab907a410aede9c8bb2823ff58d46c11b3e05a9c522ee8c5fcaf6be5cf751d1c2d6cf9095600350b6d7693e49fa801d'
-            'SKIP'
-            'fbe9b95b8d18e7d0c6ec5fded6f11b72fbe4ddd0391e5704b281ba79c479f3563e82423b790ddf3f0554a23d659193ca898a81fe3db509f16c30c7188b790e4d'
-            '5bb7be8a14392b7b34e2d8e3b442dc6409fea48ea5fe3528e2a4a03d574c8848f88de2b258e5f091ad7886762f6622d460c956bc4c1ad37c0dde24c0bb5a4417'
-            '3456c61bc8cc022f58cf2ae1ebda53057adc4f05fcddd71a6a69b172ef47ce41f1ded4cb49c49c71a68e8436d974458a06566d618a7dcbad9ded42fa5713386c')
-
-prepare() {
-  cd "$srcdir"/emscripten-$pkgver
-
-  patch -Np1 -i "$srcdir"/arch-template.patch
-
-  mkdir "$srcdir"/llvm-project/llvm/build
-}
-
-build() {
-  cd "$srcdir"/llvm-project/llvm/build
-
-  # Inspired from https://github.com/WebAssembly/waterfall/blob/58e343a47ea02cb6daf19eefbdf626b23c24980c/src/build.py#L790
-  cmake .. \
-    -GNinja \
-    -DPYTHON_EXECUTABLE=/usr/bin/python \
-    -DCMAKE_BUILD_TYPE=Release \
-    -DCMAKE_SKIP_RPATH=YES \
-    -DLLVM_TARGETS_TO_BUILD="X86;WebAssembly" \
-    -DLLVM_BUILD_RUNTIME=OFF \
-    -DLLVM_TOOL_LTO_BUILD=ON \
-    -DLLVM_INSTALL_TOOLCHAIN_ONLY=ON \
-    -DLLVM_INCLUDE_EXAMPLES=OFF \
-    -DLLVM_INCLUDE_TESTS=OFF \
-    -DLLVM_ENABLE_PROJECTS="lld;clang" \
-    -DCLANG_INCLUDE_TESTS=OFF
-  ninja
-}
-
-package() {
-  # Install LLVM stuff according to https://github.com/emscripten-core/emscripten/blob/incoming/docs/process.md
-  install -d "$pkgdir"/usr/lib
-  cp -r "$srcdir"/llvm-project/llvm/build/bin "$pkgdir"/usr/lib/emscripten-llvm
-
-  # Install emscripten
-  cd "$srcdir"/emscripten-$pkgver
-  install -d "$pkgdir"/usr/lib/emscripten
-  cp -rup em* cmake site src system third_party tools "$pkgdir"/usr/lib/emscripten
-
-  patch -Np1 -i "$srcdir"/libcxxabi-include-libunwind.patch -d "$pkgdir"
-
-  # Remove clutter
-  rm "$pkgdir"/usr/lib/emscripten/*.bat
-
-  install -d "$pkgdir"/usr/share/doc
-  ln -s /usr/lib/emscripten/site/source/docs "$pkgdir"/usr/share/doc/$pkgname
-  install -Dm755 "$srcdir"/emscripten.sh "$pkgdir"/etc/profile.d/emscripten.sh
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: emscripten/repos/community-x86_64/PKGBUILD (from rev 514621, emscripten/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-10-10 21:29:02 UTC (rev 514622)
@@ -0,0 +1,79 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
+# Contributor: Stefan Husmann <stefan-husmann at t-online.de>
+# Contributor: Vlad Kolotvin <vlad.kolotvin at gmail.com>
+
+pkgname=emscripten
+pkgver=1.38.47
+pkgrel=4
+pkgdesc="LLVM-based project that compiles C and C++ into highly-optimizable JavaScript for the web"
+arch=('x86_64')
+url="http://emscripten.org"
+license=('custom')
+depends=(nodejs python binaryen)
+makedepends=(cmake libxml2 git ninja)
+optdepends=('java-environment: for using clojure'
+            'ruby: for using websockify addon'
+            'cmake: for emcc --show-ports')
+install=emscripten.install
+# Get commit SHAs from here:
+# https://chromium.googlesource.com/emscripten-releases/+/refs/heads/master/DEPS
+source=(emscripten-$pkgver.tar.gz::"https://github.com/kripken/emscripten/archive/$pkgver.tar.gz"
+        git+https://github.com/llvm/llvm-project.git#commit=411f1885b655ea622fe124a87a6eadfd988d7a5e
+        "emscripten.sh"
+        arch-template.patch
+        libcxxabi-include-libunwind.patch)
+sha512sums=('3cc645f214e79f36fb25876dc98c24582ab907a410aede9c8bb2823ff58d46c11b3e05a9c522ee8c5fcaf6be5cf751d1c2d6cf9095600350b6d7693e49fa801d'
+            'SKIP'
+            'fbe9b95b8d18e7d0c6ec5fded6f11b72fbe4ddd0391e5704b281ba79c479f3563e82423b790ddf3f0554a23d659193ca898a81fe3db509f16c30c7188b790e4d'
+            'c09920f24b60ae3aa784f6cdd4bdebe458d255d35cc2a1e839a6c86430dee12576b3bd8da36e02f8532f72b7ac8a31aee34e936b510129a2ffa86a75cc542f6d'
+            '3456c61bc8cc022f58cf2ae1ebda53057adc4f05fcddd71a6a69b172ef47ce41f1ded4cb49c49c71a68e8436d974458a06566d618a7dcbad9ded42fa5713386c')
+
+prepare() {
+  cd "$srcdir"/emscripten-$pkgver
+
+  patch -Np1 -i "$srcdir"/arch-template.patch
+
+  mkdir "$srcdir"/llvm-project/llvm/build
+}
+
+build() {
+  cd "$srcdir"/llvm-project/llvm/build
+
+  # Inspired from https://github.com/WebAssembly/waterfall/blob/58e343a47ea02cb6daf19eefbdf626b23c24980c/src/build.py#L790
+  cmake .. \
+    -GNinja \
+    -DPYTHON_EXECUTABLE=/usr/bin/python \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_SKIP_RPATH=YES \
+    -DLLVM_TARGETS_TO_BUILD="X86;WebAssembly" \
+    -DLLVM_BUILD_RUNTIME=OFF \
+    -DLLVM_TOOL_LTO_BUILD=ON \
+    -DLLVM_INSTALL_TOOLCHAIN_ONLY=ON \
+    -DLLVM_INCLUDE_EXAMPLES=OFF \
+    -DLLVM_INCLUDE_TESTS=OFF \
+    -DLLVM_ENABLE_PROJECTS="lld;clang" \
+    -DCLANG_INCLUDE_TESTS=OFF
+  ninja
+}
+
+package() {
+  # Install LLVM stuff according to https://github.com/emscripten-core/emscripten/blob/incoming/docs/process.md
+  install -d "$pkgdir"/usr/lib
+  cp -r "$srcdir"/llvm-project/llvm/build/bin "$pkgdir"/usr/lib/emscripten-llvm
+
+  # Install emscripten
+  cd "$srcdir"/emscripten-$pkgver
+  install -d "$pkgdir"/usr/lib/emscripten
+  cp -rup em* cmake site src system third_party tools "$pkgdir"/usr/lib/emscripten
+
+  patch -Np1 -i "$srcdir"/libcxxabi-include-libunwind.patch -d "$pkgdir"
+
+  # Remove clutter
+  rm "$pkgdir"/usr/lib/emscripten/*.bat
+
+  install -d "$pkgdir"/usr/share/doc
+  ln -s /usr/lib/emscripten/site/source/docs "$pkgdir"/usr/share/doc/$pkgname
+  install -Dm755 "$srcdir"/emscripten.sh "$pkgdir"/etc/profile.d/emscripten.sh
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Deleted: arch-template.patch
===================================================================
--- arch-template.patch	2019-10-10 21:28:52 UTC (rev 514621)
+++ arch-template.patch	2019-10-10 21:29:02 UTC (rev 514622)
@@ -1,25 +0,0 @@
-diff --git a/tools/settings_template_readonly.py b/tools/settings_template_readonly.py
-index 68287b6e8..79197dc4f 100644
---- a/tools/settings_template_readonly.py
-+++ b/tools/settings_template_readonly.py
-@@ -12,9 +12,9 @@ import os
- 
- # This is used by external projects in order to find emscripten.  It is not used
- # by emscripten itself.
--EMSCRIPTEN_ROOT = os.path.expanduser(os.getenv('EMSCRIPTEN', '{{{ EMSCRIPTEN_ROOT }}}')) # directory
-+EMSCRIPTEN_ROOT = "/usr/lib/emscripten"
- 
--LLVM_ROOT = os.path.expanduser(os.getenv('LLVM', '{{{ LLVM_ROOT }}}')) # directory
-+LLVM_ROOT = "/usr/lib/emscripten"
- BINARYEN_ROOT = os.path.expanduser(os.getenv('BINARYEN', '')) # if not set, we will use it from ports
- 
- # Add this if you have manually built the JS optimizer executable (in
-@@ -43,7 +43,7 @@ JAVA = 'java' # executable
- # All JS engines to use when running the automatic tests. Not all the engines in
- # this list must exist (if they don't, they will be skipped in the test runner).
- #
--# JS_ENGINES = [NODE_JS] # add V8_ENGINE or SPIDERMONKEY_ENGINE if you have them installed too.
-+JS_ENGINES = [NODE_JS] # add V8_ENGINE or SPIDERMONKEY_ENGINE if you have them installed too.
- #
- # WASMER = os.path.expanduser(os.path.join('~', '.wasmer', 'bin', 'wasmer'))
- # WASMTIME = os.path.expanduser(os.path.join('~', 'wasmtime'))

Copied: emscripten/repos/community-x86_64/arch-template.patch (from rev 514621, emscripten/trunk/arch-template.patch)
===================================================================
--- arch-template.patch	                        (rev 0)
+++ arch-template.patch	2019-10-10 21:29:02 UTC (rev 514622)
@@ -0,0 +1,25 @@
+diff --git a/tools/settings_template_readonly.py b/tools/settings_template_readonly.py
+index 68287b6e8..79197dc4f 100644
+--- a/tools/settings_template_readonly.py
++++ b/tools/settings_template_readonly.py
+@@ -12,9 +12,9 @@ import os
+ 
+ # This is used by external projects in order to find emscripten.  It is not used
+ # by emscripten itself.
+-EMSCRIPTEN_ROOT = os.path.expanduser(os.getenv('EMSCRIPTEN', '{{{ EMSCRIPTEN_ROOT }}}')) # directory
++EMSCRIPTEN_ROOT = "/usr/lib/emscripten"
+ 
+-LLVM_ROOT = os.path.expanduser(os.getenv('LLVM', '{{{ LLVM_ROOT }}}')) # directory
++LLVM_ROOT = "/usr/lib/emscripten-llvm"
+ BINARYEN_ROOT = os.path.expanduser(os.getenv('BINARYEN', '')) # if not set, we will use it from ports
+ 
+ # Add this if you have manually built the JS optimizer executable (in
+@@ -43,7 +43,7 @@ JAVA = 'java' # executable
+ # All JS engines to use when running the automatic tests. Not all the engines in
+ # this list must exist (if they don't, they will be skipped in the test runner).
+ #
+-# JS_ENGINES = [NODE_JS] # add V8_ENGINE or SPIDERMONKEY_ENGINE if you have them installed too.
++JS_ENGINES = [NODE_JS] # add V8_ENGINE or SPIDERMONKEY_ENGINE if you have them installed too.
+ #
+ # WASMER = os.path.expanduser(os.path.join('~', '.wasmer', 'bin', 'wasmer'))
+ # WASMTIME = os.path.expanduser(os.path.join('~', 'wasmtime'))

Deleted: emscripten.install
===================================================================
--- emscripten.install	2019-10-10 21:28:52 UTC (rev 514621)
+++ emscripten.install	2019-10-10 21:29:02 UTC (rev 514622)
@@ -1,13 +0,0 @@
-
-post_install() {
-  echo "You need to login again or 'source /etc/profile.d/emscripten.sh' in your"
-  echo "already running shells to be able to use emscripten."
-}
-
-post_upgrade() {
-  echo "You may need to manually clear your emscripten cache as clang may not link"
-  echo "the new library versions with cached data properly. Use this command:"
-  echo "$ emcc --clear-cache"
-  echo "You may also need to delete ~/.emscripten if emscripten complains about old paths"
-  echo "or executables not found."
-}

Copied: emscripten/repos/community-x86_64/emscripten.install (from rev 514621, emscripten/trunk/emscripten.install)
===================================================================
--- emscripten.install	                        (rev 0)
+++ emscripten.install	2019-10-10 21:29:02 UTC (rev 514622)
@@ -0,0 +1,13 @@
+
+post_install() {
+  echo "You need to login again or 'source /etc/profile.d/emscripten.sh' in your"
+  echo "already running shells to be able to use emscripten."
+}
+
+post_upgrade() {
+  echo "You may need to manually clear your emscripten cache as clang may not link"
+  echo "the new library versions with cached data properly. Use this command:"
+  echo "$ emcc --clear-cache"
+  echo "You may also need to delete ~/.emscripten if emscripten complains about old paths"
+  echo "or executables not found."
+}

Deleted: emscripten.sh
===================================================================
--- emscripten.sh	2019-10-10 21:28:52 UTC (rev 514621)
+++ emscripten.sh	2019-10-10 21:29:02 UTC (rev 514622)
@@ -1,2 +0,0 @@
-#!/bin/sh
-export PATH=$PATH:/usr/lib/emscripten

Copied: emscripten/repos/community-x86_64/emscripten.sh (from rev 514621, emscripten/trunk/emscripten.sh)
===================================================================
--- emscripten.sh	                        (rev 0)
+++ emscripten.sh	2019-10-10 21:29:02 UTC (rev 514622)
@@ -0,0 +1,2 @@
+#!/bin/sh
+export PATH=$PATH:/usr/lib/emscripten

Deleted: libcxxabi-include-libunwind.patch
===================================================================
--- libcxxabi-include-libunwind.patch	2019-10-10 21:28:52 UTC (rev 514621)
+++ libcxxabi-include-libunwind.patch	2019-10-10 21:29:02 UTC (rev 514622)
@@ -1,12 +0,0 @@
---- a/usr/lib/emscripten/tools/system_libs.py
-+++ b/usr/lib/emscripten/tools/system_libs.py
-@@ -758,6 +758,9 @@ class libcxxabi(CXXLibrary, NoExceptLibrary, MTLibrary):
-   name = 'libc++abi'
-   depends = ['libc']
-   cflags = ['-std=c++11', '-Oz', '-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS']
-+  includes = [
-+    ['system', 'lib', 'libunwind', 'include'],
-+  ]
- 
-   def get_cflags(self):
-     cflags = super(libcxxabi, self).get_cflags()

Copied: emscripten/repos/community-x86_64/libcxxabi-include-libunwind.patch (from rev 514621, emscripten/trunk/libcxxabi-include-libunwind.patch)
===================================================================
--- libcxxabi-include-libunwind.patch	                        (rev 0)
+++ libcxxabi-include-libunwind.patch	2019-10-10 21:29:02 UTC (rev 514622)
@@ -0,0 +1,12 @@
+--- a/usr/lib/emscripten/tools/system_libs.py
++++ b/usr/lib/emscripten/tools/system_libs.py
+@@ -758,6 +758,9 @@ class libcxxabi(CXXLibrary, NoExceptLibrary, MTLibrary):
+   name = 'libc++abi'
+   depends = ['libc']
+   cflags = ['-std=c++11', '-Oz', '-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS']
++  includes = [
++    ['system', 'lib', 'libunwind', 'include'],
++  ]
+ 
+   def get_cflags(self):
+     cflags = super(libcxxabi, self).get_cflags()



More information about the arch-commits mailing list