wok-next annotate js185/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | f48456621a9d |
children | e19ff076dc63 |
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@21020 | 16 SPLIT="$PACKAGE-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@21020 | 29 make && |
al@21020 | 30 make install || return 1 |
al@20443 | 31 |
al@20443 | 32 install -Dm755 shell/js -t $install/usr/bin/ |
al@20443 | 33 rm $install/usr/lib/libmozjs185-1.0.a |
al@20443 | 34 |
al@20443 | 35 find $install -type f \ |
al@20443 | 36 \( -name '*.h' -o -name '*.tbl' -o -name '*.msg' -o -name '*.a' \) \ |
al@20443 | 37 -exec chmod 644 '{}' \; |
al@20443 | 38 } |
al@20443 | 39 |
al@20443 | 40 genpkg_rules() { |
al@20443 | 41 case $PACKAGE in |
al@20443 | 42 js185) |
al@20443 | 43 copy @std |
al@20443 | 44 DEPENDS="libffi nspr" |
al@20443 | 45 ;; |
al@20443 | 46 js185-dev) |
al@20443 | 47 copy @dev |
al@20443 | 48 DEPENDS="js185 nspr-dev" |
al@20443 | 49 ;; |
al@20443 | 50 esac |
al@20443 | 51 } |