Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

FL-445: add nodejs update ebuilds

  • Loading branch information...
commit 87addfba5b755fa9ccee80ad8a0224a4247c7ea5 1 parent c6c57a0
Oleg angryvincent authored
11 net-libs/nodejs/Manifest
... ... @@ -1,5 +1,6 @@
1   -DIST node-v0.6.12.tar.gz 10452498 RMD160 83dbceeff3a03eb69c2741e259f49708c381e326 SHA1 4482e1c09e571085668e8f50d6cc04e47fd9cb2c SHA256 a16392fb83b288bd40cb64593253756a44f8111478edf5e8cc439a64622281c4
2   -DIST node-v0.6.13.tar.gz 10757157 RMD160 1f9134e764c60557a8452445383e395160c4f877 SHA1 04379ec7651db61bb0023f151b49c4ddbb1de4ff SHA256 fc4f3ceacfd2cfc4ec75fc59d97f1f2d04947efd5e191efaddeb552df486245b
3   -DIST node-v0.6.14.tar.gz 10742747 RMD160 e4720eec19c3f1d80bd2bdc204cc48834f63d99a SHA1 84da327465a96c8fdfb58f351e877e417570a8fb SHA256 e41922308155c5197c2d048948ca9cd76ea5f9a51f977e1591bd93fe17d4cf1f
4   -DIST node-v0.6.18.tar.gz 10261465 RMD160 697fae50be96138cab94c2345e90870aafbd2630 SHA1 ccb7b5c55e3403b3ffc77d46f7a23079ce65e71e SHA256 6cf4311ecbc1700e88f4382a31b3a7017c1572cd641fd06e653fc1692c2cffff
5   -DIST node-v0.8.0.tar.gz 11829547 RMD160 acf06bbaa5fe6e707e60c719f27a7a4f9f041172 SHA1 5171fb46fbfee5ac7129c4b17207a3f35a1f57e8 SHA256 ecafca018b5109a28537633d0433d513f68b1bae7191a1821e8eaa84ccf128ee
  1 +DIST node-v0.10.2.tar.gz 12813547 SHA256 4eb642897fdb945b49720f2604afc493587aec7a9ff1537e882df659e4dd8aa2 SHA512 88615b4450ff10e70f4f53ec159518c1385da747e44dfb6c42dcf386c41b62048a9b77838036cf620202da1812c60893809f6aca2202e90b20158eb0f00aa60a WHIRLPOOL d46c2b11d98b32872fe40e748cdabba365afa754e5108b1ee9fecc0990e9f3878a47558a66e4b909e10792e162fcbb7ddff9a380042eb49b93f8a18534df9f35
  2 +DIST node-v0.6.12.tar.gz 10452498 SHA256 a16392fb83b288bd40cb64593253756a44f8111478edf5e8cc439a64622281c4
  3 +DIST node-v0.6.13.tar.gz 10757157 SHA256 fc4f3ceacfd2cfc4ec75fc59d97f1f2d04947efd5e191efaddeb552df486245b
  4 +DIST node-v0.6.14.tar.gz 10742747 SHA256 e41922308155c5197c2d048948ca9cd76ea5f9a51f977e1591bd93fe17d4cf1f
  5 +DIST node-v0.6.18.tar.gz 10261465 SHA256 6cf4311ecbc1700e88f4382a31b3a7017c1572cd641fd06e653fc1692c2cffff
  6 +DIST node-v0.8.21.tar.gz 12191813 SHA256 e526f56d22bb2ebee5a607bd1e7a16dcc8530b916e3a372192e6cd5fa97d08e6 SHA512 10a305d5d798703144a4d4a29878b261be516f29a0bfe349e73879b81e16db89a6fabfce43a6b1abef2f085aa2cf884bde310b9feeb377083c43f674492f5d99 WHIRLPOOL f44085bb6710289adc85653f39073d17527bbe2bd27d9a998376a3eeab9fea462fb8f9d0f3baab4bda28d3046d3920a58ab14cfaa9eb1d20bb66cfdc1c71cc72
60 net-libs/nodejs/nodejs-0.10.2.ebuild
... ... @@ -0,0 +1,60 @@
  1 +# Distributed under the terms of the GNU General Public License v2
  2 +
  3 +EAPI=5-progress
  4 +
  5 +RESTRICT="test"
  6 +PYTHON_MULTIPLE_ABIS="1"
  7 +PYTHON_RESTRICTED_ABIS="3.* *-jython *-pypy-*"
  8 +inherit python pax-utils
  9 +
  10 +DESCRIPTION="Evented IO for V8 Javascript"
  11 +HOMEPAGE="http://nodejs.org/"
  12 +SRC_URI="http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz"
  13 +
  14 +LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
  15 +SLOT="0"
  16 +KEYWORDS="~*"
  17 +IUSE=""
  18 +
  19 +RDEPEND="dev-libs/openssl"
  20 +DEPEND="${RDEPEND}
  21 + $(python_abi_depend virtual/python-json)"
  22 +
  23 +S=${WORKDIR}/node-v${PV}
  24 +
  25 +src_prepare() {
  26 + # fix compilation on Darwin
  27 + # http://code.google.com/p/gyp/issues/detail?id=260
  28 + sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
  29 +
  30 + # make sure we use python2.* while using gyp
  31 + sed -i -e "s/python/python2/" deps/npm/node_modules/node-gyp/gyp/gyp || die
  32 +
  33 + # less verbose install output (stating the same as portage, basically)
  34 + sed -i -e "/print/d" tools/install.py || die
  35 +}
  36 +
  37 +src_configure() {
  38 + ./configure --prefix="${EPREFIX}"/usr --openssl-use-sys --shared-zlib || die
  39 +}
  40 +
  41 +src_compile() {
  42 + emake out/Makefile
  43 + emake -C out mksnapshot
  44 + pax-mark m out/Release/mksnapshot
  45 + emake
  46 +}
  47 +
  48 +src_install() {
  49 + ./tools/install.py install "${ED}"
  50 +
  51 + dohtml -r "${ED}"/usr/lib/node_modules/npm/html/*
  52 + rm -rf "${ED}"/usr/lib/node_modules/npm/doc "${ED}"/usr/lib/node_modules/npm/html
  53 + rm -rf "${ED}"/usr/lib/dtrace
  54 +
  55 + pax-mark -m "${ED}"/usr/bin/node
  56 +}
  57 +
  58 +src_test() {
  59 + ./tools/test.py --mode=release simple message || die
  60 +}
74 net-libs/nodejs/nodejs-0.8.0.ebuild
... ... @@ -1,74 +0,0 @@
1   -# Distributed under the terms of the GNU General Public License v2
2   -
3   -EAPI=4-python
4   -
5   -PYTHON_DEPEND="<<2>>"
6   -
7   -inherit python eutils pax-utils
8   -
9   -RESTRICT="test"
10   -
11   -DESCRIPTION="Evented IO for V8 Javascript"
12   -HOMEPAGE="http://nodejs.org/"
13   -SRC_URI="http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz"
14   -
15   -LICENSE="GPL-2"
16   -SLOT="0"
17   -KEYWORDS="~*"
18   -IUSE=""
19   -
20   -DEPEND=">=dev-lang/v8-3.11.10
21   - dev-libs/openssl"
22   -RDEPEND="${DEPEND}"
23   -
24   -S=${WORKDIR}/node-v${PV}
25   -
26   -pkg_setup() {
27   - python_set_active_version 2
28   - python_pkg_setup
29   -}
30   -
31   -src_prepare() {
32   - # fix compilation on Darwin
33   - # http://code.google.com/p/gyp/issues/detail?id=260
34   - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
35   - # Hardcoded braindamage extraction helper
36   - sed -i -e 's:wafdir = join(prefix, "lib", "node"):wafdir = "/lib/node/":' tools/node-waf || die
37   -
38   - cd ${S}
39   - for x in $(grep -r "/usr/bin/env python" * | cut -f1 -d":" ); do
40   - einfo "Tweaking $x for python2..."
41   - sed -e "s:/usr/bin/env python:/usr/bin/env python2:g" -i $x || die
42   - done
43   - sed -e "s/python/python2/g" -i Makefile || die
44   -}
45   -
46   -src_configure() {
47   - # this is an autotools lookalike confuserator
48   - ./configure --shared-v8 --prefix="${EPREFIX}"/usr --shared-v8-includes="${EPREFIX}"/usr/include --openssl-use-sys --shared-zlib || die
49   -}
50   -
51   -src_compile() {
52   - emake || die
53   -}
54   -
55   -src_install() {
56   - # Doesn't use make.
57   - mkdir -p "${ED}"/usr/include/node
58   - mkdir -p "${ED}"/usr/bin
59   - mkdir -p "${ED}"/lib/node_modules/npm
60   - mkdir -p "${ED}"/lib/node
61   - 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"
62   - cp 'deps/uv/include/ares.h' 'deps/uv/include/ares_version.h' "${ED}"/usr/include/node || die "Failed to copy stuff"
63   - cp 'out/Release/node' "${ED}"/usr/bin/node || die "Failed to copy stuff"
64   - cp -R deps/npm/* "${ED}"/lib/node_modules/npm || die "Failed to copy stuff"
65   - cp -R tools/wafadmin "${ED}"/lib/node/ || die "Failed to copy stuff"
66   - cp 'tools/node-waf' "${ED}"/usr/bin/ || die "Failed to copy stuff"
67   -
68   - # Has to be symlink
69   - dosym /lib/node_modules/npm/bin/npm-cli.js /bin/npm
70   -}
71   -
72   -src_test() {
73   - emake test || die
74   -}
59 net-libs/nodejs/nodejs-0.8.21.ebuild
... ... @@ -0,0 +1,59 @@
  1 +# Distributed under the terms of the GNU General Public License v2
  2 +
  3 +EAPI=5-progress
  4 +
  5 +PYTHON_MULTIPLE_ABIS="1"
  6 +PYTHON_RESTRICTED_ABIS="3.* *-jython *-pypy-*"
  7 +RESTRICT="test"
  8 +
  9 +inherit python eutils multilib pax-utils
  10 +
  11 +DESCRIPTION="Evented IO for V8 Javascript"
  12 +HOMEPAGE="http://nodejs.org/"
  13 +SRC_URI="http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz"
  14 +
  15 +LICENSE="GPL-2"
  16 +SLOT="0"
  17 +KEYWORDS="*"
  18 +IUSE=""
  19 +
  20 +DEPEND="dev-libs/openssl"
  21 +RDEPEND="${DEPEND}"
  22 +
  23 +S=${WORKDIR}/node-v${PV}
  24 +
  25 +src_prepare() {
  26 + # fix compilation on Darwin
  27 + # http://code.google.com/p/gyp/issues/detail?id=260
  28 + sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
  29 + python_convert_shebangs 2 tools/node-waf || die
  30 +}
  31 +
  32 +src_configure() {
  33 + ./configure --prefix="${EPREFIX}"/usr --openssl-use-sys --shared-zlib || die
  34 +}
  35 +
  36 +src_compile() {
  37 + emake || die
  38 +}
  39 +
  40 +src_install() {
  41 + local MYLIB=$(get_libdir)
  42 + mkdir -p "${ED}"/usr/include/node
  43 + mkdir -p "${ED}"/usr/bin
  44 + mkdir -p "${ED}"/usr/"${MYLIB}"/node_modules/npm
  45 + mkdir -p "${ED}"/usr/"${MYLIB}"/node
  46 + 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"
  47 + cp -R deps/uv/include/* "${ED}"/usr/include/node || die "Failed to copy stuff"
  48 + cp -R deps/v8/include/* "${ED}"/usr/include/node || die "Failed to copy stuff"
  49 + cp 'out/Release/node' "${ED}"/usr/bin/node || die "Failed to copy stuff"
  50 + cp -R deps/npm/* "${ED}"/usr/"${MYLIB}"/node_modules/npm || die "Failed to copy stuff"
  51 + cp -R tools/wafadmin "${ED}"/usr/"${MYLIB}"/node/ || die "Failed to copy stuff"
  52 + cp 'tools/node-waf' "${ED}"/usr/bin/ || die "Failed to copy stuff"
  53 + dosym /usr/"${MYLIB}"/node_modules/npm/bin/npm-cli.js /usr/bin/npm
  54 + pax-mark -m "${ED}"/usr/bin/node
  55 +}
  56 +
  57 +src_test() {
  58 + emake test || die
  59 +}

0 comments on commit 87addfb

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