[arch-commits] Commit in emscripten/repos (8 files)

Evangelos Foutras foutrelis at archlinux.org
Thu Sep 10 06:04:34 UTC 2015


    Date: Thursday, September 10, 2015 @ 08:04:33
  Author: foutrelis
Revision: 139767

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  emscripten/repos/community-staging-i686/
  emscripten/repos/community-staging-i686/PKGBUILD
    (from rev 139766, emscripten/trunk/PKGBUILD)
  emscripten/repos/community-staging-i686/emscripten.install
    (from rev 139766, emscripten/trunk/emscripten.install)
  emscripten/repos/community-staging-i686/emscripten.sh
    (from rev 139766, emscripten/trunk/emscripten.sh)
  emscripten/repos/community-staging-x86_64/
  emscripten/repos/community-staging-x86_64/PKGBUILD
    (from rev 139766, emscripten/trunk/PKGBUILD)
  emscripten/repos/community-staging-x86_64/emscripten.install
    (from rev 139766, emscripten/trunk/emscripten.install)
  emscripten/repos/community-staging-x86_64/emscripten.sh
    (from rev 139766, emscripten/trunk/emscripten.sh)

---------------------------------------------+
 community-staging-i686/PKGBUILD             |   87 ++++++++++++++++++++++++++
 community-staging-i686/emscripten.install   |   11 +++
 community-staging-i686/emscripten.sh        |    7 ++
 community-staging-x86_64/PKGBUILD           |   87 ++++++++++++++++++++++++++
 community-staging-x86_64/emscripten.install |   11 +++
 community-staging-x86_64/emscripten.sh      |    7 ++
 6 files changed, 210 insertions(+)

Copied: emscripten/repos/community-staging-i686/PKGBUILD (from rev 139766, emscripten/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-09-10 06:04:33 UTC (rev 139767)
@@ -0,0 +1,87 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.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.34.4
+pkgrel=2
+pkgdesc="LLVM-based project that compiles C and C++ into highly-optimizable JavaScript in asm.js format"
+arch=('i686' 'x86_64')
+url="http://emscripten.org"
+license=('custom')
+depends=('nodejs' 'python2')
+makedepends=('cmake' 'libxml2')
+optdepends=('java-environment: for using clojure (optimized builds)'
+            'ruby: for using websockify addon')
+install=$pkgname.install
+source=(emscripten-$pkgver.tar.gz::"https://github.com/kripken/emscripten/archive/$pkgver.tar.gz"
+        emscripten-fastcomp-$pkgver.tar.gz::"https://github.com/kripken/emscripten-fastcomp/archive/$pkgver.tar.gz"
+        emscripten-fastcomp-clang-$pkgver.tar.gz::"https://github.com/kripken/emscripten-fastcomp-clang/archive/$pkgver.tar.gz"
+        "emscripten.sh")
+sha256sums=('d2a600bf68db41c6ae4d0689504ceca2ebf00c1cfe4263cf86c48a5330c16ad4'
+            '61769db5fc51f70b46a07f1efa095121b204ace4e8516401b09c68479aad99a9'
+            '70e77714380345ed2c175959f5f33198860f631baf95a88cce7358ccab017e5b'
+            '556dc0126a439071e2591672c27f73a470cc260f37adc4994d698c04c7617847')
+
+prepare() {
+  cd emscripten-fastcomp-$pkgver
+
+  # reset folder for out-of-source build
+  rm -rf build
+  mkdir build
+
+  # put clang source into the right place (http://git.io/i1GBkg)
+  rm -rf tools/clang
+  ln -s "$srcdir"/emscripten-fastcomp-clang-$pkgver tools/clang
+
+  # python2 shebang fixes
+  cd ../emscripten-$pkgver
+  sed '1s|python$|python2|' -i $(find third_party tools -name \*.py) emrun
+
+  # adapt config file template to use our custom environment variable and path
+  sed -e "s|getenv('LLVM')|getenv('EMSCRIPTEN_FASTCOMP')|" \
+    -e 's|{{{ LLVM_ROOT }}}|/usr/lib/emscripten-fastcomp|' \
+    -i tools/settings_template_readonly.py
+}
+
+build() {
+  cd emscripten-fastcomp-$pkgver/build
+
+  CC=gcc CXX=g++ cmake .. -DPYTHON_EXECUTABLE=/usr/bin/python2 \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_SKIP_RPATH=YES \
+    -DLLVM_TARGETS_TO_BUILD="X86;JSBackend" \
+    -DLLVM_BUILD_RUNTIME=OFF \
+    -DLLVM_INCLUDE_EXAMPLES=OFF \
+    -DLLVM_INCLUDE_TESTS=OFF \
+    -DCLANG_INCLUDE_EXAMPLES=OFF \
+    -DCLANG_INCLUDE_TESTS=OFF
+  make
+}
+
+package() {
+  # exported variables
+  install -Dm755 "$srcdir"/emscripten.sh "$pkgdir"/etc/profile.d/emscripten.sh
+
+  # LLVM-backend, TODO: include only needed tools
+  cd "$srcdir"/emscripten-fastcomp-$pkgver
+  install -Dm644 emscripten-version.txt "$pkgdir"/usr/lib/emscripten-fastcomp/emscripten-version.txt
+  install -m755 build/bin/* "$pkgdir"/usr/lib/emscripten-fastcomp
+
+  # copy structure
+  cd "$srcdir"/emscripten-$pkgver
+  install -d "$pkgdir"/usr/lib/emscripten
+  cp -rup em* cmake site src system third_party tools "$pkgdir"/usr/lib/emscripten
+
+  # remove clutter
+  rm "$pkgdir"/usr/lib/emscripten-fastcomp/{*-test,llvm-lit}
+  rm "$pkgdir"/usr/lib/emscripten/*.bat
+
+  # docs
+  install -d "$pkgdir"/usr/share/doc
+  ln -s /usr/lib/emscripten/site/source/docs "$pkgdir"/usr/share/doc/$pkgname
+
+  # license
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Copied: emscripten/repos/community-staging-i686/emscripten.install (from rev 139766, emscripten/trunk/emscripten.install)
===================================================================
--- community-staging-i686/emscripten.install	                        (rev 0)
+++ community-staging-i686/emscripten.install	2015-09-10 06:04:33 UTC (rev 139767)
@@ -0,0 +1,11 @@
+
+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"
+}

Copied: emscripten/repos/community-staging-i686/emscripten.sh (from rev 139766, emscripten/trunk/emscripten.sh)
===================================================================
--- community-staging-i686/emscripten.sh	                        (rev 0)
+++ community-staging-i686/emscripten.sh	2015-09-10 06:04:33 UTC (rev 139767)
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+export EMSCRIPTEN="/usr/lib/emscripten"
+export EMSCRIPTEN_FASTCOMP="/usr/lib/emscripten-fastcomp"
+
+# add to path
+export PATH=$PATH:$EMSCRIPTEN

Copied: emscripten/repos/community-staging-x86_64/PKGBUILD (from rev 139766, emscripten/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-09-10 06:04:33 UTC (rev 139767)
@@ -0,0 +1,87 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.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.34.4
+pkgrel=2
+pkgdesc="LLVM-based project that compiles C and C++ into highly-optimizable JavaScript in asm.js format"
+arch=('i686' 'x86_64')
+url="http://emscripten.org"
+license=('custom')
+depends=('nodejs' 'python2')
+makedepends=('cmake' 'libxml2')
+optdepends=('java-environment: for using clojure (optimized builds)'
+            'ruby: for using websockify addon')
+install=$pkgname.install
+source=(emscripten-$pkgver.tar.gz::"https://github.com/kripken/emscripten/archive/$pkgver.tar.gz"
+        emscripten-fastcomp-$pkgver.tar.gz::"https://github.com/kripken/emscripten-fastcomp/archive/$pkgver.tar.gz"
+        emscripten-fastcomp-clang-$pkgver.tar.gz::"https://github.com/kripken/emscripten-fastcomp-clang/archive/$pkgver.tar.gz"
+        "emscripten.sh")
+sha256sums=('d2a600bf68db41c6ae4d0689504ceca2ebf00c1cfe4263cf86c48a5330c16ad4'
+            '61769db5fc51f70b46a07f1efa095121b204ace4e8516401b09c68479aad99a9'
+            '70e77714380345ed2c175959f5f33198860f631baf95a88cce7358ccab017e5b'
+            '556dc0126a439071e2591672c27f73a470cc260f37adc4994d698c04c7617847')
+
+prepare() {
+  cd emscripten-fastcomp-$pkgver
+
+  # reset folder for out-of-source build
+  rm -rf build
+  mkdir build
+
+  # put clang source into the right place (http://git.io/i1GBkg)
+  rm -rf tools/clang
+  ln -s "$srcdir"/emscripten-fastcomp-clang-$pkgver tools/clang
+
+  # python2 shebang fixes
+  cd ../emscripten-$pkgver
+  sed '1s|python$|python2|' -i $(find third_party tools -name \*.py) emrun
+
+  # adapt config file template to use our custom environment variable and path
+  sed -e "s|getenv('LLVM')|getenv('EMSCRIPTEN_FASTCOMP')|" \
+    -e 's|{{{ LLVM_ROOT }}}|/usr/lib/emscripten-fastcomp|' \
+    -i tools/settings_template_readonly.py
+}
+
+build() {
+  cd emscripten-fastcomp-$pkgver/build
+
+  CC=gcc CXX=g++ cmake .. -DPYTHON_EXECUTABLE=/usr/bin/python2 \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_SKIP_RPATH=YES \
+    -DLLVM_TARGETS_TO_BUILD="X86;JSBackend" \
+    -DLLVM_BUILD_RUNTIME=OFF \
+    -DLLVM_INCLUDE_EXAMPLES=OFF \
+    -DLLVM_INCLUDE_TESTS=OFF \
+    -DCLANG_INCLUDE_EXAMPLES=OFF \
+    -DCLANG_INCLUDE_TESTS=OFF
+  make
+}
+
+package() {
+  # exported variables
+  install -Dm755 "$srcdir"/emscripten.sh "$pkgdir"/etc/profile.d/emscripten.sh
+
+  # LLVM-backend, TODO: include only needed tools
+  cd "$srcdir"/emscripten-fastcomp-$pkgver
+  install -Dm644 emscripten-version.txt "$pkgdir"/usr/lib/emscripten-fastcomp/emscripten-version.txt
+  install -m755 build/bin/* "$pkgdir"/usr/lib/emscripten-fastcomp
+
+  # copy structure
+  cd "$srcdir"/emscripten-$pkgver
+  install -d "$pkgdir"/usr/lib/emscripten
+  cp -rup em* cmake site src system third_party tools "$pkgdir"/usr/lib/emscripten
+
+  # remove clutter
+  rm "$pkgdir"/usr/lib/emscripten-fastcomp/{*-test,llvm-lit}
+  rm "$pkgdir"/usr/lib/emscripten/*.bat
+
+  # docs
+  install -d "$pkgdir"/usr/share/doc
+  ln -s /usr/lib/emscripten/site/source/docs "$pkgdir"/usr/share/doc/$pkgname
+
+  # license
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Copied: emscripten/repos/community-staging-x86_64/emscripten.install (from rev 139766, emscripten/trunk/emscripten.install)
===================================================================
--- community-staging-x86_64/emscripten.install	                        (rev 0)
+++ community-staging-x86_64/emscripten.install	2015-09-10 06:04:33 UTC (rev 139767)
@@ -0,0 +1,11 @@
+
+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"
+}

Copied: emscripten/repos/community-staging-x86_64/emscripten.sh (from rev 139766, emscripten/trunk/emscripten.sh)
===================================================================
--- community-staging-x86_64/emscripten.sh	                        (rev 0)
+++ community-staging-x86_64/emscripten.sh	2015-09-10 06:04:33 UTC (rev 139767)
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+export EMSCRIPTEN="/usr/lib/emscripten"
+export EMSCRIPTEN_FASTCOMP="/usr/lib/emscripten-fastcomp"
+
+# add to path
+export PATH=$PATH:$EMSCRIPTEN



More information about the arch-commits mailing list