[arch-commits] Commit in v8/repos (6 files)

Anatol Pomozov anatolik at archlinux.org
Thu Oct 16 20:55:44 UTC 2014


    Date: Thursday, October 16, 2014 @ 22:55:43
  Author: anatolik
Revision: 120839

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

Added:
  v8/repos/community-staging-i686/
  v8/repos/community-staging-i686/PKGBUILD
    (from rev 120838, v8/trunk/PKGBUILD)
  v8/repos/community-staging-i686/v8.pc
    (from rev 120838, v8/trunk/v8.pc)
  v8/repos/community-staging-x86_64/
  v8/repos/community-staging-x86_64/PKGBUILD
    (from rev 120838, v8/trunk/PKGBUILD)
  v8/repos/community-staging-x86_64/v8.pc
    (from rev 120838, v8/trunk/v8.pc)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   71 ++++++++++++++++++++++++++++++++++++
 community-staging-i686/v8.pc      |   10 +++++
 community-staging-x86_64/PKGBUILD |   71 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/v8.pc    |   10 +++++
 4 files changed, 162 insertions(+)

Copied: v8/repos/community-staging-i686/PKGBUILD (from rev 120838, v8/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2014-10-16 20:55:43 UTC (rev 120839)
@@ -0,0 +1,71 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor:  Bartłomiej Piotrowski <nospam at bpiotrowski.pl>
+# Contributor: Kaiting Chen <kaitocracy at gmail.com>
+# Contributor: tocer <tocer.deng at gmail.com>
+
+pkgname=v8
+# use http://omahaproxy.appspot.com/ to find stable v8 version
+pkgver=3.28.71.15
+pkgrel=1
+pkgdesc='Fast and modern Javascript engine'
+arch=(i686 x86_64)
+url='http://code.google.com/p/v8'
+license=(BSD)
+depends=(readline icu)
+makedepends=(python2 ninja)
+# unfortunately https://github.com/$pkgname/$pkgname does not contain all tags
+source=(https://commondatastorage.googleapis.com/chromium-browser-official/$pkgname-$pkgver-lite.tar.bz2
+        v8.pc)
+sha256sums=('fc9ab260e8560d507cf24bfe10f81f4097f29b8d8981e3ba517777a195b9d6d0'
+            '2b054309df9af9fb2e3e14527e88360b44745649b4866e592fb357ac90935f5d')
+
+case "$CARCH" in
+  x86_64) V8_ARCH='x64' ;;
+  i686) V8_ARCH='ia32' ;;
+esac
+
+prepare() {
+  cd v8-$pkgver
+
+  find build/ test/ tools/ src/ -type f -exec \
+    sed -e 's_^#!/usr/bin/env python$_&2_' \
+        -e 's_^#!/usr/bin/python$_&2_' \
+        -e "s_'python'_'python2'_" -i {} \;
+
+  sed 's/\bpython\b/python2/' -i Makefile build/gyp/gyp
+
+  sed "s/@VERSION@/$pkgver/g" -i "$srcdir/v8.pc"
+}
+
+build() {
+  cd v8-$pkgver
+
+  build/gyp_v8 -Dv8_enable_i18n_support=1 -Duse_system_icu=1 -Dconsole=readline -Dcomponent=shared_library -Dv8_target_arch=$V8_ARCH -Dwerror= -f ninja
+
+  ninja -C out/Release v8 d8 # or target 'all' if you need tests
+}
+
+check() {
+  cd v8-$pkgver
+  # A number of tests are failing. Figure out what happens and then enable tests.
+  # LD_LIBRARY_PATH=out/Release/lib.target tools/run-tests.py --no-presubmit --outdir=out --buildbot --arch=$ARCH --mode=Release # --progress=dots
+}
+
+package() {
+  cd v8-$pkgver
+
+  install -Dm755 out/Release/d8 "$pkgdir"/usr/bin/d8
+  install -Dm755 out/Release/lib/libv8.so "$pkgdir"/usr/lib/libv8.so
+
+  # V8 has several header files and ideally if it had its own folder in /usr/include
+  # But doing it here will break all users. Ideally if they use provided pkgconfig file.
+  install -d "$pkgdir"/usr/include
+  install -Dm644 include/*.h "$pkgdir"/usr/include
+
+  install -d "$pkgdir"/usr/lib/pkgconfig
+  install -m644 "$srcdir/v8.pc" "$pkgdir"/usr/lib/pkgconfig
+
+  install -d "$pkgdir"/usr/share/licenses/v8
+  install -m644 LICENSE* "$pkgdir"/usr/share/licenses/v8
+}

Copied: v8/repos/community-staging-i686/v8.pc (from rev 120838, v8/trunk/v8.pc)
===================================================================
--- community-staging-i686/v8.pc	                        (rev 0)
+++ community-staging-i686/v8.pc	2014-10-16 20:55:43 UTC (rev 120839)
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=/usr/lib
+includedir=${prefix}/include
+
+Name: v8
+Description: V8 JavaScript Engine
+Version: @VERSION@
+Libs: -L${libdir} -lv8 -pthread
+Cflags: -I${includedir}

Copied: v8/repos/community-staging-x86_64/PKGBUILD (from rev 120838, v8/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2014-10-16 20:55:43 UTC (rev 120839)
@@ -0,0 +1,71 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor:  Bartłomiej Piotrowski <nospam at bpiotrowski.pl>
+# Contributor: Kaiting Chen <kaitocracy at gmail.com>
+# Contributor: tocer <tocer.deng at gmail.com>
+
+pkgname=v8
+# use http://omahaproxy.appspot.com/ to find stable v8 version
+pkgver=3.28.71.15
+pkgrel=1
+pkgdesc='Fast and modern Javascript engine'
+arch=(i686 x86_64)
+url='http://code.google.com/p/v8'
+license=(BSD)
+depends=(readline icu)
+makedepends=(python2 ninja)
+# unfortunately https://github.com/$pkgname/$pkgname does not contain all tags
+source=(https://commondatastorage.googleapis.com/chromium-browser-official/$pkgname-$pkgver-lite.tar.bz2
+        v8.pc)
+sha256sums=('fc9ab260e8560d507cf24bfe10f81f4097f29b8d8981e3ba517777a195b9d6d0'
+            '2b054309df9af9fb2e3e14527e88360b44745649b4866e592fb357ac90935f5d')
+
+case "$CARCH" in
+  x86_64) V8_ARCH='x64' ;;
+  i686) V8_ARCH='ia32' ;;
+esac
+
+prepare() {
+  cd v8-$pkgver
+
+  find build/ test/ tools/ src/ -type f -exec \
+    sed -e 's_^#!/usr/bin/env python$_&2_' \
+        -e 's_^#!/usr/bin/python$_&2_' \
+        -e "s_'python'_'python2'_" -i {} \;
+
+  sed 's/\bpython\b/python2/' -i Makefile build/gyp/gyp
+
+  sed "s/@VERSION@/$pkgver/g" -i "$srcdir/v8.pc"
+}
+
+build() {
+  cd v8-$pkgver
+
+  build/gyp_v8 -Dv8_enable_i18n_support=1 -Duse_system_icu=1 -Dconsole=readline -Dcomponent=shared_library -Dv8_target_arch=$V8_ARCH -Dwerror= -f ninja
+
+  ninja -C out/Release v8 d8 # or target 'all' if you need tests
+}
+
+check() {
+  cd v8-$pkgver
+  # A number of tests are failing. Figure out what happens and then enable tests.
+  # LD_LIBRARY_PATH=out/Release/lib.target tools/run-tests.py --no-presubmit --outdir=out --buildbot --arch=$ARCH --mode=Release # --progress=dots
+}
+
+package() {
+  cd v8-$pkgver
+
+  install -Dm755 out/Release/d8 "$pkgdir"/usr/bin/d8
+  install -Dm755 out/Release/lib/libv8.so "$pkgdir"/usr/lib/libv8.so
+
+  # V8 has several header files and ideally if it had its own folder in /usr/include
+  # But doing it here will break all users. Ideally if they use provided pkgconfig file.
+  install -d "$pkgdir"/usr/include
+  install -Dm644 include/*.h "$pkgdir"/usr/include
+
+  install -d "$pkgdir"/usr/lib/pkgconfig
+  install -m644 "$srcdir/v8.pc" "$pkgdir"/usr/lib/pkgconfig
+
+  install -d "$pkgdir"/usr/share/licenses/v8
+  install -m644 LICENSE* "$pkgdir"/usr/share/licenses/v8
+}

Copied: v8/repos/community-staging-x86_64/v8.pc (from rev 120838, v8/trunk/v8.pc)
===================================================================
--- community-staging-x86_64/v8.pc	                        (rev 0)
+++ community-staging-x86_64/v8.pc	2014-10-16 20:55:43 UTC (rev 120839)
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=/usr/lib
+includedir=${prefix}/include
+
+Name: v8
+Description: V8 JavaScript Engine
+Version: @VERSION@
+Libs: -L${libdir} -lv8 -pthread
+Cflags: -I${includedir}



More information about the arch-commits mailing list