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-2.5.9.6.ebuild
Date: Wed, 05 Jan 2011 15:09:39
Message-Id: 20110105150928.A397920051@flycatcher.gentoo.org
1 phajdan.jr 11/01/05 15:09:28
2
3 Modified: ChangeLog
4 Added: v8-2.5.9.6.ebuild
5 Log:
6 Version bump for beta channel release.
7
8 (Portage version: 2.1.9.25/cvs/Linux i686)
9
10 Revision Changes Path
11 1.22 dev-lang/v8/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/ChangeLog?rev=1.22&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/ChangeLog?rev=1.22&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/ChangeLog?r1=1.21&r2=1.22
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v
20 retrieving revision 1.21
21 retrieving revision 1.22
22 diff -u -r1.21 -r1.22
23 --- ChangeLog 2 Jan 2011 15:51:34 -0000 1.21
24 +++ ChangeLog 5 Jan 2011 15:09:28 -0000 1.22
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.21 2011/01/02 15:51:34 phajdan.jr Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v 1.22 2011/01/05 15:09:28 phajdan.jr Exp $
30 +
31 +*v8-2.5.9.6 (05 Jan 2011)
32 +
33 + 05 Jan 2011; Pawel Hajdan jr <phajdan.jr@g.o> +v8-2.5.9.6.ebuild:
34 + Version bump for beta channel release.
35
36 02 Jan 2011; Pawel Hajdan jr <phajdan.jr@g.o> v8-2.4.9.14.ebuild,
37 v8-2.5.9.1.ebuild, v8-3.0.0.1.ebuild, v8-9999.ebuild:
38
39
40
41 1.1 dev-lang/v8/v8-2.5.9.6.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-2.5.9.6.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-2.5.9.6.ebuild?rev=1.1&content-type=text/plain
45
46 Index: v8-2.5.9.6.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-2.5.9.6.ebuild,v 1.1 2011/01/05 15:09:28 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 EXTRA_ESCONS="library=shared soname=on importenv=\"LINKFLAGS\""
69
70 pkg_setup() {
71 tc-export AR CC CXX RANLIB
72
73 # Make the build respect LDFLAGS.
74 export LINKFLAGS="${LDFLAGS}"
75 }
76
77 src_prepare() {
78 # Stop -Werror from breaking the build.
79 epatch "${FILESDIR}"/${PN}-no-werror-r0.patch
80
81 # Respect the user's CFLAGS, including the optimization level.
82 epatch "${FILESDIR}"/${PN}-no-O3-r0.patch
83
84 # Fix a compile error (bug #349794), to be upstreamed.
85 epatch "${FILESDIR}"/${PN}-gentoo-bug-349794-r0.patch
86
87 # Remove a test that is known to fail:
88 # http://groups.google.com/group/v8-users/browse_thread/thread/b8a3f42b5aa18d06
89 rm test/mjsunit/debug-script.js || die
90
91 # Remove a test that behaves differently depending on FEATURES="userpriv",
92 # see bug #348558.
93 rm test/mjsunit/d8-os.js || die
94 }
95
96 src_configure() {
97 # GCC issues multiple warnings about strict-aliasing issues in v8 code.
98 append-flags -fno-strict-aliasing
99 }
100
101 src_compile() {
102 local myconf=""
103
104 # Use target arch detection logic from bug #296917.
105 local myarch="$ABI"
106 [[ $myarch = "" ]] && myarch="$ARCH"
107
108 if [[ $myarch = amd64 ]] ; then
109 myconf+=" arch=x64"
110 elif [[ $myarch = x86 ]] ; then
111 myconf+=" arch=ia32"
112 elif [[ $myarch = arm ]] ; then
113 myconf+=" arch=arm"
114 else
115 die "Failed to determine target arch, got '$myarch'."
116 fi
117
118 escons $(use_scons readline console readline dumb) ${myconf} . || die
119 }
120
121 src_install() {
122 insinto /usr
123 doins -r include || die
124
125 dobin d8 || die
126
127 dolib libv8-${PV}.so || die
128 dosym libv8-${PV}.so /usr/$(get_libdir)/libv8.so || die
129
130 dodoc AUTHORS ChangeLog || die
131 }
132
133 src_test() {
134 tools/test.py --no-build -p dots --shell d8 || die
135 }