1 |
phajdan.jr 13/07/31 04:34:22 |
2 |
|
3 |
Modified: v8-9999.ebuild ChangeLog |
4 |
Added: v8-3.20.8.2.ebuild |
5 |
Log: |
6 |
Dev channel bump. New icu USE flag. |
7 |
|
8 |
(Portage version: 2.1.12.2/cvs/Linux i686, signed Manifest commit with key 30427902) |
9 |
|
10 |
Revision Changes Path |
11 |
1.47 dev-lang/v8/v8-9999.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-9999.ebuild?rev=1.47&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-9999.ebuild?rev=1.47&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-9999.ebuild?r1=1.46&r2=1.47 |
16 |
|
17 |
Index: v8-9999.ebuild |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-9999.ebuild,v |
20 |
retrieving revision 1.46 |
21 |
retrieving revision 1.47 |
22 |
diff -u -r1.46 -r1.47 |
23 |
--- v8-9999.ebuild 10 Jul 2013 00:41:14 -0000 1.46 |
24 |
+++ v8-9999.ebuild 31 Jul 2013 04:34:22 -0000 1.47 |
25 |
@@ -1,6 +1,6 @@ |
26 |
# Copyright 1999-2013 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-9999.ebuild,v 1.46 2013/07/10 00:41:14 floppym Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-9999.ebuild,v 1.47 2013/07/31 04:34:22 phajdan.jr Exp $ |
30 |
|
31 |
EAPI="5" |
32 |
PYTHON_COMPAT=( python2_{6,7} ) |
33 |
@@ -15,9 +15,10 @@ |
34 |
|
35 |
SLOT="0" |
36 |
KEYWORDS="" |
37 |
-IUSE="readline neon" |
38 |
+IUSE="icu readline neon" |
39 |
|
40 |
-RDEPEND="readline? ( sys-libs/readline:0 )" |
41 |
+RDEPEND="icu? ( dev-libs/icu:= ) |
42 |
+ readline? ( sys-libs/readline:0 )" |
43 |
DEPEND="${PYTHON_DEPS} |
44 |
${RDEPEND}" |
45 |
|
46 |
@@ -27,6 +28,11 @@ |
47 |
make dependencies || die |
48 |
} |
49 |
|
50 |
+src_prepare() { |
51 |
+ # Make sure no bundled libraries are used. |
52 |
+ find third_party -type f \! -iname '*.gyp*' -delete || die |
53 |
+} |
54 |
+ |
55 |
src_configure() { |
56 |
tc-export AR CC CXX RANLIB |
57 |
export LINK=${CXX} |
58 |
@@ -91,7 +97,12 @@ |
59 |
*) die "Unrecognized CHOST: ${CHOST}" |
60 |
esac |
61 |
|
62 |
- myconf+=" $(gyp_use readline console readline dumb)" |
63 |
+ myconf+=" |
64 |
+ $(gyp_use icu v8_enable_i18n_support) |
65 |
+ $(gyp_use readline console readline dumb)" |
66 |
+ |
67 |
+ myconf+=" |
68 |
+ -Duse_system_icu=1" |
69 |
|
70 |
# Make sure that -Werror doesn't get added to CFLAGS by the build system. |
71 |
# Depending on GCC version the warnings are different and we don't |
72 |
|
73 |
|
74 |
|
75 |
1.327 dev-lang/v8/ChangeLog |
76 |
|
77 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/ChangeLog?rev=1.327&view=markup |
78 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/ChangeLog?rev=1.327&content-type=text/plain |
79 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/ChangeLog?r1=1.326&r2=1.327 |
80 |
|
81 |
Index: ChangeLog |
82 |
=================================================================== |
83 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v |
84 |
retrieving revision 1.326 |
85 |
retrieving revision 1.327 |
86 |
diff -u -r1.326 -r1.327 |
87 |
--- ChangeLog 31 Jul 2013 00:03:37 -0000 1.326 |
88 |
+++ ChangeLog 31 Jul 2013 04:34:22 -0000 1.327 |
89 |
@@ -1,6 +1,12 @@ |
90 |
# ChangeLog for dev-lang/v8 |
91 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
92 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v 1.326 2013/07/31 00:03:37 floppym Exp $ |
93 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/ChangeLog,v 1.327 2013/07/31 04:34:22 phajdan.jr Exp $ |
94 |
+ |
95 |
+*v8-3.20.8.2 (31 Jul 2013) |
96 |
+ |
97 |
+ 31 Jul 2013; Pawel Hajdan jr <phajdan.jr@g.o> +v8-3.20.8.2.ebuild, |
98 |
+ v8-9999.ebuild: |
99 |
+ Dev channel bump. New icu USE flag. |
100 |
|
101 |
*v8-3.18.5.14 (31 Jul 2013) |
102 |
|
103 |
|
104 |
|
105 |
|
106 |
1.1 dev-lang/v8/v8-3.20.8.2.ebuild |
107 |
|
108 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-3.20.8.2.ebuild?rev=1.1&view=markup |
109 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-3.20.8.2.ebuild?rev=1.1&content-type=text/plain |
110 |
|
111 |
Index: v8-3.20.8.2.ebuild |
112 |
=================================================================== |
113 |
# Copyright 1999-2013 Gentoo Foundation |
114 |
# Distributed under the terms of the GNU General Public License v2 |
115 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-3.20.8.2.ebuild,v 1.1 2013/07/31 04:34:22 phajdan.jr Exp $ |
116 |
|
117 |
EAPI="5" |
118 |
PYTHON_COMPAT=( python2_{6,7} ) |
119 |
|
120 |
inherit chromium eutils multilib multiprocessing pax-utils python-any-r1 \ |
121 |
toolchain-funcs versionator |
122 |
|
123 |
DESCRIPTION="Google's open source JavaScript engine" |
124 |
HOMEPAGE="http://code.google.com/p/v8" |
125 |
SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.bz2" |
126 |
LICENSE="BSD" |
127 |
|
128 |
soname_version="${PV}" |
129 |
SLOT="0/${soname_version}" |
130 |
KEYWORDS="~amd64 ~arm ~x86 ~x86-fbsd ~x64-macos ~x86-macos" |
131 |
IUSE="icu neon readline" |
132 |
|
133 |
RDEPEND="icu? ( dev-libs/icu:= ) |
134 |
readline? ( sys-libs/readline:0 )" |
135 |
DEPEND="${PYTHON_DEPS} |
136 |
${RDEPEND}" |
137 |
|
138 |
src_prepare() { |
139 |
# Make sure no bundled libraries are used. |
140 |
find third_party -type f \! -iname '*.gyp*' -delete || die |
141 |
} |
142 |
|
143 |
src_configure() { |
144 |
tc-export AR CC CXX RANLIB |
145 |
export LINK=${CXX} |
146 |
|
147 |
local myconf="" |
148 |
|
149 |
# Always build v8 as a shared library with proper SONAME. |
150 |
myconf+=" -Dcomponent=shared_library -Dsoname_version=${soname_version}" |
151 |
|
152 |
# Use target arch detection logic from bug #354601. |
153 |
case ${CHOST} in |
154 |
i?86-*) |
155 |
myarch="ia32" |
156 |
myconf+=" -Dv8_target_arch=ia32" ;; |
157 |
x86_64-*) |
158 |
if [[ $ABI = x86 ]] ; then |
159 |
myarch="ia32" |
160 |
myconf+=" -Dv8_target_arch=ia32" |
161 |
else |
162 |
myarch="x64" |
163 |
myconf+=" -Dv8_target_arch=x64" |
164 |
fi ;; |
165 |
arm*-*) |
166 |
myarch="arm" |
167 |
myconf+=" -Dv8_target_arch=arm -Darm_fpu=" |
168 |
if [[ ${CHOST} == *-hardfloat-* ]] ; then |
169 |
myconf+=" -Dv8_use_arm_eabi_hardfloat=true" |
170 |
else |
171 |
myconf+=" -Dv8_use_arm_eabi_hardfloat=false" |
172 |
fi |
173 |
if [[ ${CHOST} == armv7*-* ]] ; then |
174 |
myconf+=" -Darmv7=1" |
175 |
else |
176 |
myconf+=" -Darmv7=0" |
177 |
fi |
178 |
myconf+=" $(gyp_use neon arm_neon)" ;; |
179 |
mips*) |
180 |
if [[ ${CHOST} == mips*el* ]] ; then |
181 |
myarch="mipsel" |
182 |
myconf+=" -Dv8_target_arch=mipsel" |
183 |
else |
184 |
die "big-endian MIPS is not yet supported" |
185 |
fi |
186 |
if [[ ${CHOST} == *softfloat* ]] ; then |
187 |
myconf+=" -Dv8_use_mips_abi_hardfloat=false" |
188 |
else |
189 |
myconf+=" -Dv8_use_mips_abi_hardfloat=true" |
190 |
fi |
191 |
if [[ ${CHOST} == *loongson* ]] ; then |
192 |
myconf+=" -Dmips_arch_variant=loongson" |
193 |
elif [[ ${CHOST} == mips*64* ]] ; then |
194 |
die "generic MIPS 64bit is not yet supported" |
195 |
elif [[ ${CHOST} == mips*r2* ]] ; then |
196 |
myconf+=" -Dmips_arch_variant=mips32r2" |
197 |
else |
198 |
myconf+=" -Dmips_arch_variant=mips32" |
199 |
fi |
200 |
;; |
201 |
*) die "Unrecognized CHOST: ${CHOST}" |
202 |
esac |
203 |
|
204 |
myconf+=" |
205 |
$(gyp_use icu v8_enable_i18n_support) |
206 |
$(gyp_use readline console readline dumb)" |
207 |
|
208 |
myconf+=" |
209 |
-Duse_system_icu=1" |
210 |
|
211 |
# Make sure that -Werror doesn't get added to CFLAGS by the build system. |
212 |
# Depending on GCC version the warnings are different and we don't |
213 |
# want the build to fail because of that. |
214 |
myconf+=" -Dwerror=" |
215 |
|
216 |
# gyp does this only for linux, but we always want to use "out" dir, or |
217 |
# all else below fails due to not finding "out" dir |
218 |
myconf+=" --generator-output=out" |
219 |
# gyp defaults to whatever makes the most sense on the platform at hand, |
220 |
# but we want to build using Makefiles, so force that |
221 |
myconf+=" -f make" |
222 |
|
223 |
EGYP_CHROMIUM_COMMAND=build/gyp_v8 egyp_chromium ${myconf} || die |
224 |
} |
225 |
|
226 |
src_compile() { |
227 |
local makeargs=( |
228 |
-C out |
229 |
builddir="${S}/out/Release" |
230 |
V=1 |
231 |
BUILDTYPE=Release |
232 |
) |
233 |
|
234 |
# Build mksnapshot so we can pax-mark it. |
235 |
emake "${makeargs[@]}" mksnapshot.${myarch} |
236 |
pax-mark m out/Release/mksnapshot.${myarch} |
237 |
|
238 |
# Build everything else. |
239 |
emake "${makeargs[@]}" |
240 |
pax-mark m out/Release/{cctest,d8,preparser} |
241 |
} |
242 |
|
243 |
src_test() { |
244 |
LD_LIBRARY_PATH=out/Release/lib.target tools/run-tests.py \ |
245 |
-j$(makeopts_jobs) \ |
246 |
--no-presubmit \ |
247 |
--outdir=out \ |
248 |
--buildbot \ |
249 |
--arch=native \ |
250 |
--mode=Release \ |
251 |
--progress=dots || die |
252 |
} |
253 |
|
254 |
src_install() { |
255 |
insinto /usr |
256 |
doins -r include |
257 |
|
258 |
if [[ ${CHOST} == *-darwin* ]] ; then |
259 |
# buildsystem is too horrific to get this built correctly |
260 |
mkdir -p out/Release/lib.target || die |
261 |
mv out/Release/libv8.so.${soname_version} \ |
262 |
out/Release/lib.target/libv8$(get_libname ${soname_version}) || die |
263 |
install_name_tool \ |
264 |
-id "${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname) \ |
265 |
out/Release/lib.target/libv8$(get_libname ${soname_version}) \ |
266 |
|| die |
267 |
install_name_tool \ |
268 |
-change \ |
269 |
/usr/local/lib/libv8.so.${soname_version} \ |
270 |
"${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname) \ |
271 |
out/Release/d8 || die |
272 |
fi |
273 |
|
274 |
dobin out/Release/d8 |
275 |
pax-mark m "${ED}usr/bin/d8" |
276 |
|
277 |
dolib out/Release/lib.target/libv8$(get_libname ${soname_version}) |
278 |
dosym libv8$(get_libname ${soname_version}) /usr/$(get_libdir)/libv8$(get_libname) |
279 |
|
280 |
dodoc AUTHORS ChangeLog |
281 |
} |
282 |
|
283 |
# TODO: remove functions below after they are removed from chromium.eclass' |
284 |
# EXPORT_FUNCTIONS . |
285 |
|
286 |
pkg_preinst() { |
287 |
return |
288 |
} |
289 |
|
290 |
pkg_postinst() { |
291 |
return |
292 |
} |
293 |
|
294 |
pkg_postrm() { |
295 |
return |
296 |
} |