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