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
47374a96
Commit
47374a96
authored
Feb 03, 2015
by
mrzmmr@gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove links to /usr/local/bin
parent
b0773679
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
22 deletions
+7
-22
packages/go.rb
packages/go.rb
+7
-22
No files found.
packages/go.rb
View file @
47374a96
...
...
@@ -6,30 +6,15 @@ class Go < Package
source_sha1
'c7a683e8d39b835e333199d68d0c0baefcd24a68'
def
self
.
build
FileUtils
.
cd
(
'src'
)
do
system
"./all.bash"
end
system
"sudo cp -r ../go /usr/local/lib/"
system
"./usr/local/lib/go/all.bash"
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
"
\n
---
\n
Corrected
\n
---
\n
"
puts
"Installed Go for linux/amd64 in /usr/local/lib/go"
puts
"Installed commands in /usr/local/bin"
puts
"Make sure to set go environment variables."
puts
"Minimal:"
puts
"
\t
export GOROOT=/usr/local/lib/go"
puts
"
\t
export PATH=$GOROOT/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