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.17.6.14.ebuild ChangeLog
Date: Thu, 23 May 2013 20:17:37
Message-Id: 20130523201734.88D4D2171D@flycatcher.gentoo.org
1 phajdan.jr 13/05/23 20:17:34
2
3 Modified: ChangeLog
4 Added: v8-3.17.6.14.ebuild
5 Log:
6 Stable channel bump (security bug #470920). v8 has been rolled to an earlier version by upstream, and we follow that for stable ebuilds.
7
8 (Portage version: 2.1.11.62/cvs/Linux i686, signed Manifest commit with key 30427902)
9
10 Revision Changes Path
11 1.312 dev-lang/v8/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/ChangeLog?rev=1.312&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/ChangeLog?rev=1.312&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/ChangeLog?r1=1.311&r2=1.312
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v
20 retrieving revision 1.311
21 retrieving revision 1.312
22 diff -u -r1.311 -r1.312
23 --- ChangeLog 21 May 2013 21:34:25 -0000 1.311
24 +++ ChangeLog 23 May 2013 20:17:34 -0000 1.312
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-lang/v8
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v 1.311 2013/05/21 21:34:25 phajdan.jr Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v 1.312 2013/05/23 20:17:34 phajdan.jr Exp $
30 +
31 +*v8-3.17.6.14 (23 May 2013)
32 +
33 + 23 May 2013; Pawel Hajdan jr <phajdan.jr@g.o> +v8-3.17.6.14.ebuild:
34 + Stable channel bump (security bug #470920). v8 has been rolled to an earlier
35 + version by upstream, and we follow that for stable ebuilds.
36
37 *v8-3.18.5.5 (21 May 2013)
38
39
40
41
42 1.1 dev-lang/v8/v8-3.17.6.14.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-3.17.6.14.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-3.17.6.14.ebuild?rev=1.1&content-type=text/plain
46
47 Index: v8-3.17.6.14.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-3.17.6.14.ebuild,v 1.1 2013/05/23 20:17:34 phajdan.jr Exp $
52
53 EAPI="5"
54 PYTHON_COMPAT=( python2_{6,7} )
55
56 inherit chromium eutils multilib multiprocessing pax-utils python-any-r1 \
57 toolchain-funcs versionator
58
59 DESCRIPTION="Google's open source JavaScript engine"
60 HOMEPAGE="http://code.google.com/p/v8"
61 SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.bz2"
62 LICENSE="BSD"
63
64 soname_version="${PV}"
65 SLOT="0/${soname_version}"
66 KEYWORDS="~amd64 ~arm ~x86 ~x86-fbsd ~x64-macos ~x86-macos"
67 IUSE="neon readline"
68
69 RDEPEND="readline? ( sys-libs/readline:0 )"
70 DEPEND="${PYTHON_DEPS}
71 ${RDEPEND}"
72
73 src_configure() {
74 tc-export AR CC CXX RANLIB
75 export LINK=${CXX}
76
77 local myconf=""
78
79 # Always build v8 as a shared library with proper SONAME.
80 myconf+=" -Dcomponent=shared_library -Dsoname_version=${soname_version}"
81
82 # Use target arch detection logic from bug #354601.
83 case ${CHOST} in
84 i?86-*) myconf+=" -Dv8_target_arch=ia32" ;;
85 x86_64-*)
86 if [[ $ABI = x86 ]] ; then
87 myconf+=" -Dv8_target_arch=ia32"
88 else
89 myconf+=" -Dv8_target_arch=x64"
90 fi ;;
91 arm*-*)
92 myconf+=" -Dv8_target_arch=arm -Darm_fpu="
93 if [[ ${CHOST} == *-hardfloat-* ]] ; then
94 myconf+=" -Dv8_use_arm_eabi_hardfloat=true"
95 else
96 myconf+=" -Dv8_use_arm_eabi_hardfloat=false"
97 fi
98 if [[ ${CHOST} == armv7*-* ]] ; then
99 myconf+=" -Darmv7=1"
100 else
101 myconf+=" -Darmv7=0"
102 fi
103 myconf+=" $(gyp_use neon arm_neon)" ;;
104 *) die "Unrecognized CHOST: ${CHOST}"
105 esac
106
107 myconf+=" $(gyp_use readline console readline dumb)"
108
109 # Make sure that -Werror doesn't get added to CFLAGS by the build system.
110 # Depending on GCC version the warnings are different and we don't
111 # want the build to fail because of that.
112 myconf+=" -Dwerror="
113
114 # gyp does this only for linux, but we always want to use "out" dir, or
115 # all else below fails due to not finding "out" dir
116 myconf+=" --generator-output=out"
117 # gyp defaults to whatever makes the most sense on the platform at hand,
118 # but we want to build using Makefiles, so force that
119 myconf+=" -f make"
120
121 EGYP_CHROMIUM_COMMAND=build/gyp_v8 egyp_chromium ${myconf} || die
122 }
123
124 src_compile() {
125 local makeargs=(
126 -C out
127 builddir="${S}/out/Release"
128 V=1
129 BUILDTYPE=Release
130 )
131
132 # Build mksnapshot so we can pax-mark it.
133 emake "${makeargs[@]}" mksnapshot
134 pax-mark m out/Release/mksnapshot
135
136 # Build everything else.
137 emake "${makeargs[@]}"
138 pax-mark m out/Release/{cctest,d8}
139 }
140
141 src_test() {
142 LD_LIBRARY_PATH=out/Release/lib.target tools/run-tests.py \
143 -j$(makeopts_jobs) \
144 --no-presubmit \
145 --outdir=out \
146 --buildbot \
147 --arch=native \
148 --mode=Release \
149 --progress=dots || die
150 }
151
152 src_install() {
153 insinto /usr
154 doins -r include
155
156 if [[ ${CHOST} == *-darwin* ]] ; then
157 # buildsystem is too horrific to get this built correctly
158 mkdir -p out/Release/lib.target || die
159 mv out/Release/libv8.so.${soname_version} \
160 out/Release/lib.target/libv8$(get_libname ${soname_version}) || die
161 install_name_tool \
162 -id "${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname) \
163 out/Release/lib.target/libv8$(get_libname ${soname_version}) \
164 || die
165 install_name_tool \
166 -change \
167 /usr/local/lib/libv8.so.${soname_version} \
168 "${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname) \
169 out/Release/d8 || die
170 fi
171
172 dobin out/Release/d8
173 pax-mark m "${ED}usr/bin/d8"
174
175 dolib out/Release/lib.target/libv8$(get_libname ${soname_version})
176 dosym libv8$(get_libname ${soname_version}) /usr/$(get_libdir)/libv8$(get_libname)
177
178 dodoc AUTHORS ChangeLog || die
179 }
180
181 # TODO: remove functions below after they are removed from chromium.eclass'
182 # EXPORT_FUNCTIONS .
183
184 pkg_preinst() {
185 return
186 }
187
188 pkg_postinst() {
189 return
190 }
191
192 pkg_postrm() {
193 return
194 }