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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Dec 17 21:52:50 2011 UTC (2 years, 9 months ago) by floppym
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.0_alpha81/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.5.10.24.ebuild,v 1.3 2011/11/18 10:29:44 phajdan.jr Exp $
4
5 EAPI="3"
6
7 inherit eutils flag-o-matic multilib pax-utils scons-utils toolchain-funcs
8
9 DESCRIPTION="Google's open source JavaScript engine"
10 HOMEPAGE="http://code.google.com/p/v8"
11 SRC_URI="http://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.bz2"
12 LICENSE="BSD"
13
14 SLOT="0"
15 KEYWORDS="amd64 ~arm x86 ~x64-macos ~x86-macos"
16 IUSE="readline"
17
18 RDEPEND="readline? ( >=sys-libs/readline-6.1 )"
19 DEPEND="${RDEPEND}"
20
21 pkg_setup() {
22 tc-export AR CC CXX RANLIB
23
24 # Make the build respect LDFLAGS.
25 export LINKFLAGS="${LDFLAGS}"
26 }
27
28 src_prepare() {
29 # Stop -Werror from breaking the build.
30 epatch "${FILESDIR}"/${PN}-no-werror-r0.patch
31
32 # Respect the user's CFLAGS, including the optimization level.
33 epatch "${FILESDIR}"/${PN}-no-O3-r0.patch
34 }
35
36 src_configure() {
37 # GCC issues multiple warnings about strict-aliasing issues in v8 code.
38 append-flags -fno-strict-aliasing
39 }
40
41 src_compile() {
42 local myconf="library=shared soname=on importenv=LINKFLAGS,PATH"
43
44 # Use target arch detection logic from bug #354601.
45 case ${CHOST} in
46 i?86-*) myarch=x86 ;;
47 x86_64-*)
48 if [[ $ABI = "" ]] ; then
49 myarch=amd64
50 else
51 myarch="$ABI"
52 fi ;;
53 arm*-*) myarch=arm ;;
54 *) die "Unrecognized CHOST: ${CHOST}"
55 esac
56
57 if [[ $myarch = amd64 ]] ; then
58 myconf+=" arch=x64"
59 elif [[ $myarch = x86 ]] ; then
60 myconf+=" arch=ia32"
61 elif [[ $myarch = arm ]] ; then
62 myconf+=" arch=arm"
63 else
64 die "Failed to determine target arch, got '$myarch'."
65 fi
66
67 escons $(use_scons readline console readline dumb) ${myconf} || die
68 }
69
70 src_install() {
71 insinto /usr
72 doins -r include || die
73
74 if [[ ${CHOST} == *-darwin* ]] ; then
75 install_name_tool \
76 -id "${EPREFIX}"/usr/$(get_libdir)/libv8-${PV}$(get_libname) \
77 libv8-${PV}$(get_libname) || die
78 fi
79
80 dolib libv8-${PV}$(get_libname) || die
81 dosym libv8-${PV}$(get_libname) /usr/$(get_libdir)/libv8$(get_libname) || die
82
83 dodoc AUTHORS ChangeLog || die
84 }

  ViewVC Help
Powered by ViewVC 1.1.20