aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-11-22 20:04:04 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2011-11-22 20:04:19 -0600
commit4de30923869d2e86700df73cf098454dee3ef567 (patch)
treecff493f19d3fd4f5f2f46b3d730a7783bf6db426
parenta6645935bd44b7829cf1dece9330a20418f20e97 (diff)
downloadaports-4de30923869d2e86700df73cf098454dee3ef567.tar.bz2
aports-4de30923869d2e86700df73cf098454dee3ef567.tar.xz
testing/v8: new aport
-rw-r--r--testing/v8/APKBUILD59
1 files changed, 59 insertions, 0 deletions
diff --git a/testing/v8/APKBUILD b/testing/v8/APKBUILD
new file mode 100644
index 0000000000..92394388a6
--- /dev/null
+++ b/testing/v8/APKBUILD
@@ -0,0 +1,59 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=v8
+pkgver=3.5.10.24
+pkgrel=0
+pkgdesc="V8 JavaScript/ECMAScript Engine"
+url="http://www.chromium.org/"
+arch="x86 x86_64 arm"
+license="BSD"
+depends=""
+depends_dev=""
+makedepends="scons"
+install=""
+subpackages="$pkgname-dev"
+source="http://gsdview.appspot.com/chromium-browser-official/v8-$pkgver.tar.bz2"
+
+_builddir="$srcdir"/v8-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+
+ v8_arch=${CARCH}
+ test ${CARCH} = x86_64 && v8_arch=x64
+
+ msg "building for ${v8_arch}"
+
+ export LINKFLAGS="${LDFLAGS}"
+
+ scons -j$JOBS \
+ library=shared \
+ inspector=on \
+ objectprint=on \
+ console=readline \
+ soname=on \
+ arch=${v8_arch} \
+ || return 1
+}
+
+package() {
+ cd "$_builddir"
+
+ mkdir -p "$pkgdir"/usr/include
+ cp include/* "$pkgdir"/usr/include
+
+ mkdir -p "$pkgdir"/usr/lib
+ install -c -m755 libv8-${pkgver}.so "$pkgdir"/usr/lib/libv8-${pkgver}.so
+ ln -sf libv8-${pkgver}.so "$pkgdir"/usr/lib/libv8.so
+}
+
+md5sums="be8c1d88f8d120d68e8566685535ff9c v8-3.5.10.24.tar.bz2"