wok-next view spidermonkey/receipt @ rev 21018

Nasty typo broke the cooker
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Oct 17 03:59:24 2018 +0300 (2018-10-17)
parents d6378d455338
children d5aab818505e
line source
1 # SliTaz package receipt v2.
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 LICENSE="MPL GPL2 LGPL2.1"
9 WEB_SITE="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey"
11 TARBALL="js-$VERSION.tar.gz"
12 WGET_URL="http://ftp.mozilla.org/pub/mozilla.org/js/$TARBALL"
14 BUILD_DEPENDS="nspr-dev"
15 SPLIT="spidermonkey-dev"
17 COOKOPTS="skip-log-errors"
19 compile_rules() {
20 cd $src/src
22 # Fix from Archlinux
23 # http://projects.archlinux.org/svntogit/community.git/tree/spidermonkey/trunk/PKGBUILD
24 sed -i 's|include|include/js|' rules.mk || return 1
25 # FS#16673
26 export CFLAGS="${CFLAGS} -DJS_C_STRINGS_ARE_UTF8"
27 # build - threadsafe
28 make -j1 -f Makefile.ref BUILD_OPT=1 JS_THREADSAFE=1 \
29 DIST=$DESTDIR/usr all export
30 }
32 genpkg_rules() {
33 case $PACKAGE in
34 spidermonkey)
35 copy @std
36 DEPENDS="nspr"
37 TAGS="javascript"
38 ;;
39 *-dev)
40 copy @dev
41 ;;
42 esac
43 }