From 22c44061ccc9af9731d541c4d3c1898b8ce8a3ed Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 18 Mar 2013 09:11:41 +0100 Subject: [PATCH] nodejs: update to 0.10.0. --- srcpkgs/nodejs-devel | 1 - srcpkgs/nodejs-docs | 1 - srcpkgs/nodejs/nodejs-devel.template | 9 --------- srcpkgs/nodejs/nodejs-docs.template | 10 ---------- srcpkgs/nodejs/template | 20 +++++++++++++------- 5 files changed, 13 insertions(+), 28 deletions(-) delete mode 120000 srcpkgs/nodejs-devel delete mode 120000 srcpkgs/nodejs-docs delete mode 100644 srcpkgs/nodejs/nodejs-devel.template delete mode 100644 srcpkgs/nodejs/nodejs-docs.template diff --git a/srcpkgs/nodejs-devel b/srcpkgs/nodejs-devel deleted file mode 120000 index 0c524b77530..00000000000 --- a/srcpkgs/nodejs-devel +++ /dev/null @@ -1 +0,0 @@ -nodejs \ No newline at end of file diff --git a/srcpkgs/nodejs-docs b/srcpkgs/nodejs-docs deleted file mode 120000 index 0c524b77530..00000000000 --- a/srcpkgs/nodejs-docs +++ /dev/null @@ -1 +0,0 @@ -nodejs \ No newline at end of file diff --git a/srcpkgs/nodejs/nodejs-devel.template b/srcpkgs/nodejs/nodejs-devel.template deleted file mode 100644 index ee99aa422e4..00000000000 --- a/srcpkgs/nodejs/nodejs-devel.template +++ /dev/null @@ -1,9 +0,0 @@ -# Template file for 'nodejs-devel'. -# -noarch=yes -depends="nodejs>=${version}" -short_desc="${short_desc} - Development files" - -do_install() { - vmove usr/include usr -} diff --git a/srcpkgs/nodejs/nodejs-docs.template b/srcpkgs/nodejs/nodejs-docs.template deleted file mode 100644 index 56af6bfb594..00000000000 --- a/srcpkgs/nodejs/nodejs-docs.template +++ /dev/null @@ -1,10 +0,0 @@ -# Template file for 'nodejs-docs'. -# -noarch=yes -short_desc="${short_desc} - Documentation" - -do_install() { - vmove usr/share/man usr/share - vmkdir usr/share/doc/nodejs - cp -r ${wrksrc}/doc/api ${DESTDIR}/usr/share/doc/nodejs -} diff --git a/srcpkgs/nodejs/template b/srcpkgs/nodejs/template index f0f36e69c7b..e34379d50d6 100644 --- a/srcpkgs/nodejs/template +++ b/srcpkgs/nodejs/template @@ -1,22 +1,28 @@ # Template file for 'nodejs' pkgname=nodejs -version=0.8.20 +version=0.10.0 revision=1 wrksrc=node-v${version} -build_style=configure -configure_args="--prefix=/usr --openssl-use-sys --shared-v8 --shared-zlib" short_desc="Evented I/O for V8 javascript" maintainer="davehome " license="MIT" homepage="http://nodejs.org/" distfiles="${homepage}/dist/v${version}/node-v${version}.tar.gz" -checksum=e4461bfded531f4880839829ab3bce5b824905d6e181876e3d0309a366bf57ee +checksum=1624dc37866ebfb5431e3393e6b049cf238cac8ad4d20c6d567263b1259177ab -nostrip=yes -subpackages="${pkgname}-devel ${pkgname}-docs" makedepends="pkg-config openssl-devel v8-devel zlib-devel" fulldepends="python" -post_install() { +do_configure() { + export LD="$CXX" + ./configure --prefix=/usr --openssl-use-sys --shared-v8 --shared-zlib +} + +do_build() { + make LD="$CXX" ${makejobs} +} + +do_install() { + make LD="$CXX" DESTDIR="$DESTDIR" install vinstall LICENSE 644 usr/share/licenses/${pkgname} }