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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Oct 29 08:34:54 2010 UTC (4 years, 10 months ago) by phajdan.jr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Version bump. Remove old.
(Portage version: 2.1.8.3/cvs/Linux i686)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-2.2.24.ebuild,v 1.3 2010/08/02 02:39:22 phajdan.jr Exp $
4
5 EAPI="2"
6
7 inherit eutils flag-o-matic multilib subversion
8
9 ESVN_REPO_URI="http://v8.googlecode.com/svn/tags/${PV}"
10
11 DESCRIPTION="Google's open source JavaScript engine"
12 HOMEPAGE="http://code.google.com/p/v8"
13 LICENSE="BSD"
14
15 SLOT="0"
16 KEYWORDS="~x86"
17 IUSE="readline"
18
19 RDEPEND="readline? ( >=sys-libs/readline-6.1 )"
20 DEPEND="${RDEPEND}
21 >=dev-util/scons-1.3.0"
22
23 v8_scons_opts() {
24 echo "$(echo ${MAKEOPTS} | sed -r 's/.*(-j\s*|--jobs=)([0-9]+).*/-j\2/')"
25 }
26
27 src_prepare() {
28 # Stop -Werror from breaking the build.
29 epatch "${FILESDIR}"/${PN}-no-werror-r0.patch
30
31 # Respect the user's CFLAGS, including the optimization level.
32 epatch "${FILESDIR}"/${PN}-no-O3-r0.patch
33
34 # Locally fix http://code.google.com/p/v8/issues/detail?id=773.
35 epatch "${FILESDIR}"/${PN}-upstream-bug-773-r0.patch
36 }
37
38 src_configure() {
39 # GCC issues multiple warnings about strict-aliasing issues in v8 code.
40 append-flags -fno-strict-aliasing
41 }
42
43 src_compile() {
44 # TODO: use SONAME, but in a way more consistent
45 # with the rest of a Linux system. Currently the name
46 # looks like libv8-2.2.24.so, but should be more like
47 # libv8.so.2.2.24.
48
49 local myconf=""
50
51 if use readline; then
52 myconf="${myconf} console=readline"
53 else
54 myconf="${myconf} console=dumb"
55 fi
56
57 scons library=shared $(v8_scons_opts) ${myconf} . || die
58 }
59
60 src_install() {
61 insinto /usr
62 doins -r include || die
63
64 dobin d8 || die
65
66 dolib libv8.so || die
67
68 insinto /usr/share/${PN}/tools
69 doins tools/*.js || die
70
71 dodoc AUTHORS ChangeLog || die
72 }
73
74 src_test() {
75 tools/test.py --no-build -p dots --shell d8 || die
76 }

  ViewVC Help
Powered by ViewVC 1.1.20