wok-next view spidermonkey/receipt @ rev 14515
Add python-genshi
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 15 13:54:10 2013 +0200 (2013-05-15) |
parents | d68eaab08c02 |
children | 44d062fcbe9b |
line source
1 # SliTaz package receipt.
3 PACKAGE="spidermonkey"
4 VERSION="1.8.0-rc1"
5 CATEGORY="multimedia"
6 SHORT_DESC="Mozilla C implementation of Javascript"
7 MAINTAINER="jozee@slitaz.org"
8 SOURCE="js"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://www.mozilla.org/js/spidermonkey/"
11 WGET_URL="http://ftp.mozilla.org/pub/mozilla.org/js/$TARBALL"
12 TAGS="javascript"
14 DEPENDS="nspr"
15 BUILD_DEPENDS="nspr-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src/src
22 # Fix from Archlinux
23 # http://projects.archlinux.org/svntogit/community.git/tree/spidermonkey/trunk/PKGBUILD
24 #patch -p0 < $stuff/spidermonkey-Makefile.patch || return 1
25 sed -i 's|include|include/js|' rules.mk || return 1
26 # patch Makefile for threadsafe support with native nspr
27 patch -p2 -i $stuff/spidermonkey-1.7-threadsafe.patch || return 1
28 # FS#16673
29 export CFLAGS="${CFLAGS} -DJS_C_STRINGS_ARE_UTF8"
30 # build - threadsafe
31 make -j1 -f Makefile.ref BUILD_OPT=1 JS_THREADSAFE=1 \
32 DIST=$DESTDIR/usr all export
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib
40 cp -a $_pkg/usr/bin $fs/usr
41 cp -a $_pkg/usr/lib/*so* $fs/usr/lib
42 }