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.8.12.ebuild v8-3.1.8.2.ebuild
Date: Wed, 27 Apr 2011 11:21:34
Message-Id: 20110427112122.95DB420054@flycatcher.gentoo.org
1 phajdan.jr 11/04/27 11:21:22
2
3 Modified: ChangeLog
4 Added: v8-3.1.8.12.ebuild
5 Removed: v8-3.1.8.2.ebuild
6 Log:
7 Version bump for beta channel release. Remove old.
8
9 (Portage version: 2.1.9.42/cvs/Linux i686)
10
11 Revision Changes Path
12 1.53 dev-lang/v8/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/ChangeLog?rev=1.53&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/ChangeLog?rev=1.53&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/ChangeLog?r1=1.52&r2=1.53
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v
21 retrieving revision 1.52
22 retrieving revision 1.53
23 diff -u -r1.52 -r1.53
24 --- ChangeLog 19 Apr 2011 10:15:44 -0000 1.52
25 +++ ChangeLog 27 Apr 2011 11:21:22 -0000 1.53
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.52 2011/04/19 10:15:44 phajdan.jr Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v 1.53 2011/04/27 11:21:22 phajdan.jr Exp $
31 +
32 +*v8-3.1.8.12 (27 Apr 2011)
33 +
34 + 27 Apr 2011; Pawel Hajdan jr <phajdan.jr@g.o> -v8-3.1.8.2.ebuild,
35 + +v8-3.1.8.12.ebuild:
36 + Version bump for beta channel release. Remove old.
37
38 19 Apr 2011; Pawel Hajdan jr <phajdan.jr@g.o> v8-3.1.8.2.ebuild,
39 v8-3.1.8.3.ebuild, v8-3.2.3.1.ebuild, v8-3.2.8.2.ebuild, v8-9999.ebuild:
40
41
42
43 1.1 dev-lang/v8/v8-3.1.8.12.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-3.1.8.12.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-3.1.8.12.ebuild?rev=1.1&content-type=text/plain
47
48 Index: v8-3.1.8.12.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.1.8.12.ebuild,v 1.1 2011/04/27 11:21:22 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 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 # Remove a test that is known to fail:
85 # http://groups.google.com/group/v8-users/browse_thread/thread/b8a3f42b5aa18d06
86 rm test/mjsunit/debug-script.js || die
87
88 # Remove a test that behaves differently depending on FEATURES="userpriv",
89 # see bug #348558.
90 rm test/mjsunit/d8-os.js || die
91 }
92
93 src_configure() {
94 # GCC issues multiple warnings about strict-aliasing issues in v8 code.
95 append-flags -fno-strict-aliasing
96 }
97
98 src_compile() {
99 # To make tests work, we compile with sample=shell.
100 # For more info see http://groups.google.com/group/v8-users/browse_thread/thread/61ca70420e4476bc
101 local myconf="library=shared soname=on sample=shell importenv=\"LINKFLAGS\""
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 }