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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Feb 5 10:31:17 2013 UTC (19 months, 3 weeks ago) by phajdan.jr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Dev channel bump. Remove old.

(Portage version: 2.1.11.31/cvs/Linux i686, signed Manifest commit with key 30427902)

1 # Copyright 1999-2013 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.16.4.ebuild,v 1.1 2013/01/17 04:33:06 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_compile() {
23 tc-export AR CC CXX RANLIB
24 export LINK=${CXX}
25
26 local hardfp=off
27
28 # Use target arch detection logic from bug #354601.
29 case ${CHOST} in
30 i?86-*) myarch=ia32 ;;
31 x86_64-*)
32 if [[ $ABI = x86 ]] ; then
33 myarch=ia32
34 else
35 myarch=x64
36 fi ;;
37 arm*-hardfloat-*)
38 hardfp=on
39 myarch=arm ;;
40 arm*-*) myarch=arm ;;
41 *) die "Unrecognized CHOST: ${CHOST}"
42 esac
43 mytarget=${myarch}.release
44
45 local snapshot=on
46 host-is-pax && snapshot=off
47
48 # TODO: Add console=readline option once implemented upstream
49 # http://code.google.com/p/v8/issues/detail?id=1781
50
51 emake V=1 \
52 library=shared \
53 werror=no \
54 soname_version=${soname_version} \
55 snapshot=${snapshot} \
56 hardfp=${hardfp} \
57 ${mytarget} || die
58
59 pax-mark m out/${mytarget}/{cctest,d8,shell} || die
60 }
61
62 src_test() {
63 local arg testjobs
64 for arg in ${MAKEOPTS}; do
65 case ${arg} in
66 -j*) testjobs=${arg#-j} ;;
67 --jobs=*) testjobs=${arg#--jobs=} ;;
68 esac
69 done
70
71 tools/test-wrapper-gypbuild.py \
72 -j${testjobs:-1} \
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 if [[ ${CHOST} == *-darwin* ]] ; then
83 # buildsystem is too horrific to get this built correctly
84 mkdir -p out/${mytarget}/lib.target
85 mv out/${mytarget}/libv8.so.${soname_version} \
86 out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) || die
87 install_name_tool \
88 -id "${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname) \
89 out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) \
90 || die
91 install_name_tool \
92 -change \
93 /usr/local/lib/libv8.so.${soname_version} \
94 "${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname) \
95 out/${mytarget}/d8 || die
96 fi
97
98 dobin out/${mytarget}/d8 || die
99
100 dolib out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) || die
101 dosym libv8$(get_libname ${soname_version}) /usr/$(get_libdir)/libv8$(get_libname) || die
102
103 dodoc AUTHORS ChangeLog || die
104 }

  ViewVC Help
Powered by ViewVC 1.1.20