diff options
author | Patrick Lauer <patrick@gentoo.org> | 2013-04-09 03:46:36 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2013-04-09 03:46:36 +0000 |
commit | 716aeb1c693b1d54852ae4f8167161c6dfcf480b (patch) | |
tree | 2d97131eadd29b5820955922c30ffdde30ace467 /net-libs | |
parent | Version bump (bug #465166). (diff) | |
download | gentoo-2-716aeb1c693b1d54852ae4f8167161c6dfcf480b.tar.gz gentoo-2-716aeb1c693b1d54852ae4f8167161c6dfcf480b.tar.bz2 gentoo-2-716aeb1c693b1d54852ae4f8167161c6dfcf480b.zip |
Bump for #465178
(Portage version: 2.2.0_alpha171/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/nodejs/ChangeLog | 7 | ||||
-rw-r--r-- | net-libs/nodejs/nodejs-0.8.23.ebuild | 71 |
2 files changed, 77 insertions, 1 deletions
diff --git a/net-libs/nodejs/ChangeLog b/net-libs/nodejs/ChangeLog index 2f3e1f851dda..12ad468718f9 100644 --- a/net-libs/nodejs/ChangeLog +++ b/net-libs/nodejs/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-libs/nodejs # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/ChangeLog,v 1.79 2013/04/05 08:56:27 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/ChangeLog,v 1.80 2013/04/09 03:46:36 patrick Exp $ + +*nodejs-0.8.23 (09 Apr 2013) + + 09 Apr 2013; Patrick Lauer <patrick@gentoo.org> +nodejs-0.8.23.ebuild: + Bump for #465178 *nodejs-0.10.3 (05 Apr 2013) diff --git a/net-libs/nodejs/nodejs-0.8.23.ebuild b/net-libs/nodejs/nodejs-0.8.23.ebuild new file mode 100644 index 000000000000..5bf2f0f6b309 --- /dev/null +++ b/net-libs/nodejs/nodejs-0.8.23.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/nodejs-0.8.23.ebuild,v 1.1 2013/04/09 03:46:36 patrick Exp $ + +EAPI=5 + +PYTHON_DEPEND="2" + +inherit python eutils multilib pax-utils + +# omgwtf +RESTRICT="test" + +DESCRIPTION="Evented IO for V8 Javascript" +HOMEPAGE="http://nodejs.org/" +SRC_URI="http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86 ~x64-macos" +IUSE="" + +DEPEND="dev-libs/openssl" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/node-v${PV} + +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + +src_prepare() { + # fix compilation on Darwin + # http://code.google.com/p/gyp/issues/detail?id=260 + sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die + python_convert_shebangs 2 tools/node-waf || die +} + +src_configure() { + # this is an autotools lookalike confuserator + ./configure --prefix="${EPREFIX}"/usr --openssl-use-sys --shared-zlib || die +} + +src_compile() { + emake || die +} + +src_install() { + local MYLIB=$(get_libdir) + mkdir -p "${ED}"/usr/include/node + mkdir -p "${ED}"/usr/bin + mkdir -p "${ED}"/usr/"${MYLIB}"/node_modules/npm + mkdir -p "${ED}"/usr/"${MYLIB}"/node + cp 'src/eio-emul.h' 'src/ev-emul.h' 'src/node.h' 'src/node_buffer.h' 'src/node_object_wrap.h' 'src/node_version.h' "${ED}"/usr/include/node || die "Failed to copy stuff" + cp -R deps/uv/include/* "${ED}"/usr/include/node || die "Failed to copy stuff" + cp -R deps/v8/include/* "${ED}"/usr/include/node || die "Failed to copy stuff" + cp 'out/Release/node' "${ED}"/usr/bin/node || die "Failed to copy stuff" + cp -R deps/npm/* "${ED}"/usr/"${MYLIB}"/node_modules/npm || die "Failed to copy stuff" + cp -R tools/wafadmin "${ED}"/usr/"${MYLIB}"/node/ || die "Failed to copy stuff" + cp 'tools/node-waf' "${ED}"/usr/bin/ || die "Failed to copy stuff" + + # now add some extra stupid just because we can + # needs to be a symlink because of hardcoded paths ... no es bueno! + dosym /usr/"${MYLIB}"/node_modules/npm/bin/npm-cli.js /usr/bin/npm + pax-mark -m "${ED}"/usr/bin/node +} + +src_test() { + emake test || die +} |