/[gentoo-x86]/dev-lang/v8/v8-2.4.9.13.ebuild
Gentoo

Contents of /dev-lang/v8/v8-2.4.9.13.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Dec 31 16:34:35 2010 UTC (3 years, 11 months ago) by phajdan.jr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Fix build, bug #349794 by flameeyes. Used patch by Mike Gilbert <floppymaster@gmail.com>.

(Portage version: 2.1.9.25/cvs/Linux i686)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-2.4.9.13.ebuild,v 1.1 2010/11/12 11:41:39 phajdan.jr Exp $
4
5 EAPI="2"
6
7 inherit eutils flag-o-matic multilib scons-utils toolchain-funcs
8
9 DESCRIPTION="Google's open source JavaScript engine"
10 HOMEPAGE="http://code.google.com/p/v8"
11 SRC_URI="mirror://gentoo/${P}.tar.gz"
12 LICENSE="BSD"
13
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="readline"
17
18 RDEPEND="readline? ( >=sys-libs/readline-6.1 )"
19 DEPEND="${RDEPEND}"
20
21 EXTRA_ESCONS="library=shared soname=on importenv=\"LINKFLAGS\""
22
23 pkg_setup() {
24 tc-export AR CC CXX RANLIB
25
26 # Make the build respect LDFLAGS.
27 export LINKFLAGS="${LDFLAGS}"
28 }
29
30 src_prepare() {
31 # Stop -Werror from breaking the build.
32 epatch "${FILESDIR}"/${PN}-no-werror-r0.patch
33
34 # Respect the user's CFLAGS, including the optimization level.
35 epatch "${FILESDIR}"/${PN}-no-O3-r0.patch
36
37 # Remove a test that is known to fail:
38 # http://groups.google.com/group/v8-users/browse_thread/thread/b8a3f42b5aa18d06
39 rm test/mjsunit/debug-script.js || die
40 }
41
42 src_configure() {
43 # GCC issues multiple warnings about strict-aliasing issues in v8 code.
44 append-flags -fno-strict-aliasing
45 }
46
47 src_compile() {
48 local myconf=""
49
50 # Use target arch detection logic from bug #296917.
51 local myarch="$ABI"
52 [[ $myarch = "" ]] && myarch="$ARCH"
53
54 if [[ $myarch = amd64 ]] ; then
55 myconf+=" arch=x64"
56 elif [[ $myarch = x86 ]] ; then
57 myconf+=" arch=ia32"
58 else
59 die "Failed to determine target arch, got '$myarch'."
60 fi
61
62 escons $(use_scons readline console readline dumb) ${myconf} . || die
63 }
64
65 src_install() {
66 insinto /usr
67 doins -r include || die
68
69 dobin d8 || die
70
71 dolib libv8-${PV}.so || die
72 dosym libv8-${PV}.so /usr/$(get_libdir)/libv8.so || die
73
74 dodoc AUTHORS ChangeLog || die
75 }
76
77 src_test() {
78 tools/test.py --no-build -p dots --shell d8 || die
79 }

  ViewVC Help
Powered by ViewVC 1.1.20