Commit 59344a31 authored by system_user's avatar system_user

Putting node changes back in. This branching thing sucks

parent 4ab4e980
require 'package' require 'package'
class Node < Package class Node < Package
version '4.4.5' version '4.4.7'
source_url 'https://nodejs.org/dist/v4.4.5/node-v4.4.5.tar.xz' source_url 'https://nodejs.org/dist/v4.4.7/node-v4.4.7.tar.xz'
source_sha1 'be0af595facab8be2dd8fa64c051c4c5a7ec0c4a' source_sha1 'a39d03d04a79af2220ca94a8735e7acbe180c4e5'
depends_on 'buildessential' depends_on 'buildessential'
depends_on 'python27' depends_on 'python27'
depends_on 'openssl_devel'
def self.build def self.build
system "CC='gcc' python2.7 ./configure --without-snapshot" system "CC='gcc' python2.7 ./configure --without-snapshot"
...@@ -16,6 +17,7 @@ class Node < Package ...@@ -16,6 +17,7 @@ class Node < Package
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
#Fix Permissiongs for -g installs of node packages #Fix Permissiongs for -g installs of node packages
system "sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}" system "echo 'Now to get npm -g working you should type this'"
system "echo 'sudo chown -R chronos /usr/local/lib/node_modules'"
end end
end end
require 'package' require 'package'
class Node_current < Package class Node_current < Package
version '6.2.2' version '6.3.1'
source_url 'https://nodejs.org/dist/v6.2.2/node-v6.2.2.tar.xz' source_url 'https://nodejs.org/dist/v6.3.1/node-v6.3.1.tar.xz'
source_sha1 '5014800813fa3682b8053637518b37a119c26e93' source_sha1 '7021da27637f0e099598f0a7e8ddaf07e8bb3a69'
depends_on 'buildessential' depends_on 'buildessential'
depends_on 'python27' depends_on 'python27'
depends_on 'openssl_devel'
def self.build def self.build
system "CC='gcc' python2.7 ./configure --without-snapshot" system "CC='gcc' python2.7 ./configure --without-snapshot"
system "make" system "make"
...@@ -16,6 +18,7 @@ class Node_current < Package ...@@ -16,6 +18,7 @@ class Node_current < Package
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
#Fix Permissiongs for -g installs of node packages #Fix Permissiongs for -g installs of node packages
system "sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}" system "echo 'Now to get npm -g working you should type this'"
system "echo 'sudo chown -R chronos /usr/local/lib/node_modules'"
end end
end end
require 'package' require 'package'
class Node_stable < Package class Node_stable < Package
version '6.2.2' version '6.3.1'
source_url 'https://nodejs.org/dist/v6.2.2/node-v6.2.2.tar.xz' source_url 'https://nodejs.org/dist/v6.3.1/node-v6.3.1.tar.xz'
source_sha1 '5014800813FA3682B8053637518B37A119C26E93' source_sha1 '7021da27637f0e099598f0a7e8ddaf07e8bb3a69'
depends_on 'buildessential' depends_on 'buildessential'
depends_on 'python27' depends_on 'python27'
...@@ -16,6 +16,9 @@ class Node_stable < Package ...@@ -16,6 +16,9 @@ class Node_stable < Package
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
#Fix Permissiongs for -g installs of node packages #Fix Permissiongs for -g installs of node packages
system "sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}" system "echo 'Now to get npm -g working you should type this'"
system "echo 'sudo chown -R chronos /usr/local/lib/node_modules'"
system "echo 'also...'"
system "echo 'node_stable has been depricated. Please install node_current to get the latest changes'"
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment