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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jan 31 00:34:37 2013 UTC (19 months, 2 weeks ago) by floppym
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Beta channel bump.

(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)

1 # Copyright 1999-2012 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.15.11.2.ebuild,v 1.1 2012/12/27 18:25:42 phajdan.jr Exp $
4
5 EAPI="5"
6 PYTHON_COMPAT=( python2_{6,7} )
7
8 inherit eutils multilib pax-utils python-any-r1 toolchain-funcs versionator
9
10 DESCRIPTION="Google's open source JavaScript engine"
11 HOMEPAGE="http://code.google.com/p/v8"
12 SRC_URI="http://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.bz2"
13 LICENSE="BSD"
14
15 soname_version="$(get_version_component_range 1-3)"
16 SLOT="0/${soname_version}"
17 KEYWORDS="~amd64 ~arm ~x86 ~x86-fbsd ~x64-macos ~x86-macos"
18 IUSE=""
19
20 DEPEND="${PYTHON_DEPS}"
21
22 src_prepare() {
23 epatch "${FILESDIR}"/${PN}-vfp2-r0.patch
24 }
25
26 src_compile() {
27 tc-export AR CC CXX RANLIB
28 export LINK=${CXX}
29
30 local hardfp=off
31
32 # Use target arch detection logic from bug #354601.
33 case ${CHOST} in
34 i?86-*) myarch=ia32 ;;
35 x86_64-*)
36 if [[ $ABI = x86 ]] ; then
37 myarch=ia32
38 else
39 myarch=x64
40 fi ;;
41 arm*-hardfloat-*)
42 hardfp=on
43 myarch=arm ;;
44 arm*-*) myarch=arm ;;
45 *) die "Unrecognized CHOST: ${CHOST}"
46 esac
47 mytarget=${myarch}.release
48
49 local snapshot=on
50 host-is-pax && snapshot=off
51
52 # TODO: Add console=readline option once implemented upstream
53 # http://code.google.com/p/v8/issues/detail?id=1781
54
55 emake V=1 \
56 library=shared \
57 werror=no \
58 soname_version=${soname_version} \
59 snapshot=${snapshot} \
60 hardfp=${hardfp} \
61 ${mytarget} || die
62
63 pax-mark m out/${mytarget}/{cctest,d8,shell} || die
64 }
65
66 src_test() {
67 local arg testjobs
68 for arg in ${MAKEOPTS}; do
69 case ${arg} in
70 -j*) testjobs=${arg#-j} ;;
71 --jobs=*) testjobs=${arg#--jobs=} ;;
72 esac
73 done
74
75 tools/test-wrapper-gypbuild.py \
76 -j${testjobs:-1} \
77 --arch-and-mode=${mytarget} \
78 --no-presubmit \
79 --progress=dots || die
80 }
81
82 src_install() {
83 insinto /usr
84 doins -r include || die
85
86 if [[ ${CHOST} == *-darwin* ]] ; then
87 # buildsystem is too horrific to get this built correctly
88 mkdir -p out/${mytarget}/lib.target
89 mv out/${mytarget}/libv8.so.${soname_version} \
90 out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) || die
91 install_name_tool \
92 -id "${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname) \
93 out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) \
94 || die
95 install_name_tool \
96 -change \
97 /usr/local/lib/libv8.so.${soname_version} \
98 "${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname) \
99 out/${mytarget}/d8 || die
100 fi
101
102 dobin out/${mytarget}/d8 || die
103
104 dolib out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) || die
105 dosym libv8$(get_libname ${soname_version}) /usr/$(get_libdir)/libv8$(get_libname) || die
106
107 dodoc AUTHORS ChangeLog || die
108 }

  ViewVC Help
Powered by ViewVC 1.1.20