Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
826e910b
Commit
826e910b
authored
Jan 15, 2018
by
Ed Reel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update nvm from 0.33.2 to 0.33.8
Update postinstall message Simplify install
parent
7e719b41
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
14 deletions
+17
-14
packages/nvm.rb
packages/nvm.rb
+17
-14
No files found.
packages/nvm.rb
View file @
826e910b
...
...
@@ -3,23 +3,26 @@ require 'package'
class
Nvm
<
Package
description
'Node Version Manager - Simple bash script to manage multiple active node.js versions.'
homepage
'https://github.com/creationix/nvm'
version
'0.33.
2
'
source_url
'https://github.com/creationix/nvm/archive/v0.33.
2
.tar.gz'
source_sha256
'
2ad455a0752d5bae49ecff38a8a7778cc734c2d0ece9942dfdd164c2f01e80da
'
version
'0.33.
8
'
source_url
'https://github.com/creationix/nvm/archive/v0.33.
8
.tar.gz'
source_sha256
'
59429f4bf3da7c2b7bcac06c488054dd774ae6962bdcefe249015d3590704b0b
'
def
self
.
install
system
"sed -i 's,
\$
HOME/.nvm,/usr/local/share/nvm,g' install.sh"
system
"NVM_DIR=/usr/local/share/nvm && bash install.sh"
system
"rm -rf /usr/local/share/nvm/.git*"
system
"rm -rf /usr/local/share/nvm/test"
system
"mkdir -p
#{
CREW_DEST_DIR
}
/usr/local/share"
system
"cp -r /usr/local/share/nvm
#{
CREW_DEST_DIR
}
/usr/local/share"
puts
""
system
"sed -i 's,
\$
HOME/.nvm,
#{
CREW_DEST_PREFIX
}
/share/nvm,g' install.sh"
system
"NVM_DIR=
#{
CREW_DEST_PREFIX
}
/share/nvm && bash install.sh"
system
"rm -rf
#{
CREW_DEST_PREFIX
}
/share/nvm/.git*"
system
"rm -rf
#{
CREW_DEST_PREFIX
}
/share/nvm/test"
end
def
self
.
postinstall
puts
puts
"To complete the installation, execute:"
.
lightblue
puts
"source ~/.bashrc"
.
lightblue
puts
""
puts
"To uninstall, in addition to 'crew remove nvm' you will"
.
lightblue
puts
"also need to delete any lines with NVM_DIR in ~/.bashrc."
.
lightblue
puts
""
puts
puts
"To uninstall, execute the following:"
.
lightblue
puts
"crew remove nvm"
.
lightblue
puts
"rm -rf
#{
CREW_PREFIX
}
/share/nvm"
.
lightblue
puts
"Delete any lines with NVM_DIR in ~/.bashrc."
.
lightblue
puts
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment