From 1c91a73cf7fba0bd760b324c89f6a6db4944ba9a Mon Sep 17 00:00:00 2001 From: davehome Date: Mon, 19 Dec 2011 08:19:28 -0700 Subject: [PATCH] New package: v8-3.7.12.6. --- common/shlibs | 1 + srcpkgs/libv8 | 1 + srcpkgs/v8-devel | 1 + srcpkgs/v8/libv8.rshlibs | 5 ++++ srcpkgs/v8/libv8.template | 11 +++++++++ srcpkgs/v8/template | 44 ++++++++++++++++++++++++++++++++++++ srcpkgs/v8/v8-devel.template | 13 +++++++++++ srcpkgs/v8/v8.rshlibs | 6 +++++ 8 files changed, 82 insertions(+) create mode 120000 srcpkgs/libv8 create mode 120000 srcpkgs/v8-devel create mode 100644 srcpkgs/v8/libv8.rshlibs create mode 100644 srcpkgs/v8/libv8.template create mode 100644 srcpkgs/v8/template create mode 100644 srcpkgs/v8/v8-devel.template create mode 100644 srcpkgs/v8/v8.rshlibs diff --git a/common/shlibs b/common/shlibs index 506620145f..c6e5dc74f1 100644 --- a/common/shlibs +++ b/common/shlibs @@ -926,3 +926,4 @@ libclang.so libclang libclang-devel libisofs.so.6 libisofs libisofs-devel libbfd-2.22.so binutils binutils-devel libopcodes-2.22.so binutils binutils-devel +libv8.so libv8 v8-devel diff --git a/srcpkgs/libv8 b/srcpkgs/libv8 new file mode 120000 index 0000000000..469d080845 --- /dev/null +++ b/srcpkgs/libv8 @@ -0,0 +1 @@ +v8 \ No newline at end of file diff --git a/srcpkgs/v8-devel b/srcpkgs/v8-devel new file mode 120000 index 0000000000..469d080845 --- /dev/null +++ b/srcpkgs/v8-devel @@ -0,0 +1 @@ +v8 \ No newline at end of file diff --git a/srcpkgs/v8/libv8.rshlibs b/srcpkgs/v8/libv8.rshlibs new file mode 100644 index 0000000000..4952c81262 --- /dev/null +++ b/srcpkgs/v8/libv8.rshlibs @@ -0,0 +1,5 @@ +libstdc++.so.6 +libm.so.6 +libgcc_s.so.1 +libpthread.so.0 +libc.so.6 diff --git a/srcpkgs/v8/libv8.template b/srcpkgs/v8/libv8.template new file mode 100644 index 0000000000..3ed2aa6bd5 --- /dev/null +++ b/srcpkgs/v8/libv8.template @@ -0,0 +1,11 @@ +# Template file for 'libv8'. +# +short_desc="${short_desc} (Runtime library)" +long_desc="${long_desc} + + This package contains the v8 runtime library." + +do_install() +{ + vmove usr/lib usr +} diff --git a/srcpkgs/v8/template b/srcpkgs/v8/template new file mode 100644 index 0000000000..f381770f7e --- /dev/null +++ b/srcpkgs/v8/template @@ -0,0 +1,44 @@ +# Template file for 'v8' +pkgname=v8 +version=3.7.12.6 +distfiles="http://commondatastorage.googleapis.com/chromium-browser-official/${pkgname}-$version.tar.bz2" +short_desc="V8 JavaScript Engine" +maintainer="davehome " +homepage="http://code.google.com/p/v8/" +license="BSD" +checksum=37d4e885efd90d47598a8821d8d99941ae586ff1b5f29832da497732e5f7bca4 +long_desc=" + V8 is Google's open source JavaScript engine. V8 is written in C++ and is + used in Google Chrome, the open source browser from Google. + + V8 implements ECMAScript as specified in ECMA-262, 5th edition, and runs on + Windows (XP or newer), Mac OS X (10.5 or newer), and Linux systems that use + IA-32, x64, or ARM processors. + + V8 can run standalone, or can be embedded into any C++ application. + + This package contains v8 the utilities mksnapshot and the d8 shell." + +subpackages="${pkgname}-devel lib${pkgname}" + +Add_dependency build python +Add_dependency build coreutils +Add_dependency build readline-devel + +do_build() +{ + make ${makejobs} native library=shared console=readline disassembler=on liveobjectlist=on +} + +do_install() +{ + vinstall out/native/d8 755 usr/bin + vinstall out/native/mksnapshot 755 usr/bin + vinstall out/native/lib.target/lib${pkgname}.so 755 usr/lib + vinstall include/${pkgname}-debug.h 644 usr/include + vinstall include/${pkgname}-preparser.h 644 usr/include + vinstall include/${pkgname}-profiler.h 644 usr/include + vinstall include/${pkgname}-testing.h 644 usr/include + vinstall include/${pkgname}.h 644 usr/include + vinstall include/${pkgname}stdint.h 644 usr/include +} diff --git a/srcpkgs/v8/v8-devel.template b/srcpkgs/v8/v8-devel.template new file mode 100644 index 0000000000..43d7d61a38 --- /dev/null +++ b/srcpkgs/v8/v8-devel.template @@ -0,0 +1,13 @@ +# Template file for 'v8-devel'. +# +short_desc="${short_desc} (Development headers)" +long_desc="${long_desc} + + This package contains the v8 development headers." + +Add_dependency run libv8 + +do_install() +{ + vmove usr/include usr +} diff --git a/srcpkgs/v8/v8.rshlibs b/srcpkgs/v8/v8.rshlibs new file mode 100644 index 0000000000..b12a1c6e9d --- /dev/null +++ b/srcpkgs/v8/v8.rshlibs @@ -0,0 +1,6 @@ +libv8.so +libstdc++.so.6 +libc.so.6 +libm.so.6 +libgcc_s.so.1 +libpthread.so.0