diff options
author | Patrick Lauer <patrick@gentoo.org> | 2012-12-14 08:46:30 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2012-12-14 08:46:30 +0000 |
commit | f910f16c28d7723d19bc9397bd04dcd8faf0ca23 (patch) | |
tree | f8c6d5a2a90d363142b7de19ae59d60808daaa27 | |
parent | Initial commit, wrt bug #125614 (diff) | |
download | gentoo-2-f910f16c28d7723d19bc9397bd04dcd8faf0ca23.tar.gz gentoo-2-f910f16c28d7723d19bc9397bd04dcd8faf0ca23.tar.bz2 gentoo-2-f910f16c28d7723d19bc9397bd04dcd8faf0ca23.zip |
Restoring accidentally removed 0.9 version
(Portage version: 2.2.0_alpha148/cvs/Linux x86_64, unsigned Manifest commit)
-rw-r--r-- | net-libs/nodejs/ChangeLog | 7 | ||||
-rw-r--r-- | net-libs/nodejs/nodejs-0.9.3-r1.ebuild | 69 |
2 files changed, 75 insertions, 1 deletions
diff --git a/net-libs/nodejs/ChangeLog b/net-libs/nodejs/ChangeLog index 963a27020890..7d1d8abac9cb 100644 --- a/net-libs/nodejs/ChangeLog +++ b/net-libs/nodejs/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-libs/nodejs # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/ChangeLog,v 1.65 2012/12/14 03:16:53 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/ChangeLog,v 1.66 2012/12/14 08:46:30 patrick Exp $ + +*nodejs-0.9.3-r1 (14 Dec 2012) + + 14 Dec 2012; Patrick Lauer <patrick@gentoo.org> +nodejs-0.9.3-r1.ebuild: + Restoring accidentally removed 0.9 version *nodejs-0.8.16 (14 Dec 2012) diff --git a/net-libs/nodejs/nodejs-0.9.3-r1.ebuild b/net-libs/nodejs/nodejs-0.9.3-r1.ebuild new file mode 100644 index 000000000000..18be3071e0b3 --- /dev/null +++ b/net-libs/nodejs/nodejs-0.9.3-r1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/nodejs-0.9.3-r1.ebuild,v 1.3 2012/12/14 08:46:30 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 ~x86 ~x64-macos" +IUSE="" + +DEPEND=">=dev-lang/v8-3.11.10:= + 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 +} + +src_configure() { + # this is an autotools lookalike confuserator + ./configure --shared-v8 --prefix="${EPREFIX}"/usr --shared-v8-includes="${EPREFIX}"/usr/include --openssl-use-sys --shared-zlib || die +} + +src_compile() { + emake || die +} + +src_install() { + docompress -x /lib/node_modules/npm/man + 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 '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" + + # 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 +} |