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
192bbc69
Commit
192bbc69
authored
Feb 03, 2015
by
mrzmmr@gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add packages/go.rb
parent
9d39bd9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
packages/go.rb
packages/go.rb
+35
-0
No files found.
packages/go.rb
0 → 100644
View file @
192bbc69
require
'package'
class
Go
<
Package
version
'1.4.1'
source_url
'https://storage.googleapis.com/golang/go1.4.1.src.tar.gz'
source_sha1
'c7a683e8d39b835e333199d68d0c0baefcd24a68'
def
self
.
build
FileUtils
.
cd
(
'src'
)
do
system
"./all.bash"
end
end
def
self
.
install
system
"cp ../go -r /usr/local/lib/"
if
File
.
file?
(
'/usr/local/bin/go'
)
system
"sudo rm /usr/local/bin/go"
end
if
File
.
file?
(
'/usr/local/bin/gofmt'
)
system
"sudo rm /usr/local/bin/gofmt"
end
if
File
.
file?
(
'/usr/local/bin/godoc'
)
system
"sudo rm /usr/local/bin/godoc"
end
system
"sudo cp -r /usr/local/tmp/go /usr/local/lib/"
system
"sudo ln -s /usr/local/lib/go/bin/go /usr/local/bin/go"
system
"sudo ln -s /usr/local/lib/go/bin/godoc /usr/local/bin/godoc"
system
"sudo ln -s /usr/local/lib/go/bin/gofmt /usr/local/bin/gofmt"
puts
"---
\n
Corrected
\n
---"
puts
"Installed Go for linux/amd64 in /usr/local/lib/go"
puts
"Installed commands in /usr/local/bin"
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