diff options
author | Paweł Hajdan <phajdan.jr@gentoo.org> | 2011-03-01 14:41:00 +0000 |
---|---|---|
committer | Paweł Hajdan <phajdan.jr@gentoo.org> | 2011-03-01 14:41:00 +0000 |
commit | b733e8bf4a7661bee1ee887d3dc325a09276703a (patch) | |
tree | 8a6899f12eda87c62fb88e67062b915a84b982d2 /dev-lang | |
parent | Delete older ebuild. (diff) | |
download | gentoo-2-b733e8bf4a7661bee1ee887d3dc325a09276703a.tar.gz gentoo-2-b733e8bf4a7661bee1ee887d3dc325a09276703a.tar.bz2 gentoo-2-b733e8bf4a7661bee1ee887d3dc325a09276703a.zip |
Version bump for dev channel release.
(Portage version: 2.1.9.25/cvs/Linux i686)
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/v8/ChangeLog | 7 | ||||
-rw-r--r-- | dev-lang/v8/v8-3.1.6.1.ebuild | 90 |
2 files changed, 96 insertions, 1 deletions
diff --git a/dev-lang/v8/ChangeLog b/dev-lang/v8/ChangeLog index fb93754d017e..2f53a05dbeac 100644 --- a/dev-lang/v8/ChangeLog +++ b/dev-lang/v8/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-lang/v8 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v 1.40 2011/02/24 10:33:01 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v 1.41 2011/03/01 14:41:00 phajdan.jr Exp $ + +*v8-3.1.6.1 (01 Mar 2011) + + 01 Mar 2011; Pawel Hajdan jr <phajdan.jr@gentoo.org> +v8-3.1.6.1.ebuild: + Version bump for dev channel release. *v8-3.0.12.23 (24 Feb 2011) diff --git a/dev-lang/v8/v8-3.1.6.1.ebuild b/dev-lang/v8/v8-3.1.6.1.ebuild new file mode 100644 index 000000000000..34f726d3d55f --- /dev/null +++ b/dev-lang/v8/v8-3.1.6.1.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-3.1.6.1.ebuild,v 1.1 2011/03/01 14:41:00 phajdan.jr Exp $ + +EAPI="2" + +inherit eutils flag-o-matic multilib scons-utils toolchain-funcs + +DESCRIPTION="Google's open source JavaScript engine" +HOMEPAGE="http://code.google.com/p/v8" +SRC_URI="mirror://gentoo/${P}.tar.gz" +LICENSE="BSD" + +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="readline" + +RDEPEND="readline? ( >=sys-libs/readline-6.1 )" +DEPEND="${RDEPEND}" + +# To make tests work, we compile with sample=shell. +# For more info see http://groups.google.com/group/v8-users/browse_thread/thread/61ca70420e4476bc +EXTRA_ESCONS="library=shared soname=on sample=shell importenv=\"LINKFLAGS\"" + +pkg_setup() { + tc-export AR CC CXX RANLIB + + # Make the build respect LDFLAGS. + export LINKFLAGS="${LDFLAGS}" +} + +src_prepare() { + # Stop -Werror from breaking the build. + epatch "${FILESDIR}"/${PN}-no-werror-r0.patch + + # Respect the user's CFLAGS, including the optimization level. + epatch "${FILESDIR}"/${PN}-no-O3-r0.patch + + # Remove a test that is known to fail: + # http://groups.google.com/group/v8-users/browse_thread/thread/b8a3f42b5aa18d06 + rm test/mjsunit/debug-script.js || die + + # Remove a test that behaves differently depending on FEATURES="userpriv", + # see bug #348558. + rm test/mjsunit/d8-os.js || die +} + +src_configure() { + # GCC issues multiple warnings about strict-aliasing issues in v8 code. + append-flags -fno-strict-aliasing +} + +src_compile() { + local myconf="" + + # Use target arch detection logic from bug #296917. + local myarch="$ABI" + [[ $myarch = "" ]] && myarch="$ARCH" + + if [[ $myarch = amd64 ]] ; then + myconf+=" arch=x64" + elif [[ $myarch = x86 ]] ; then + myconf+=" arch=ia32" + elif [[ $myarch = arm ]] ; then + myconf+=" arch=arm" + else + die "Failed to determine target arch, got '$myarch'." + fi + + escons $(use_scons readline console readline dumb) ${myconf} . || die +} + +src_install() { + insinto /usr + doins -r include || die + + dobin d8 || die + + dolib libv8-${PV}.so || die + dosym libv8-${PV}.so /usr/$(get_libdir)/libv8.so || die + + dodoc AUTHORS ChangeLog || die +} + +src_test() { + # Make sure we use the libv8.so from our build directory, + # and not the /usr/lib one (it may be missing if we are + # installing for the first time or upgrading), see bug #352374. + LD_LIBRARY_PATH="${S}" tools/test.py --no-build -p dots || die +} |