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: v8-3.4.6.2.ebuild ChangeLog
Date: Wed, 29 Jun 2011 11:28:54
Message-Id: 20110629112842.47E6720054@flycatcher.gentoo.org
1 phajdan.jr 11/06/29 11:28:42
2
3 Modified: ChangeLog
4 Added: v8-3.4.6.2.ebuild
5 Log:
6 Version bump for dev channel release.
7
8 (Portage version: 2.1.9.42/cvs/Linux i686)
9
10 Revision Changes Path
11 1.64 dev-lang/v8/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/ChangeLog?rev=1.64&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/ChangeLog?rev=1.64&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/ChangeLog?r1=1.63&r2=1.64
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v
20 retrieving revision 1.63
21 retrieving revision 1.64
22 diff -u -r1.63 -r1.64
23 --- ChangeLog 21 Jun 2011 07:13:09 -0000 1.63
24 +++ ChangeLog 29 Jun 2011 11:28:42 -0000 1.64
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.63 2011/06/21 07:13:09 phajdan.jr Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v 1.64 2011/06/29 11:28:42 phajdan.jr Exp $
30 +
31 +*v8-3.4.6.2 (29 Jun 2011)
32 +
33 + 29 Jun 2011; Pawel Hajdan jr <phajdan.jr@g.o> +v8-3.4.6.2.ebuild:
34 + Version bump for dev channel release.
35
36 21 Jun 2011; Pawel Hajdan jr <phajdan.jr@g.o> v8-3.2.10.15.ebuild:
37 x86 stable wrt security bug #370627
38
39
40
41 1.1 dev-lang/v8/v8-3.4.6.2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-3.4.6.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-3.4.6.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: v8-3.4.6.2.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.4.6.2.ebuild,v 1.1 2011/06/29 11:28:42 phajdan.jr Exp $
51
52 EAPI="2"
53
54 inherit eutils flag-o-matic multilib pax-utils 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 pkg_setup() {
69 tc-export AR CC CXX RANLIB
70
71 # Make the build respect LDFLAGS.
72 export LINKFLAGS="${LDFLAGS}"
73 }
74
75 src_prepare() {
76 # Stop -Werror from breaking the build.
77 epatch "${FILESDIR}"/${PN}-no-werror-r0.patch
78
79 # Respect the user's CFLAGS, including the optimization level.
80 epatch "${FILESDIR}"/${PN}-no-O3-r0.patch
81
82 # Remove a test that is known to fail:
83 # http://groups.google.com/group/v8-users/browse_thread/thread/b8a3f42b5aa18d06
84 rm test/mjsunit/debug-script.js || die
85
86 # Remove a test that behaves differently depending on FEATURES="userpriv",
87 # see bug #348558.
88 rm test/mjsunit/d8-os.js || die
89 }
90
91 src_configure() {
92 # GCC issues multiple warnings about strict-aliasing issues in v8 code.
93 append-flags -fno-strict-aliasing
94 }
95
96 src_compile() {
97 # To make tests work, we compile with sample=shell and visibility=default.
98 # For more info see http://groups.google.com/group/v8-users/browse_thread/thread/61ca70420e4476bc
99 # and http://groups.google.com/group/v8-users/browse_thread/thread/165f89728ed6f97d
100 local myconf="library=shared soname=on sample=shell visibility=default importenv=LINKFLAGS,PATH"
101
102 # Use target arch detection logic from bug #354601.
103 case ${CHOST} in
104 i?86-*) myarch=x86 ;;
105 x86_64-*)
106 if [[ $ABI = "" ]] ; then
107 myarch=amd64
108 else
109 myarch="$ABI"
110 fi ;;
111 arm*-*) myarch=arm ;;
112 *) die "Unrecognized CHOST: ${CHOST}"
113 esac
114
115 if [[ $myarch = amd64 ]] ; then
116 myconf+=" arch=x64"
117 elif [[ $myarch = x86 ]] ; then
118 myconf+=" arch=ia32"
119 elif [[ $myarch = arm ]] ; then
120 myconf+=" arch=arm"
121 else
122 die "Failed to determine target arch, got '$myarch'."
123 fi
124
125 escons $(use_scons readline console readline dumb) ${myconf} . || die
126 pax-mark -m obj/test/release/cctest shell d8
127 }
128
129 src_install() {
130 insinto /usr
131 doins -r include || die
132
133 dobin d8 || die
134
135 dolib libv8-${PV}.so || die
136 dosym libv8-${PV}.so /usr/$(get_libdir)/libv8.so || die
137
138 dodoc AUTHORS ChangeLog || die
139 }
140
141 src_test() {
142 # Make sure we use the libv8.so from our build directory,
143 # and not the /usr/lib one (it may be missing if we are
144 # installing for the first time or upgrading), see bug #352374.
145 LD_LIBRARY_PATH="${S}" tools/test.py --no-build -p dots || die
146 }