Commit fbec1417 authored by Natanael Copa's avatar Natanael Copa

unmaintained/v8: update so it builds

we upgrade to the version that rethinkdb embeds, however, rethinkdb
cannot use system v8, there is nothing else that currently needs v8 and
it seems that upstream no longer provides releases so we keep it in
unmaintained.
parent 0e69fa24
# Contributor: William Pitcock <nenolod@dereferenced.org> # Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org> # Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=v8 pkgname=v8
pkgver=3.26.31.15 pkgver=3.30.33.16
pkgrel=3 pkgrel=0
pkgdesc="V8 JavaScript/ECMAScript Engine" pkgdesc="V8 JavaScript/ECMAScript Engine"
url="http://www.chromium.org/" url="http://www.chromium.org/"
arch="x86 x86_64 arm" arch="all"
license="BSD" license="BSD"
depends="readline icu" depends=""
depends_dev="icu-dev readline-dev" depends_dev="icu-dev readline-dev"
makedepends="${depends_dev} python paxmark" makedepends="${depends_dev} python paxmark"
install="" install=""
...@@ -16,45 +16,48 @@ subpackages="$pkgname-dev" ...@@ -16,45 +16,48 @@ subpackages="$pkgname-dev"
source="http://gsdview.appspot.com/chromium-browser-official/v8-$pkgver.tar.bz2 source="http://gsdview.appspot.com/chromium-browser-official/v8-$pkgver.tar.bz2
v8.pc" v8.pc"
_builddir="$srcdir"/v8-$pkgver builddir="$srcdir"/v8-$pkgver
[ "$CARCH" = 'x86' ] && ARCH=ia32 [ "$CARCH" = 'x86' ] && ARCH=ia32
[ "$CARCH" = 'x86_64' ] && ARCH=x64 [ "$CARCH" = 'x86_64' ] && ARCH=x64
prepare() { prepare() {
local i local i
cd "$_builddir" cd "$builddir"
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac esac
done done
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" sed "s/@VERSION@/$pkgver/g" -i "$srcdir/v8.pc"
} }
build() { build() {
cd "$_builddir" cd "$builddir"
local paxflags="-m" local paxflags="-m"
[ "$CARCH" = "x86" ] && paxflags="-msp" [ "$CARCH" = "x86" ] && paxflags="-msp"
msg "Start building..." msg "Start building..."
build/gyp_v8 -Dv8_enable_i18n_support=1 -Duse_system_icu=1 -Dconsole=readline -Dcomponent=shared_library -Dv8_target_arch=$ARCH -Dwerror= --generator-output=out -f make export CXXFLAGS="$CXXFLAGS -fno-delete-null-pointer-checks"
make -C out builddir=$(pwd)/out/Release BUILDTYPE=Release mksnapshot.$ARCH build/gyp_v8 \
paxmark "$paxflags" out/Release/mksnapshot.$ARCH -Dv8_enable_i18n_support=1 \
make -C out builddir=$(pwd)/out/Release BUILDTYPE=Release -Duse_system_icu=1 \
-Dconsole=readline \
-Dcomponent=shared_library \
-Dv8_target_arch=$ARCH \
-Dwerror= \
--generator-output=out \
-f make
cd out
make BUILDTYPE=Release Release/mksnapshot || return 1
paxmark "$paxflags" Release/mksnapshot || return 1
make BUILDTYPE=Release
} }
package() { package() {
cd "$_builddir" cd "$builddir"
(
set -e
install -Dm755 out/Release/d8 "$pkgdir"/usr/bin/d8 install -Dm755 out/Release/d8 "$pkgdir"/usr/bin/d8
install -Dm755 out/Release/lib.target/libv8.so "$pkgdir"/usr/lib/libv8.so install -Dm755 out/Release/lib.target/libv8.so "$pkgdir"/usr/lib/libv8.so
...@@ -66,12 +69,12 @@ package() { ...@@ -66,12 +69,12 @@ package() {
install -d "$pkgdir"/usr/share/licenses/v8 install -d "$pkgdir"/usr/share/licenses/v8
install -m644 LICENSE* "$pkgdir"/usr/share/licenses/v8 install -m644 LICENSE* "$pkgdir"/usr/share/licenses/v8
)
} }
md5sums="e206a825dffb468bb5b15ed32786c306 v8-3.26.31.15.tar.bz2 md5sums="935177ef0ca8119511c49b697e4d16f4 v8-3.30.33.16.tar.bz2
082724bc560e90d846c0aa441847020c v8.pc" 082724bc560e90d846c0aa441847020c v8.pc"
sha256sums="1455d3d9d25771d9fc6fdecd33d07133946d3350b4280abb3f5df293a199f718 v8-3.26.31.15.tar.bz2 sha256sums="85d0a3a599a34a572813d134b038f4eea774671398a7097af944e267c60aeeab v8-3.30.33.16.tar.bz2
2b054309df9af9fb2e3e14527e88360b44745649b4866e592fb357ac90935f5d v8.pc" 2b054309df9af9fb2e3e14527e88360b44745649b4866e592fb357ac90935f5d v8.pc"
sha512sums="7d980192e34ac668b2847e435bf5939791614c7bb01782a5ec2f217ea30f06b728d21c80fc6e09a5568ead117a93ec450e3fa2a261ee68cdbe25a3d4f0ad0134 v8-3.26.31.15.tar.bz2 sha512sums="af7c44e050d254dc51d5485dbf1c3208bb3aeed658a25689eb7c93a723ec704a6dfe771caab5c137624ee0cdbf7f9ff9f3a19a24c3af4a1ac736983e4592dd61 v8-3.30.33.16.tar.bz2
67848ce85a6e4b674cf8775a21e687884530748a0296a2259373636729c9a230a27b7ebfbf5fafff3c1e9c102956246ec4eb744853e564fc8337b42a125aeea8 v8.pc" 67848ce85a6e4b674cf8775a21e687884530748a0296a2259373636729c9a230a27b7ebfbf5fafff3c1e9c102956246ec4eb744853e564fc8337b42a125aeea8 v8.pc"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment