Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

FL-445: add nodejs update ebuilds

  • Loading branch information...
commit 87addfba5b755fa9ccee80ad8a0224a4247c7ea5 1 parent c6c57a0
Oleg angryvincent authored
11 net-libs/nodejs/Manifest
View
@@ -1,5 +1,6 @@
-DIST node-v0.6.12.tar.gz 10452498 RMD160 83dbceeff3a03eb69c2741e259f49708c381e326 SHA1 4482e1c09e571085668e8f50d6cc04e47fd9cb2c SHA256 a16392fb83b288bd40cb64593253756a44f8111478edf5e8cc439a64622281c4
-DIST node-v0.6.13.tar.gz 10757157 RMD160 1f9134e764c60557a8452445383e395160c4f877 SHA1 04379ec7651db61bb0023f151b49c4ddbb1de4ff SHA256 fc4f3ceacfd2cfc4ec75fc59d97f1f2d04947efd5e191efaddeb552df486245b
-DIST node-v0.6.14.tar.gz 10742747 RMD160 e4720eec19c3f1d80bd2bdc204cc48834f63d99a SHA1 84da327465a96c8fdfb58f351e877e417570a8fb SHA256 e41922308155c5197c2d048948ca9cd76ea5f9a51f977e1591bd93fe17d4cf1f
-DIST node-v0.6.18.tar.gz 10261465 RMD160 697fae50be96138cab94c2345e90870aafbd2630 SHA1 ccb7b5c55e3403b3ffc77d46f7a23079ce65e71e SHA256 6cf4311ecbc1700e88f4382a31b3a7017c1572cd641fd06e653fc1692c2cffff
-DIST node-v0.8.0.tar.gz 11829547 RMD160 acf06bbaa5fe6e707e60c719f27a7a4f9f041172 SHA1 5171fb46fbfee5ac7129c4b17207a3f35a1f57e8 SHA256 ecafca018b5109a28537633d0433d513f68b1bae7191a1821e8eaa84ccf128ee
+DIST node-v0.10.2.tar.gz 12813547 SHA256 4eb642897fdb945b49720f2604afc493587aec7a9ff1537e882df659e4dd8aa2 SHA512 88615b4450ff10e70f4f53ec159518c1385da747e44dfb6c42dcf386c41b62048a9b77838036cf620202da1812c60893809f6aca2202e90b20158eb0f00aa60a WHIRLPOOL d46c2b11d98b32872fe40e748cdabba365afa754e5108b1ee9fecc0990e9f3878a47558a66e4b909e10792e162fcbb7ddff9a380042eb49b93f8a18534df9f35
+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
+DIST node-v0.6.18.tar.gz 10261465 SHA256 6cf4311ecbc1700e88f4382a31b3a7017c1572cd641fd06e653fc1692c2cffff
+DIST node-v0.8.21.tar.gz 12191813 SHA256 e526f56d22bb2ebee5a607bd1e7a16dcc8530b916e3a372192e6cd5fa97d08e6 SHA512 10a305d5d798703144a4d4a29878b261be516f29a0bfe349e73879b81e16db89a6fabfce43a6b1abef2f085aa2cf884bde310b9feeb377083c43f674492f5d99 WHIRLPOOL f44085bb6710289adc85653f39073d17527bbe2bd27d9a998376a3eeab9fea462fb8f9d0f3baab4bda28d3046d3920a58ab14cfaa9eb1d20bb66cfdc1c71cc72
60 net-libs/nodejs/nodejs-0.10.2.ebuild
View
@@ -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
+}
74 net-libs/nodejs/nodejs-0.8.0.ebuild
View
@@ -1,74 +0,0 @@
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=4-python
-
-PYTHON_DEPEND="<<2>>"
-
-inherit python eutils pax-utils
-
-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="~*"
-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
- # Hardcoded braindamage extraction helper
- sed -i -e 's:wafdir = join(prefix, "lib", "node"):wafdir = "/lib/node/":' tools/node-waf || die
-
- cd ${S}
- for x in $(grep -r "/usr/bin/env python" * | cut -f1 -d":" ); do
- einfo "Tweaking $x for python2..."
- sed -e "s:/usr/bin/env python:/usr/bin/env python2:g" -i $x || die
- done
- sed -e "s/python/python2/g" -i Makefile || 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() {
- # Doesn't use make.
- 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"
-
- # Has to be symlink
- dosym /lib/node_modules/npm/bin/npm-cli.js /bin/npm
-}
-
-src_test() {
- emake test || die
-}
59 net-libs/nodejs/nodejs-0.8.21.ebuild
View
@@ -0,0 +1,59 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5-progress
+
+PYTHON_MULTIPLE_ABIS="1"
+PYTHON_RESTRICTED_ABIS="3.* *-jython *-pypy-*"
+RESTRICT="test"
+
+inherit python eutils multilib 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="GPL-2"
+SLOT="0"
+KEYWORDS="*"
+IUSE=""
+
+DEPEND="dev-libs/openssl"
+RDEPEND="${DEPEND}"
+
+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
+ python_convert_shebangs 2 tools/node-waf || die
+}
+
+src_configure() {
+ ./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"
+ 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
+}
Please sign in to comment.
Something went wrong with that request. Please try again.