diff options
author | 2010-10-05 15:30:34 +0000 | |
---|---|---|
committer | 2010-10-05 15:30:34 +0000 | |
commit | c951354257815a0b025901bf2d60ca0fea8ee19d (patch) | |
tree | 2a53197a26b1539dcb20b0d5b386e8c3aa131035 /dev-lang | |
parent | bump ebml and matroska requirements (diff) | |
download | gentoo-2-c951354257815a0b025901bf2d60ca0fea8ee19d.tar.gz gentoo-2-c951354257815a0b025901bf2d60ca0fea8ee19d.tar.bz2 gentoo-2-c951354257815a0b025901bf2d60ca0fea8ee19d.zip |
Add support for building on amd64, thanks to Priit Laes <plaes@plaes.org> in bug #337766.
(Portage version: 2.1.8.3/cvs/Linux i686)
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/v8/ChangeLog | 6 | ||||
-rw-r--r-- | dev-lang/v8/v8-2.4.3.ebuild | 14 |
2 files changed, 18 insertions, 2 deletions
diff --git a/dev-lang/v8/ChangeLog b/dev-lang/v8/ChangeLog index 560d9f40d371..1c721c37f477 100644 --- a/dev-lang/v8/ChangeLog +++ b/dev-lang/v8/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-lang/v8 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v 1.3 2010/09/17 00:08:36 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v 1.4 2010/10/05 15:30:34 phajdan.jr Exp $ + + 05 Oct 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org> v8-2.4.3.ebuild: + Add support for building on amd64, thanks to Priit Laes <plaes@plaes.org> + in bug #337766. *v8-2.4.3 (17 Sep 2010) diff --git a/dev-lang/v8/v8-2.4.3.ebuild b/dev-lang/v8/v8-2.4.3.ebuild index 58de6def011e..86773c3c31ad 100644 --- a/dev-lang/v8/v8-2.4.3.ebuild +++ b/dev-lang/v8/v8-2.4.3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-2.4.3.ebuild,v 1.1 2010/09/17 00:08:36 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-2.4.3.ebuild,v 1.2 2010/10/05 15:30:34 phajdan.jr Exp $ EAPI="2" @@ -52,6 +52,18 @@ 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" + else + die "Failed to determine target arch, got '$myarch'." + fi + if use readline; then myconf="${myconf} console=readline" else |