summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2012-06-27 06:07:39 +0000
committerPatrick Lauer <patrick@gentoo.org>2012-06-27 06:07:39 +0000
commit0310a2c8475d4c98e55d5e4e57331a1c9c89c97b (patch)
treeec818a86b740117793c940b093402fad9597e6ee /net-libs
parentFixing nodejs 0.8 v8 dep (diff)
downloadgentoo-2-0310a2c8475d4c98e55d5e4e57331a1c9c89c97b.tar.gz
gentoo-2-0310a2c8475d4c98e55d5e4e57331a1c9c89c97b.tar.bz2
gentoo-2-0310a2c8475d4c98e55d5e4e57331a1c9c89c97b.zip
Bump for #419345 #417241
(Portage version: 2.2.0_alpha113/cvs/Linux x86_64)
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/nodejs/ChangeLog7
-rw-r--r--net-libs/nodejs/nodejs-0.7.12.ebuild77
2 files changed, 83 insertions, 1 deletions
diff --git a/net-libs/nodejs/ChangeLog b/net-libs/nodejs/ChangeLog
index 1bc41e6a8e6d..8532fe4652d7 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.44 2012/06/27 05:49:54 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/ChangeLog,v 1.45 2012/06/27 06:07:39 patrick Exp $
+
+*nodejs-0.7.12 (27 Jun 2012)
+
+ 27 Jun 2012; Patrick Lauer <patrick@gentoo.org> +nodejs-0.7.12.ebuild:
+ Bump for #419345 #417241
27 Jun 2012; Patrick Lauer <patrick@gentoo.org> nodejs-0.8.0.ebuild:
Fixing nodejs 0.8 v8 dep
diff --git a/net-libs/nodejs/nodejs-0.7.12.ebuild b/net-libs/nodejs/nodejs-0.7.12.ebuild
new file mode 100644
index 000000000000..1a13ab4eca6a
--- /dev/null
+++ b/net-libs/nodejs/nodejs-0.7.12.ebuild
@@ -0,0 +1,77 @@
+# 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.7.12.ebuild,v 1.1 2012/06/27 06:07:39 patrick Exp $
+
+EAPI=3
+
+PYTHON_DEPEND="2"
+
+inherit python eutils 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.9.24.7
+ <dev-lang/v8-3.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
+ # Hardcoded braindamage extraction helper
+ sed -i -e 's:wafdir = join(prefix, "lib", "node"):wafdir = "/lib/node/":' tools/node-waf || 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() {
+ # there are no words to describe the epic idiocy of ...
+ # NOT using make but a JavaScript thingy to try to install things ... to the wrong place
+ # WHY U NO MAEK SENSE?!
+ #emake DESTDIR="${D}" install || die
+
+ mkdir -p "${ED}"/usr/include/node
+ mkdir -p "${ED}"/usr/bin
+ mkdir -p "${ED}"/lib/node_modules/npm
+ mkdir -p "${ED}"/lib/node
+ cp '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 'deps/uv/include/ares.h' 'deps/uv/include/ares_version.h' "${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}"/lib/node_modules/npm || die "Failed to copy stuff"
+ cp -R tools/wafadmin "${ED}"/lib/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 /lib/node_modules/npm/bin/npm-cli.js /bin/npm
+ pax-mark -m "${ED}"/usr/bin/node
+}
+
+src_test() {
+ emake test || die
+}