From 98a84dbdfdc68efe2f2a8c78125df00ddfb29999 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Sun, 9 Mar 2014 12:02:10 +0100 Subject: [PATCH] New package: v8-3.16 --- srcpkgs/libv8-3.16 | 1 + srcpkgs/v8-3.16-devel | 1 + srcpkgs/v8-3.16/patches/v8.common.gypi.patch | 10 +++ srcpkgs/v8-3.16/template | 65 ++++++++++++++++++++ 4 files changed, 77 insertions(+) create mode 120000 srcpkgs/libv8-3.16 create mode 120000 srcpkgs/v8-3.16-devel create mode 100644 srcpkgs/v8-3.16/patches/v8.common.gypi.patch create mode 100644 srcpkgs/v8-3.16/template diff --git a/srcpkgs/libv8-3.16 b/srcpkgs/libv8-3.16 new file mode 120000 index 0000000000..f6a1c450ac --- /dev/null +++ b/srcpkgs/libv8-3.16 @@ -0,0 +1 @@ +v8-3.16 \ No newline at end of file diff --git a/srcpkgs/v8-3.16-devel b/srcpkgs/v8-3.16-devel new file mode 120000 index 0000000000..f6a1c450ac --- /dev/null +++ b/srcpkgs/v8-3.16-devel @@ -0,0 +1 @@ +v8-3.16 \ No newline at end of file diff --git a/srcpkgs/v8-3.16/patches/v8.common.gypi.patch b/srcpkgs/v8-3.16/patches/v8.common.gypi.patch new file mode 100644 index 0000000000..66c06634b3 --- /dev/null +++ b/srcpkgs/v8-3.16/patches/v8.common.gypi.patch @@ -0,0 +1,10 @@ +--- build/common.gypi 2012-09-12 21:23:54.000000000 -0400 ++++ build/common.gypi 2012-09-12 21:35:57.000000000 -0400 +@@ -152,7 +152,6 @@ + [ 'v8_use_arm_eabi_hardfloat=="true"', { + 'defines': [ + 'USE_EABI_HARDFLOAT=1', +- 'CAN_USE_VFP2_INSTRUCTIONS', + ], + 'target_conditions': [ + ['_toolset=="target"', { diff --git a/srcpkgs/v8-3.16/template b/srcpkgs/v8-3.16/template new file mode 100644 index 0000000000..17f296a6b9 --- /dev/null +++ b/srcpkgs/v8-3.16/template @@ -0,0 +1,65 @@ +# Template file for 'v8' +pkgname=v8-3.16 +_sonamever="3.16" +version=${_sonamever}.8.1 +revision=1 +hostmakedepends="which python" +makedepends="readline-devel>=6.3" +short_desc="V8 JavaScript Engine (v3.16)" +maintainer="Enno Boland " +homepage="http://code.google.com/p/v8/" +license="BSD" +conflicts="v8>=3.20" +distfiles="http://commondatastorage.googleapis.com/chromium-browser-official/v8-${version}.tar.bz2" +checksum=b99ffa913e8f00b8fdb3b58cadf2addbbf60549a5be8d12a6c0b7095a36ac7e0 +wrksrc="v8-$version" +case "${XBPS_TARGET_MACHINE}" in + x86_64) _target="x64";; + i686) _target="ia32";; + arm*) _target="arm"; _opts="hardfp=on";; + *) msg_error "$pkgver: unknown target architecture!\n" ;; +esac + +do_build() { + if [ $_target = 'arm' ]; then + sed -e "s/m32flag':.*/m32flag':'',/" -i build/common.gypi + fi + + LINK=${CXX} make ${makejobs} ${_target} $_opts i18nsupport=off \ + werror=no library=shared soname_version=${_sonamever} \ + console=readline disassembler=on snapshot=off \ + CXX.host=${CXX} CXX.link=${CXX} LINK.target=${CXX} \ + BUILTYPE=Release +} + +do_install() { + vinstall out/$_target.release/d8 755 usr/bin + vinstall out/$_target.release/lib.target/libv8.so.${_sonamever} 755 usr/lib + + if [ -z "$CROSS_BUILD" ]; then + vinstall out/$_target.release/mksnapshot 755 usr/bin mksnapshot + fi + + vmkdir usr/include + vcopy 'include/v8*.h' usr/include + + ln -sfr ${DESTDIR}/usr/lib/libv8.so.${_sonamever} ${DESTDIR}/usr/lib/libv8.so +} + +v8-3.16-devel_package() { + depends="libv8-3.16-${version}_${revision}" + short_desc+=" - development files" + conflicts="v8-devel>=3.20" + pkg_install() { + vmove usr/include + vmove usr/lib/libv8.so + } +} + +libv8-3.16_package() { + short_desc+=" - runtime library" + conflicts="" + pkg_install() { + vmove usr/lib/libv8.so.${_sonamever} + } +}