v8: downgrade to the 3.20 series for chromium-30.
This commit is contained in:
parent
892e8cb40d
commit
1e613a13bb
2 changed files with 23 additions and 26 deletions
|
@ -923,7 +923,7 @@ libLLVM-3.3.so libllvm-3.3_4
|
||||||
libisofs.so.6 libisofs-0.6.24_1
|
libisofs.so.6 libisofs-0.6.24_1
|
||||||
libbfd-2.22.so binutils-2.22_1<2.23_1
|
libbfd-2.22.so binutils-2.22_1<2.23_1
|
||||||
libopcodes-2.22.so binutils-2.22_1<2.23_1
|
libopcodes-2.22.so binutils-2.22_1<2.23_1
|
||||||
libv8.so libv8-3.22.5_1
|
libv8.so.3.20 libv8-3.20.17.13_1
|
||||||
libGeoIP.so.1 libgeoip-1.4.8_1
|
libGeoIP.so.1 libgeoip-1.4.8_1
|
||||||
libGeoIPUpdate.so.0 libgeoip-1.4.8_1
|
libGeoIPUpdate.so.0 libgeoip-1.4.8_1
|
||||||
libcherokee-base.so.0 libcherokee-1.2.101_1
|
libcherokee-base.so.0 libcherokee-1.2.101_1
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
# Template file for 'v8'
|
# Template file for 'v8'
|
||||||
pkgname=v8
|
pkgname=v8
|
||||||
version=3.22.5
|
_sonamever="3.20"
|
||||||
|
version=${_sonamever}.17.13
|
||||||
revision=1
|
revision=1
|
||||||
short_desc="V8 JavaScript Engine"
|
short_desc="V8 JavaScript Engine"
|
||||||
maintainer="davehome <davehome@redthumb.info.tm>"
|
maintainer="davehome <davehome@redthumb.info.tm>"
|
||||||
homepage="http://code.google.com/p/v8/"
|
homepage="http://code.google.com/p/v8/"
|
||||||
license="BSD"
|
license="BSD"
|
||||||
distfiles="http://commondatastorage.googleapis.com/chromium-browser-official/v8-${version}.tar.bz2"
|
distfiles="http://commondatastorage.googleapis.com/chromium-browser-official/v8-${version}.tar.bz2"
|
||||||
checksum=31f97ea53d4a197228668686f0ca154a03d455013aaff8bdfc2122b66b8af55f
|
checksum=472dcceb944685243b405ec131e3205ef5754110b0031c2cb135a44db6fa8755
|
||||||
long_desc="
|
long_desc="
|
||||||
V8 is Google's open source JavaScript engine. V8 is written in C++ and is
|
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.
|
used in Google Chrome, the open source browser from Google.
|
||||||
|
@ -20,31 +21,24 @@ long_desc="
|
||||||
|
|
||||||
This package contains the v8 utilities and the d8 shell."
|
This package contains the v8 utilities and the d8 shell."
|
||||||
|
|
||||||
hostmakedepends="which subversion python"
|
hostmakedepends="which python"
|
||||||
makedepends="readline-devel"
|
makedepends="readline-devel"
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
export LINK="$CXX" LD="$CXX"
|
case "${XBPS_TARGET_MACHINE}" in
|
||||||
|
i686|x86_64) target="native";;
|
||||||
# TODO: add support to crosscompile for other targets.
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
|
||||||
case "${XBPS_TARGET_MACHINE}" in
|
|
||||||
arm*)
|
arm*)
|
||||||
# NOTE: hardfp can be problematic if not hf is supported on target cpu
|
sed -e "s/m32flag':.*/m32flag':'',/" -i build/toolchain.gypi
|
||||||
sed -e "s/m32flag':.*/m32flag':'',/" -i build/common.gypi
|
target="arm.release hardfp=on snapshot=off"
|
||||||
LINK="${CXX}" make V=1 ${makejobs} arm.release \
|
|
||||||
hardfp=on library=shared console=readline \
|
|
||||||
disassembler=on snapshot=off \
|
|
||||||
CXX.host=${CXX} CXX.link=${CXX} LINK.target="${CXX}"
|
|
||||||
;;
|
;;
|
||||||
*) msg_error "$pkgver: cannot cross compile for ${XBPS_TARGET_MACHINE}.\n"
|
*) msg_error "$pkgver: unknown target architecture!\n" ;;
|
||||||
;;
|
esac
|
||||||
esac
|
|
||||||
else
|
LINK=${CXX} make ${makejobs} ${target} i18nsupport=off \
|
||||||
# native build
|
werror=no library=shared soname_version=${_sonamever} \
|
||||||
make ${makejobs} native library=shared console=readline \
|
console=readline disassembler=on \
|
||||||
disassembler=on liveobjectlist=on
|
CXX.host=${CXX} CXX.link=${CXX} LINK.target=${CXX} \
|
||||||
fi
|
BUILTYPE=Release
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
|
@ -52,13 +46,13 @@ do_install() {
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
arm*)
|
arm*)
|
||||||
vinstall out/arm.release/d8 755 usr/bin
|
vinstall out/arm.release/d8 755 usr/bin
|
||||||
vinstall out/arm.release/lib.target/lib${pkgname}.so 755 usr/lib
|
vinstall out/arm.release/lib.target/libv8.so.${_sonamever} 755 usr/lib
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
# native build
|
# native build
|
||||||
vinstall out/native/d8 755 usr/bin
|
vinstall out/native/d8 755 usr/bin
|
||||||
vinstall out/native/lib.target/lib${pkgname}.so 755 usr/lib
|
vinstall out/native/lib.target/libv8.so.${_sonamever} 755 usr/lib
|
||||||
fi
|
fi
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
if [ -z "$CROSS_BUILD" ]; then
|
||||||
# mksnapshot only built in native builds.
|
# mksnapshot only built in native builds.
|
||||||
|
@ -75,6 +69,8 @@ do_install() {
|
||||||
vinstall include/${pkgname}-testing.h 644 usr/include
|
vinstall include/${pkgname}-testing.h 644 usr/include
|
||||||
vinstall include/${pkgname}.h 644 usr/include
|
vinstall include/${pkgname}.h 644 usr/include
|
||||||
vinstall include/${pkgname}stdint.h 644 usr/include
|
vinstall include/${pkgname}stdint.h 644 usr/include
|
||||||
|
|
||||||
|
ln -sfr ${DESTDIR}/usr/lib/libv8.so.${_sonamever} ${DESTDIR}/usr/lib/libv8.so
|
||||||
}
|
}
|
||||||
|
|
||||||
v8-devel_package() {
|
v8-devel_package() {
|
||||||
|
@ -82,13 +78,14 @@ v8-devel_package() {
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
|
vmove usr/lib/libv8.so
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
libv8_package() {
|
libv8_package() {
|
||||||
short_desc+=" - runtime library"
|
short_desc+=" - runtime library"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/lib
|
vmove usr/lib/libv8.so.${_sonamever}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue