Skip to content
Browse files

Updating node stable and unstable

  • Loading branch information...
1 parent 0a5d601 commit c9dac7790faf5475fea8663e6977b7e650d37da8 Dan Molik committed May 17, 2013
Showing with 128 additions and 0 deletions.
  1. +2 −0 net-libs/nodejs/Manifest
  2. +60 −0 net-libs/nodejs/nodejs-0.10.6.ebuild
  3. +66 −0 net-libs/nodejs/nodejs-0.11.2.ebuild
View
2 net-libs/nodejs/Manifest
@@ -1,6 +1,8 @@
DIST node-v0.10.2.tar.gz 12813547 SHA256 4eb642897fdb945b49720f2604afc493587aec7a9ff1537e882df659e4dd8aa2 SHA512 88615b4450ff10e70f4f53ec159518c1385da747e44dfb6c42dcf386c41b62048a9b77838036cf620202da1812c60893809f6aca2202e90b20158eb0f00aa60a WHIRLPOOL d46c2b11d98b32872fe40e748cdabba365afa754e5108b1ee9fecc0990e9f3878a47558a66e4b909e10792e162fcbb7ddff9a380042eb49b93f8a18534df9f35
DIST node-v0.10.5.tar.gz 13250913 SHA256 1c22bd15cb13b1109610ee256699300ec6999b335f3bc85dc3c0312ec9312cfd SHA512 bc79dec6f0a139062490b18adf0985f4e70f8d6f6476c53443ef9e312a7aef4ded679680f6d33d1aecda23e7802d2fa2fd8130b62e4889c70ff4f46a34909ceb WHIRLPOOL ebf78cbb2497ff355a5d2b7f18292c2cbd2c04baa00f81c48294254369f8b33f08095d91745a037e6fcba5353eb8d5781f37863f7bfc9488e98aab44355812ab
+DIST node-v0.10.6.tar.gz 13260795 SHA256 7e2079394efe82f62798178f617888c9d6a39150c76122c432ae9ea73ce28e79 SHA512 08e196948448fce089c583419f3e9c08cb666305fcb0dd929c41d25a6342892cf82c670449cd1b245d6aee689e8f7a5ce7515dd7f132d7ee1470e4513b6fb5cf WHIRLPOOL 18e13d2719fce63f589c82d3b95bb72d84659ec5d7a3a63d71db867e1d8213ff0be4f128fb563b29cdc65e89ef01fe2e073b105fe05f4951ac3eedcf127217f1
DIST node-v0.11.1.tar.gz 13405287 SHA256 1042853f6f288185e9dda60eaf57de50768aec5d32df7c7f462b713c56bd096f SHA512 bc7aab5e68f63e105238f6cbda6576b0608971421bd16fc5c52ec094e92452fc38ba6de72d7802066d86eba0b238185bd658435ead7ab229de54485e03598807 WHIRLPOOL fec17d2c45ee83fdecd9ef5789dc0760f22ba23ca70cdf8114f119e6f2ae9043f24fc52b8f837acf86023ba482807370cdbb1adb1303ef50b843132d81895972
+DIST node-v0.11.2.tar.gz 13564314 SHA256 d115f01fea0b2c5a4c4ca489d0cc8cec70300f0212f08905d881ac55f642554a SHA512 67c834eb7509428d3ecb3cf808a66153941e4f484c879eae5b271b6b010dcf0cd3338f06e241b2ed423e5ba5062ae23be37c2e67bc1379b4b5f0823df3697dcc WHIRLPOOL 79634567de2d730f23b16ec2d3b4488b2423227d92fc522abf72359923d01e6180620f87eb46c8bb666defa63f87b4cdba2be9109f4042c512b81b2d3e0b0fd8
DIST node-v0.6.12.tar.gz 10452498 SHA256 a16392fb83b288bd40cb64593253756a44f8111478edf5e8cc439a64622281c4
DIST node-v0.6.13.tar.gz 10757157 SHA256 fc4f3ceacfd2cfc4ec75fc59d97f1f2d04947efd5e191efaddeb552df486245b
DIST node-v0.6.14.tar.gz 10742747 SHA256 e41922308155c5197c2d048948ca9cd76ea5f9a51f977e1591bd93fe17d4cf1f
View
60 net-libs/nodejs/nodejs-0.10.6.ebuild
@@ -0,0 +1,60 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5-progress
+
+RESTRICT="test"
+PYTHON_MULTIPLE_ABIS="1"
+PYTHON_RESTRICTED_ABIS="3.* *-jython *-pypy-*"
+inherit python pax-utils
+
+DESCRIPTION="Evented IO for V8 Javascript"
+HOMEPAGE="http://nodejs.org/"
+SRC_URI="http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz"
+
+LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
+SLOT="0"
+KEYWORDS="~*"
+IUSE=""
+
+RDEPEND="dev-libs/openssl"
+DEPEND="${RDEPEND}
+ $(python_abi_depend virtual/python-json)"
+
+S=${WORKDIR}/node-v${PV}
+
+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
+
+ # make sure we use python2.* while using gyp
+ sed -i -e "s/python/python2/" deps/npm/node_modules/node-gyp/gyp/gyp || die
+
+ # less verbose install output (stating the same as portage, basically)
+ sed -i -e "/print/d" tools/install.py || die
+}
+
+src_configure() {
+ ./configure --prefix="${EPREFIX}"/usr --openssl-use-sys --shared-zlib || die
+}
+
+src_compile() {
+ emake out/Makefile
+ emake -C out mksnapshot
+ pax-mark m out/Release/mksnapshot
+ emake
+}
+
+src_install() {
+ ./tools/install.py install "${ED}"
+
+ dohtml -r "${ED}"/usr/lib/node_modules/npm/html/*
+ rm -rf "${ED}"/usr/lib/node_modules/npm/doc "${ED}"/usr/lib/node_modules/npm/html
+ rm -rf "${ED}"/usr/lib/dtrace
+
+ pax-mark -m "${ED}"/usr/bin/node
+}
+
+src_test() {
+ ./tools/test.py --mode=release simple message || die
+}
View
66 net-libs/nodejs/nodejs-0.11.2.ebuild
@@ -0,0 +1,66 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5-progress
+
+RESTRICT="test"
+PYTHON_MULTIPLE_ABIS="1"
+PYTHON_RESTRICTED_ABIS="3.* *-jython *-pypy-*"
+inherit python pax-utils
+
+DESCRIPTION="Evented IO for V8 Javascript"
+HOMEPAGE="http://nodejs.org/"
+SRC_URI="http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz"
+
+LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
+SLOT="0"
+KEYWORDS="~*"
+IUSE="+v8"
+
+RDEPEND="dev-libs/openssl
+ v8? ( dev-lang/v8 )"
+DEPEND="${RDEPEND}
+ $(python_abi_depend virtual/python-json)"
+
+S=${WORKDIR}/node-v${PV}
+
+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
+
+ # make sure we use python2.* while using gyp
+ sed -i -e "s/python/python2/" deps/npm/node_modules/node-gyp/gyp/gyp || die
+
+ # less verbose install output (stating the same as portage, basically)
+ sed -i -e "/print/d" tools/install.py || die
+}
+
+src_configure() {
+ if use v8 ; then
+ ./configure --shared-v8 --shared-v8-libpath="${EPREFIX}"/usr/lib --shared-v8-includes="${EPREFIX}"/usr/include \
+ --prefix="${EPREFIX}"/usr --openssl-use-sys --shared-zlib || die
+ else
+ ./configure --prefix="${EPREFIX}"/usr --openssl-use-sys --shared-zlib || die
+ fi
+}
+
+src_compile() {
+ emake out/Makefile
+ # emake -C out mksnapshot
+ # pax-mark m out/Release/mksnapshot
+ emake || die
+}
+
+src_install() {
+ ./tools/install.py install "${ED}"
+
+ dohtml -r "${ED}"/usr/lib/node_modules/npm/html/*
+ rm -rf "${ED}"/usr/lib/node_modules/npm/doc "${ED}"/usr/lib/node_modules/npm/html
+ rm -rf "${ED}"/usr/lib/dtrace
+
+ pax-mark -m "${ED}"/usr/bin/node
+}
+
+src_test() {
+ ./tools/test.py --mode=release simple message || die
+}

0 comments on commit c9dac77

Please sign in to comment.
Something went wrong with that request. Please try again.