Gentoo Archives: gentoo-commits

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