Files
haikuports/dev-lang/spidermonkey/spidermonkey-1.8.5.recipe
alaviss a0fdf8cf1f Add TEST() to various ports (#1832)
* app-crypt/rhash: disable on x86_gcc2, also fixed secondary arch

* dev-lang/tcc: make tcc actually works

  - update patches: define custom haiku definitions, use haiku
    start/end objects

  - make tcc uses haiku custom paths

  - add secondary arch support
  - add x86_64

* dev-lang/tcc: disable on all architectures

  - Haiku's BeBuild.h depends on __GNUC__ macro to select ABI, which
    unfortunately we can't risk to define, so disabling for now

* dev-python/pyqt: use correct name for sip

* dev-lang/spidermonkey: fix build

  - add x86 to snd arch

  - update config.sub and config.guess

  - add missing cmd:js_config
  - add missing cmd:zip

* dev-python/pyqt: clean up the spaces left by previous contributor

* add TEST() for the following ports:
  - sys-devel/flex
  - app-crypt/rhash
  - app-text/podofo
  - app-crypt/qca
  - app-editors/retext
  - app-i18n/mozc
  - dev-lang/tcc
  - dev-lang/yasm
  - dev-lang/spidermonkey
  - dev-libs/glib
  - dev-libs/jsoncpp
  - dev-libs/libtommath
  - dev-libs/libxslt
  - dev-libs/libyajl
  - dev-libs/zziplib
2017-12-10 13:49:50 +01:00

87 lines
1.7 KiB
Bash

SUMMARY="A Javascript engine written in C/C++"
DESCRIPTION="Spidermonkey is a Javascript engine written in C/C++ used in \
various products from Mozilla."
HOMEPAGE="http://www.mozilla.org/js/spidermonkey"
COPYRIGHT="1998-1999 Netscape Communications Corporation"
LICENSE="NPL v1.1"
REVISION="1"
SOURCE_URI="https://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz"
CHECKSUM_SHA256="5d12f7e1f5b4a99436685d97b9b7b75f094d33580227aa998c406bbae6f2a687"
SOURCE_DIR="js-$portVersion/"
PATCHES="spidermonkey-${portVersion}.patchset"
ARCHITECTURES="?x86_gcc2 x86 ?x86_64"
SECONDARY_ARCHITECTURES="?x86"
PROVIDES="
spidermonkey$secondaryArchSuffix = $portVersion compat >= 1.8
cmd:js_config$secondaryArchSuffix = $portVersion
lib:libmozjs185$secondaryArchSuffix = 1.0.0 compat >= 1
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
spidermonkey${secondaryArchSuffix}_devel = $portVersion
devel:libmozjs185$secondaryArchSuffix = 1.0.0 compat >= 1
"
REQUIRES_devel="
spidermonkey$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:perl
cmd:awk
cmd:python
cmd:xargs
cmd:pkg_config$secondaryArchSuffix
cmd:sed
cmd:zip
"
PATCH()
{
cd js/src
sed -e 's|${srcdir}/||' -i configure.in
}
BUILD()
{
cd js/src
libtoolize -fci
runConfigure --omit-dirs "docDir dataRootDir" ./configure \
--disable-tracejit --enable-tests
make $jobArgs
}
INSTALL()
{
cd js/src
make install
mv $libDir/libmozjs185-1.0.a $libDir/libmozjs185.a
prepareInstalledDevelLibs libmozjs185
fixPkgconfig
# devel package
packageEntries devel \
$developDir
}
TEST()
{
cd js/src/jsapi-tests
make check
}