wok-next annotate js185/receipt @ rev 21017
Some maintenance
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 16 16:46:05 2018 +0300 (2018-10-16) |
parents | 0e7893ac206d |
children | d5aab818505e |
rev | line source |
---|---|
al@20443 | 1 # SliTaz package receipt v2. |
al@20443 | 2 |
al@20443 | 3 PACKAGE="js185" |
al@20443 | 4 VERSION="1.0.0" |
al@20443 | 5 CATEGORY="libdevel" |
al@20443 | 6 SHORT_DESC="JavaScript interpreter and libraries (legacy)" |
al@20443 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@20443 | 8 LICENSE="MPL2" |
al@20443 | 9 WEB_SITE="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/1.8.5" |
al@21017 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/js38.html" |
al@20443 | 11 |
al@20443 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@20443 | 13 WGET_URL="http://ftp.mozilla.org/pub/js/$TARBALL" |
al@20443 | 14 |
al@20443 | 15 BUILD_DEPENDS="perl zip nspr-dev libffi-dev" |
al@20443 | 16 SPLIT="js185-dev" |
al@20443 | 17 |
al@20443 | 18 compile_rules() { |
al@20443 | 19 cd js/src |
al@20443 | 20 unset CPPFLAGS |
al@20443 | 21 |
al@20443 | 22 ./configure \ |
al@20443 | 23 --with-system-nspr \ |
al@20443 | 24 --disable-tests \ |
al@20443 | 25 --enable-ctypes \ |
al@20443 | 26 --enable-threadsafe \ |
al@20443 | 27 --enable-system-ffi \ |
al@20443 | 28 $CONFIGURE_ARGS && |
al@20443 | 29 make && make install || return 1 |
al@20443 | 30 |
al@20443 | 31 install -Dm755 shell/js -t $install/usr/bin/ |
al@20443 | 32 rm $install/usr/lib/libmozjs185-1.0.a |
al@20443 | 33 |
al@20443 | 34 find $install -type f \ |
al@20443 | 35 \( -name '*.h' -o -name '*.tbl' -o -name '*.msg' -o -name '*.a' \) \ |
al@20443 | 36 -exec chmod 644 '{}' \; |
al@20443 | 37 } |
al@20443 | 38 |
al@20443 | 39 genpkg_rules() { |
al@20443 | 40 case $PACKAGE in |
al@20443 | 41 js185) |
al@20443 | 42 copy @std |
al@20443 | 43 DEPENDS="libffi nspr" |
al@20443 | 44 ;; |
al@20443 | 45 js185-dev) |
al@20443 | 46 copy @dev |
al@20443 | 47 DEPENDS="js185 nspr-dev" |
al@20443 | 48 ;; |
al@20443 | 49 esac |
al@20443 | 50 } |