wok-next annotate spidermonkey/receipt @ rev 20775
quodlibet: remove non-existent package from bdeps
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jun 06 20:44:57 2018 +0300 (2018-06-06) |
parents | f431dfa51f83 |
children | 8e1b2a143eb3 |
rev | line source |
---|---|
al@20459 | 1 # SliTaz package receipt v2. |
jozee@3119 | 2 |
jozee@3119 | 3 PACKAGE="spidermonkey" |
claudinei@9177 | 4 VERSION="1.8.0-rc1" |
jozee@3119 | 5 CATEGORY="multimedia" |
jozee@3119 | 6 SHORT_DESC="Mozilla C implementation of Javascript" |
jozee@3119 | 7 MAINTAINER="jozee@slitaz.org" |
pascal@15290 | 8 LICENSE="MPL GPL2 LGPL2.1" |
al@20459 | 9 WEB_SITE="http://www.mozilla.org/js/spidermonkey/" |
al@20459 | 10 |
al@20459 | 11 TARBALL="js-$VERSION.tar.gz" |
jozee@3119 | 12 WGET_URL="http://ftp.mozilla.org/pub/mozilla.org/js/$TARBALL" |
jozee@3119 | 13 |
pankso@9771 | 14 BUILD_DEPENDS="nspr-dev" |
al@20459 | 15 SPLIT="spidermonkey-dev" |
pankso@9771 | 16 |
al@20656 | 17 COOKOPTS="skip-log-errors" |
al@20656 | 18 |
al@20459 | 19 compile_rules() { |
gokhlayeh@8689 | 20 cd $src/src |
jozee@3119 | 21 |
gokhlayeh@8689 | 22 # Fix from Archlinux |
gokhlayeh@8689 | 23 # http://projects.archlinux.org/svntogit/community.git/tree/spidermonkey/trunk/PKGBUILD |
gokhlayeh@8689 | 24 sed -i 's|include|include/js|' rules.mk || return 1 |
gokhlayeh@8689 | 25 # FS#16673 |
gokhlayeh@8689 | 26 export CFLAGS="${CFLAGS} -DJS_C_STRINGS_ARE_UTF8" |
gokhlayeh@8689 | 27 # build - threadsafe |
gokhlayeh@8689 | 28 make -j1 -f Makefile.ref BUILD_OPT=1 JS_THREADSAFE=1 \ |
al@20656 | 29 DIST=$DESTDIR/usr all export |
jozee@3119 | 30 } |
jozee@3119 | 31 |
al@20459 | 32 genpkg_rules() { |
al@20459 | 33 case $PACKAGE in |
al@20459 | 34 spidermonkey) |
al@20656 | 35 copy @std |
al@20459 | 36 DEPENDS="nspr" |
al@20459 | 37 TAGS="javascript" |
al@20459 | 38 ;; |
al@20459 | 39 *-dev) |
al@20656 | 40 copy @dev |
al@20459 | 41 ;; |
al@20459 | 42 esac |
jozee@3119 | 43 } |