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.1.ebuild
Date: Thu, 02 Dec 2010 10:09:28
Message-Id: 20101202100917.1741E20054@flycatcher.gentoo.org
1 phajdan.jr 10/12/02 10:09:16
2
3 Modified: ChangeLog
4 Added: v8-2.5.9.1.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.1.9.24/cvs/Linux i686)
9
10 Revision Changes Path
11 1.16 dev-lang/v8/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/ChangeLog?rev=1.16&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/ChangeLog?rev=1.16&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/ChangeLog?r1=1.15&r2=1.16
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v
20 retrieving revision 1.15
21 retrieving revision 1.16
22 diff -u -r1.15 -r1.16
23 --- ChangeLog 19 Nov 2010 13:46:37 -0000 1.15
24 +++ ChangeLog 2 Dec 2010 10:09:16 -0000 1.16
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-lang/v8
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v 1.15 2010/11/19 13:46:37 maekke Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v 1.16 2010/12/02 10:09:16 phajdan.jr Exp $
30 +
31 +*v8-2.5.9.1 (02 Dec 2010)
32 +
33 + 02 Dec 2010; Pawel Hajdan jr <phajdan.jr@g.o> +v8-2.5.9.1.ebuild:
34 + Version bump.
35
36 19 Nov 2010; Markus Meier <maekke@g.o> v8-2.5.6.ebuild:
37 add ~arm, bug #343791
38
39
40
41 1.1 dev-lang/v8/v8-2.5.9.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-2.5.9.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-2.5.9.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: v8-2.5.9.1.ebuild
47 ===================================================================
48 # Copyright 1999-2010 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.1.ebuild,v 1.1 2010/12/02 10:09:16 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 # 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
89 src_configure() {
90 # GCC issues multiple warnings about strict-aliasing issues in v8 code.
91 append-flags -fno-strict-aliasing
92 }
93
94 src_compile() {
95 local myconf=""
96
97 # Use target arch detection logic from bug #296917.
98 local myarch="$ABI"
99 [[ $myarch = "" ]] && myarch="$ARCH"
100
101 if [[ $myarch = amd64 ]] ; then
102 myconf+=" arch=x64"
103 elif [[ $myarch = x86 ]] ; then
104 myconf+=" arch=ia32"
105 elif [[ $myarch = arm ]] ; then
106 myconf+=" arch=arm"
107 else
108 die "Failed to determine target arch, got '$myarch'."
109 fi
110
111 escons $(use_scons readline console readline dumb) ${myconf} . || die
112 }
113
114 src_install() {
115 insinto /usr
116 doins -r include || die
117
118 dobin d8 || die
119
120 dolib libv8-${PV}.so || die
121 dosym libv8-${PV}.so /usr/$(get_libdir)/libv8.so || die
122
123 dodoc AUTHORS ChangeLog || die
124 }
125
126 src_test() {
127 tools/test.py --no-build -p dots --shell d8 || die
128 }