2013-09-28 08:23:23 +09:00
|
|
|
# Description: Javascript engine library
|
|
|
|
# URL: http://www.mozilla.org/js/spidermonkey/
|
|
|
|
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
|
2015-11-04 12:35:53 +11:00
|
|
|
# Depends on: python zip
|
2013-09-28 08:23:23 +09:00
|
|
|
|
|
|
|
name=spidermonkey
|
|
|
|
version=1.8.5
|
2013-09-29 18:21:48 +09:00
|
|
|
release=2
|
2016-12-26 18:29:19 +09:00
|
|
|
source=(http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz js-1.8.5-c++11.patch)
|
2013-09-28 08:23:23 +09:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd js-$version/js/src
|
|
|
|
|
2016-12-26 18:29:19 +09:00
|
|
|
# Fix build with gcc-6
|
|
|
|
# https://bugs.gentoo.org/show_bug.cgi?id=582478
|
|
|
|
patch -p3 -i $SRC/js-1.8.5-c++11.patch
|
|
|
|
|
2013-09-28 08:23:23 +09:00
|
|
|
./configure \
|
2013-09-29 18:21:48 +09:00
|
|
|
--prefix=/usr
|
2013-09-28 08:23:23 +09:00
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
# symlinks are not relative, fix that
|
|
|
|
rm -f $PKG/usr/lib/libmozjs185.so{,.1.0}
|
|
|
|
ln -s libmozjs185.so.1.0.0 $PKG/usr/lib/libmozjs185.so
|
|
|
|
ln -s libmozjs185.so.1.0.0 $PKG/usr/lib/libmozjs185.so.1.0
|
|
|
|
}
|