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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Fri Oct 21 02:29:25 2011 UTC (3 years, 2 months ago) by floppym
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Version bump for dev channel release.

(Portage version: 2.2.0_alpha69/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.5.1.ebuild,v 1.7 2011/10/19 22:08:14 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="mirror://gentoo/${P}.tar.gz
16 http://dev.gentoo.org/~floppym/distfiles/${P}.tar.gz
17 http://dev.gentoo.org/~floppym/distfiles/gyp-${GYP_REV}.tar.xz"
18 LICENSE="BSD"
19
20 SLOT="0"
21 KEYWORDS="~amd64 ~arm ~x86 ~x64-macos ~x86-macos"
22 IUSE=""
23
24 pkg_setup() {
25 python_set_active_version 2
26 }
27
28 src_unpack() {
29 unpack ${A}
30 mv gyp-${GYP_REV} ${P}/build/gyp || die
31 }
32
33 src_prepare() {
34 # Stop -Werror from breaking the build.
35 sed -i -e "s/-Werror//" build/standalone.gypi || die
36 }
37
38 src_compile() {
39 tc-export AR CC CXX RANLIB
40 export LINK="${CXX}"
41
42 # Use target arch detection logic from bug #354601.
43 case ${CHOST} in
44 i?86-*) myarch=ia32 ;;
45 x86_64-*)
46 if [[ $ABI = x86 ]] ; then
47 myarch=ia32
48 else
49 myarch=x64
50 fi ;;
51 arm*-*) myarch=arm ;;
52 *) die "Unrecognized CHOST: ${CHOST}"
53 esac
54 mytarget=${myarch}.release
55
56 if [[ ${PV} == "9999" ]]; then
57 soname_version="${PV}-${ESVN_WC_REVISION}"
58 else
59 soname_version="${PV}"
60 fi
61
62 local snapshot=on
63 host-is-pax && snapshot=off
64
65 # TODO: Add console=readline option once implemented upstream
66 # http://code.google.com/p/v8/issues/detail?id=1781
67
68 emake V=1 \
69 library=shared \
70 werror=no \
71 soname_version=${soname_version} \
72 snapshot=${snapshot} \
73 ${mytarget} || die
74
75 pax-mark m out/${mytarget}/{cctest,d8,shell} || die
76 }
77
78 src_test() {
79 tools/test-wrapper-gypbuild.py \
80 --arch-and-mode=${mytarget} \
81 --no-presubmit \
82 --progress=dots || die
83 }
84
85 src_install() {
86 insinto /usr
87 doins -r include || die
88
89 dobin out/${mytarget}/d8 || die
90
91 if [[ ${CHOST} == *-darwin* ]] ; then
92 install_name_tool \
93 -id "${EPREFIX}"/usr/$(get_libdir)/libv8-${soname_version}$(get_libname) \
94 out/${mytarget}/lib.target/libv8-${soname_version}$(get_libname) || die
95 fi
96
97 dolib out/${mytarget}/lib.target/libv8-${soname_version}$(get_libname) || die
98 dosym libv8-${soname_version}$(get_libname) /usr/$(get_libdir)/libv8$(get_libname) || die
99
100 dodoc AUTHORS ChangeLog || die
101 }

  ViewVC Help
Powered by ViewVC 1.1.20