summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-lang/v8/ChangeLog8
-rw-r--r--dev-lang/v8/v8-3.8.9.13.ebuild (renamed from dev-lang/v8/v8-3.8.9.6.ebuild)32
2 files changed, 33 insertions, 7 deletions
diff --git a/dev-lang/v8/ChangeLog b/dev-lang/v8/ChangeLog
index d2323e131a72..b5da85afeb68 100644
--- a/dev-lang/v8/ChangeLog
+++ b/dev-lang/v8/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-lang/v8
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v 1.148 2012/03/08 20:29:16 phajdan.jr Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v 1.149 2012/03/08 21:11:16 floppym Exp $
+
+*v8-3.8.9.13 (08 Mar 2012)
+
+ 08 Mar 2012; Mike Gilbert <floppym@gentoo.org> +v8-3.8.9.13.ebuild,
+ -v8-3.8.9.6.ebuild:
+ Version bump for beta channel release.
*v8-3.9.13 (08 Mar 2012)
diff --git a/dev-lang/v8/v8-3.8.9.6.ebuild b/dev-lang/v8/v8-3.8.9.13.ebuild
index 5755638ffc7d..f541a5245d19 100644
--- a/dev-lang/v8/v8-3.8.9.6.ebuild
+++ b/dev-lang/v8/v8-3.8.9.13.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-3.8.9.6.ebuild,v 1.1 2012/02/16 02:12:18 floppym Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-3.8.9.13.ebuild,v 1.1 2012/03/08 21:11:16 floppym Exp $
EAPI="4"
@@ -31,6 +31,26 @@ pkg_setup() {
python_pkg_setup
}
+src_prepare() {
+ # don't force 32-bits mode on Darwin
+ sed -i -e '/-arch i386/d' build/gyp/pylib/gyp/generator/make.py || die
+ # force using Makefiles, instead of Xcode project file on Darwin
+ sed -i -e '/darwin/s/xcode/make/' build/gyp/pylib/gyp/__init__.py || die
+ # don't refuse to build shared_libs because we build somewhere else
+ sed -i \
+ -e '/params\.get.*mac.*darwin.*linux/s/mac/darwin/' \
+ -e "/if GetFlavor(params) == 'mac':/s/mac/darwin/" \
+ -e "/^ if flavor == 'mac':/s/mac/darwin/" \
+ build/gyp/pylib/gyp/generator/make.py || die
+ # make sure our v8.dylib doesn't end up being empty and give it a proper
+ # install_name (soname)
+ sed -i \
+ -e '/^LINK_COMMANDS_MAC =/,/^SHARED_HEADER =/s#-shared#-dynamiclib -all_load -install_name '"${EPREFIX}/usr/$(get_libdir)/libv8$(get_libname $(get_version_component_range 1-3))"'#' \
+ build/gyp/pylib/gyp/generator/make.py || die
+ # don't force targetting old machines
+ sed -i -e "s/, '-mmacosx-version-min=10.4'//" SConstruct || die
+}
+
src_compile() {
tc-export AR CC CXX RANLIB
export LINK="${CXX}"
@@ -90,13 +110,13 @@ src_install() {
dobin out/${mytarget}/d8 || die
if [[ ${CHOST} == *-darwin* ]] ; then
- install_name_tool \
- -id "${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname).${soname_version} \
- out/${mytarget}/lib.target/libv8$(get_libname).${soname_version} || die
+ # buildsystem is too horrific to get this built correctly
+ mv out/${mytarget}/lib.target/libv8.so.${soname_version} \
+ out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) || die
fi
- dolib out/${mytarget}/lib.target/libv8$(get_libname).${soname_version} || die
- dosym libv8$(get_libname).${soname_version} /usr/$(get_libdir)/libv8$(get_libname) || die
+ dolib out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) || die
+ dosym libv8$(get_libname ${soname_version}) /usr/$(get_libdir)/libv8$(get_libname) || die
dodoc AUTHORS ChangeLog || die
}