/[gentoo-x86]/dev-lang/v8/v8-3.6.6.3.ebuild
Gentoo

Contents of /dev-lang/v8/v8-3.6.6.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Nov 2 02:33:46 2011 UTC (2 years, 11 months ago) by floppym
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump for dev channel release.

(Portage version: 2.2.0_alpha72/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-3.6.6.3.ebuild,v 1.2 2011/10/20 23:07:25 floppym Exp $
4
5 EAPI="3"
6
7 PYTHON_DEPEND="2:2.6"
8
9 inherit eutils multilib pax-utils python toolchain-funcs
10
11 GYP_REV="1066"
12
13 DESCRIPTION="Google's open source JavaScript engine"
14 HOMEPAGE="http://code.google.com/p/v8"
15 SRC_URI="http://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.bz2"
16 LICENSE="BSD"
17
18 SLOT="0"
19 KEYWORDS="~amd64 ~arm ~x86 ~x64-macos ~x86-macos"
20 IUSE=""
21
22 pkg_setup() {
23 python_set_active_version 2
24 }
25
26 src_prepare() {
27 # Stop -Werror from breaking the build.
28 sed -i -e "s/-Werror//" build/standalone.gypi || die
29 }
30
31 src_compile() {
32 tc-export AR CC CXX RANLIB
33 export LINK="${CXX}"
34
35 # Use target arch detection logic from bug #354601.
36 case ${CHOST} in
37 i?86-*) myarch=ia32 ;;
38 x86_64-*)
39 if [[ $ABI = x86 ]] ; then
40 myarch=ia32
41 else
42 myarch=x64
43 fi ;;
44 arm*-*) myarch=arm ;;
45 *) die "Unrecognized CHOST: ${CHOST}"
46 esac
47 mytarget=${myarch}.release
48
49 if [[ ${PV} == "9999" ]]; then
50 soname_version="${PV}-${ESVN_WC_REVISION}"
51 else
52 soname_version="${PV}"
53 fi
54
55 local snapshot=on
56 host-is-pax && snapshot=off
57
58 # TODO: Add console=readline option once implemented upstream
59 # http://code.google.com/p/v8/issues/detail?id=1781
60
61 emake V=1 \
62 library=shared \
63 werror=no \
64 soname_version=${soname_version} \
65 snapshot=${snapshot} \
66 ${mytarget} || die
67
68 pax-mark m out/${mytarget}/{cctest,d8,shell} || die
69 }
70
71 src_test() {
72 tools/test-wrapper-gypbuild.py \
73 --arch-and-mode=${mytarget} \
74 --no-presubmit \
75 --progress=dots || die
76 }
77
78 src_install() {
79 insinto /usr
80 doins -r include || die
81
82 dobin out/${mytarget}/d8 || die
83
84 if [[ ${CHOST} == *-darwin* ]] ; then
85 install_name_tool \
86 -id "${EPREFIX}"/usr/$(get_libdir)/libv8-${soname_version}$(get_libname) \
87 out/${mytarget}/lib.target/libv8-${soname_version}$(get_libname) || die
88 fi
89
90 dolib out/${mytarget}/lib.target/libv8-${soname_version}$(get_libname) || die
91 dosym libv8-${soname_version}$(get_libname) /usr/$(get_libdir)/libv8$(get_libname) || die
92
93 dodoc AUTHORS ChangeLog || die
94 }

  ViewVC Help
Powered by ViewVC 1.1.20