Gentoo Archives: gentoo-commits

From: "PaweA Hajdan (phajdan.jr)" <phajdan.jr@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/v8: ChangeLog v8-3.1.6.1.ebuild
Date: Tue, 01 Mar 2011 14:41:14
Message-Id: 20110301144100.845E720054@flycatcher.gentoo.org
1 phajdan.jr 11/03/01 14:41:00
2
3 Modified: ChangeLog
4 Added: v8-3.1.6.1.ebuild
5 Log:
6 Version bump for dev channel release.
7
8 (Portage version: 2.1.9.25/cvs/Linux i686)
9
10 Revision Changes Path
11 1.41 dev-lang/v8/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/ChangeLog?rev=1.41&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/ChangeLog?rev=1.41&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/ChangeLog?r1=1.40&r2=1.41
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v
20 retrieving revision 1.40
21 retrieving revision 1.41
22 diff -u -r1.40 -r1.41
23 --- ChangeLog 24 Feb 2011 10:33:01 -0000 1.40
24 +++ ChangeLog 1 Mar 2011 14:41:00 -0000 1.41
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-lang/v8
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v 1.40 2011/02/24 10:33:01 phajdan.jr Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v 1.41 2011/03/01 14:41:00 phajdan.jr Exp $
30 +
31 +*v8-3.1.6.1 (01 Mar 2011)
32 +
33 + 01 Mar 2011; Pawel Hajdan jr <phajdan.jr@g.o> +v8-3.1.6.1.ebuild:
34 + Version bump for dev channel release.
35
36 *v8-3.0.12.23 (24 Feb 2011)
37
38
39
40
41 1.1 dev-lang/v8/v8-3.1.6.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-3.1.6.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-3.1.6.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: v8-3.1.6.1.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $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 $
51
52 EAPI="2"
53
54 inherit eutils flag-o-matic multilib scons-utils toolchain-funcs
55
56 DESCRIPTION="Google's open source JavaScript engine"
57 HOMEPAGE="http://code.google.com/p/v8"
58 SRC_URI="mirror://gentoo/${P}.tar.gz"
59 LICENSE="BSD"
60
61 SLOT="0"
62 KEYWORDS="~amd64 ~arm ~x86"
63 IUSE="readline"
64
65 RDEPEND="readline? ( >=sys-libs/readline-6.1 )"
66 DEPEND="${RDEPEND}"
67
68 # To make tests work, we compile with sample=shell.
69 # For more info see http://groups.google.com/group/v8-users/browse_thread/thread/61ca70420e4476bc
70 EXTRA_ESCONS="library=shared soname=on sample=shell importenv=\"LINKFLAGS\""
71
72 pkg_setup() {
73 tc-export AR CC CXX RANLIB
74
75 # Make the build respect LDFLAGS.
76 export LINKFLAGS="${LDFLAGS}"
77 }
78
79 src_prepare() {
80 # Stop -Werror from breaking the build.
81 epatch "${FILESDIR}"/${PN}-no-werror-r0.patch
82
83 # Respect the user's CFLAGS, including the optimization level.
84 epatch "${FILESDIR}"/${PN}-no-O3-r0.patch
85
86 # Remove a test that is known to fail:
87 # http://groups.google.com/group/v8-users/browse_thread/thread/b8a3f42b5aa18d06
88 rm test/mjsunit/debug-script.js || die
89
90 # Remove a test that behaves differently depending on FEATURES="userpriv",
91 # see bug #348558.
92 rm test/mjsunit/d8-os.js || die
93 }
94
95 src_configure() {
96 # GCC issues multiple warnings about strict-aliasing issues in v8 code.
97 append-flags -fno-strict-aliasing
98 }
99
100 src_compile() {
101 local myconf=""
102
103 # Use target arch detection logic from bug #296917.
104 local myarch="$ABI"
105 [[ $myarch = "" ]] && myarch="$ARCH"
106
107 if [[ $myarch = amd64 ]] ; then
108 myconf+=" arch=x64"
109 elif [[ $myarch = x86 ]] ; then
110 myconf+=" arch=ia32"
111 elif [[ $myarch = arm ]] ; then
112 myconf+=" arch=arm"
113 else
114 die "Failed to determine target arch, got '$myarch'."
115 fi
116
117 escons $(use_scons readline console readline dumb) ${myconf} . || die
118 }
119
120 src_install() {
121 insinto /usr
122 doins -r include || die
123
124 dobin d8 || die
125
126 dolib libv8-${PV}.so || die
127 dosym libv8-${PV}.so /usr/$(get_libdir)/libv8.so || die
128
129 dodoc AUTHORS ChangeLog || die
130 }
131
132 src_test() {
133 # Make sure we use the libv8.so from our build directory,
134 # and not the /usr/lib one (it may be missing if we are
135 # installing for the first time or upgrading), see bug #352374.
136 LD_LIBRARY_PATH="${S}" tools/test.py --no-build -p dots || die
137 }