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