iojs: update to 2.1.0.

This commit is contained in:
Enno Boland 2015-05-12 10:07:55 +02:00
parent 4242595cf7
commit 8b114a0f8d
1 changed files with 20 additions and 8 deletions

View File

@ -1,19 +1,27 @@
# Template file for 'iojs' # Template file for 'iojs'
pkgname=iojs pkgname=iojs
version=1.6.2 version=2.1.0
revision=1 revision=1
wrksrc=iojs-v${version} wrksrc=iojs-v${version}
hostmakedepends="pkg-config python" hostmakedepends="pkg-config python"
makedepends="libressl-devel zlib-devel python-devel libuv-devel" makedepends="zlib-devel python-devel
$(vopt_if ssl libressl-devel) $(vopt_if libuv libuv-devel)
$(vopt_if http_parser http-parser-devel)"
depends="python" depends="python"
short_desc="Evented I/O for V8 javascript" short_desc="Evented I/O for V8 javascript"
maintainer="Enno Boland <eb@s01.de>" maintainer="Enno Boland <gottox@voidlinux.eu>"
license="MIT" license="MIT"
homepage="http://iojs.org/" homepage="http://iojs.org/"
distfiles="${homepage}/dist/v${version}/${pkgname}-v${version}.tar.gz" distfiles="${homepage}/dist/v${version}/${pkgname}-v${version}.tar.gz"
checksum=ea537c47a46a15fdae0eab884a7c8f947905bd0cadc3b0d3ca4dbc51fe4afb5f checksum=f10473944dc0e4a7bd2d57efc65d7c2a1d1991852c2d7b3cb6a0fa81b3fed26c
provides="nodejs-0.12.1_1" provides="nodejs-0.12.1_1"
conflicts="nodejs>=0" conflicts="nodejs>=0"
build_options="ssl libuv http_parser"
desc_option_libuv="Enable shared libuv"
desc_option_http_parser="Enable shared http-parser"
# broken with libressl, use bundled openssl instead
# linking error with http_parser, use bundled instead
build_options_default="libuv"
do_configure() { do_configure() {
local _args local _args
@ -25,16 +33,20 @@ do_configure() {
*) msg_error "$pkgver: cannot be cross compiled for ${XBPS_TARGET_MACHINE}\n" ;; *) msg_error "$pkgver: cannot be cross compiled for ${XBPS_TARGET_MACHINE}\n" ;;
esac esac
fi fi
./configure --prefix=/usr --openssl-use-sys --shared-zlib --shared-libuv ${_args} ./configure --prefix=/usr --shared-zlib \
$(vopt_if http_parser --shared-http-parser) \
$(vopt_if ssl --shared-openssl) \
$(vopt_if libuv --shared-libuv) ${_args}
} }
do_build() { do_build() {
if [ "$CROSS_BUILD" ]; then if [ "$CROSS_BUILD" ]; then
make LD="$CXX" ${makejobs} PORTABLE=1 V=1 make LD="$CXX" LDFLAGS+=-ldl ${makejobs} PORTABLE=1 V=1
else else
make LD="$CXX" ${makejobs} V=1 make LD="$CXX" LDFLAGS+=-ldl ${makejobs} V=1
fi fi
} }
do_install() { do_install() {
make LD="$CXX" DESTDIR="$DESTDIR" install make LD="$CXX" LDFLAGS+=-ldl DESTDIR="$DESTDIR" install
vlicense LICENSE vlicense LICENSE
rm -r $DESTDIR/usr/include
} }