blob: 9df585c5824cd94b4efd22752599c1ae710c5593 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/spidermonkey/spidermonkey-1.5_rc5.ebuild,v 1.5 2004/03/14 02:40:38 mr_bones_ Exp $
inherit gcc flag-o-matic
[ "`gcc-fullversion`" == "3.2.2" ] && replace-flags -march=pentium4 -march=pentium3
MY_PV="${PV/_/-}"
DESCRIPTION="Stand-alone JavaScript C library"
HOMEPAGE="http://www.mozilla.org/js/spidermonkey/"
SRC_URI="ftp://ftp.mozilla.org/pub/js/js-${MY_PV}.tar.gz"
LICENSE="NPL-1.1"
SLOT="0"
KEYWORDS="x86"
DEPEND=""
S=${WORKDIR}/js/src/
src_compile() {
make -f Makefile.ref BUILD_OPT=1 || die
}
src_install() {
dodoc ../README
dohtml README.html
cd Linux_All_OPT.OBJ
dolib.a libjs.a
dolib.so libjs.so
dobin js jscpucfg
insinto /usr/include
doins jsautocfg.h
}
|