Commit 37eb9ae2 authored by Michał Siwek's avatar Michał Siwek Committed by GitHub

Merge pull request #173 from thedamian/master

Node FIXED & Updated (and install.sh corrected)
parents 4d3e327c 8c6e67eb
......@@ -88,7 +88,10 @@ echo y | crew install readline
echo y | crew install git
#Making GCC act like CC (For some npm packages out there)
ln -s /usr/local/bin/gcc /usr/local/bin/cc
sudo ln -s /usr/local/bin/gcc /usr/local/bin/cc
#This will allow a lot of things to work without sudo
sudo chown -R chronos:chronos /usr/local
#prepare sparse checkout .rb packages directory and do it
cd $CREW_LIB_PATH
......
require 'package'
class Mono < Package
version '4.4.0.148'
source_url 'http://download.mono-project.com/sources/mono/mono-4.4.0.148.tar.bz2'
source_sha1 '8da7726b7c09df97856b55eda062356666928d35'
def self.build
system "./configure","--disable-dependency-tracking","--disable-silent-rules","--enable-nls=no","prefix=#{CREW_DEST_DIR}/usr/local"
system "make"
end
def self.install
system "make", "PREFIX=#{CREW_DEST_DIR}/usr/local", "install"
end
end
require 'package'
class Node < Package
version '4.3.0'
source_url 'https://nodejs.org/dist/v4.3.0/node-v4.3.0.tar.xz'
source_sha1 'd7b4e9676e63fc3dd1d506cef244874466264e22'
version '4.4.5'
source_url 'https://nodejs.org/dist/v4.4.5/node-v4.4.5.tar.xz'
source_sha1 'be0af595facab8be2dd8fa64c051c4c5a7ec0c4a'
depends_on 'buildessential'
depends_on 'python27'
def self.build
system "CC='gcc' python2.7 ./configure"
system "CC='gcc' python2.7 ./configure --without-snapshot"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
#Fix Permissiongs for -g installs of node packages
system "sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}"
end
end
require 'package'
class Node_current < Package
version '6.2.2'
source_url 'https://nodejs.org/dist/v6.2.2/node-v6.2.2.tar.xz'
source_sha1 '5014800813fa3682b8053637518b37a119c26e93'
depends_on 'buildessential'
depends_on 'python27'
def self.build
system "CC='gcc' python2.7 ./configure --without-snapshot"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
#Fix Permissiongs for -g installs of node packages
system "sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}"
end
end
require 'package'
class Node_stable < Package
version '5.6.0'
source_url 'https://nodejs.org/dist/v5.6.0/node-v5.6.0.tar.xz'
source_sha1 '522b4f1027549eb8161c1edba222176aba92e294'
version '6.2.2'
source_url 'https://nodejs.org/dist/v6.2.2/node-v6.2.2.tar.xz'
source_sha1 '5014800813FA3682B8053637518B37A119C26E93'
depends_on 'buildessential'
depends_on 'python27'
def self.build
system "CC='gcc' python2.7 ./configure"
system "CC='gcc' python2.7 ./configure --without-snapshot"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
#Fix Permissiongs for -g installs of node packages
system "sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}"
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