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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Apr 5 14:36:24 2013 UTC (18 months, 2 weeks ago) by floppym
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Don't die on pax-mark failure, bug 464682.

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

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.15.11.15.ebuild,v 1.4 2013/02/22 12:09:44 ago 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_configure() {
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 # TODO: Add console=readline option once implemented upstream
50 # http://code.google.com/p/v8/issues/detail?id=1781
51
52 # Generate the real Makefile.
53 emake V=1 \
54 library=shared \
55 werror=no \
56 soname_version=${soname_version} \
57 snapshot=on \
58 hardfp=${hardfp} \
59 out/Makefile.${myarch} || die
60 }
61
62 src_compile() {
63 local makeargs=(
64 -C out
65 -f Makefile.${myarch}
66 V=1
67 BUILDTYPE=Release
68 builddir="${S}/out/${mytarget}"
69 )
70
71 # Build mksnapshot so we can pax-mark it.
72 emake "${makeargs[@]}" mksnapshot || die
73 pax-mark m out/${mytarget}/mksnapshot
74
75 # Build everything else.
76 emake "${makeargs[@]}" || die
77 pax-mark m out/${mytarget}/{cctest,d8,shell} || die
78 }
79
80 src_test() {
81 local arg testjobs
82 for arg in ${MAKEOPTS}; do
83 case ${arg} in
84 -j*) testjobs=${arg#-j} ;;
85 --jobs=*) testjobs=${arg#--jobs=} ;;
86 esac
87 done
88
89 tools/test-wrapper-gypbuild.py \
90 -j${testjobs:-1} \
91 --arch-and-mode=${mytarget} \
92 --no-presubmit \
93 --progress=dots || die
94 }
95
96 src_install() {
97 insinto /usr
98 doins -r include || die
99
100 if [[ ${CHOST} == *-darwin* ]] ; then
101 # buildsystem is too horrific to get this built correctly
102 mkdir -p out/${mytarget}/lib.target
103 mv out/${mytarget}/libv8.so.${soname_version} \
104 out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) || die
105 install_name_tool \
106 -id "${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname) \
107 out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) \
108 || die
109 install_name_tool \
110 -change \
111 /usr/local/lib/libv8.so.${soname_version} \
112 "${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname) \
113 out/${mytarget}/d8 || die
114 fi
115
116 dobin out/${mytarget}/d8 || die
117
118 dolib out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) || die
119 dosym libv8$(get_libname ${soname_version}) /usr/$(get_libdir)/libv8$(get_libname) || die
120
121 dodoc AUTHORS ChangeLog || die
122 }

  ViewVC Help
Powered by ViewVC 1.1.20