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
2ec87af6
Commit
2ec87af6
authored
Feb 17, 2017
by
Damian Montero
Committed by
GitHub
Feb 17, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #447 from cstrouse/add-mercurial
Add mercurial (4.0.2) package
parents
e20ac13b
3aa9416c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
packages/mercurial.rb
packages/mercurial.rb
+37
-0
No files found.
packages/mercurial.rb
0 → 100644
View file @
2ec87af6
require
'package'
class
Mercurial
<
Package
version
'4.0.2'
source_url
'https://www.mercurial-scm.org/release/mercurial-4.0.2.tar.gz'
source_sha1
'1d7b3eeed790974277db91bd1b0f34a5d142e980'
# what's the best route for adding a minimum version symbol as a constraint?
depends_on
"python27"
def
self
.
build
# would be great to avoid even downloading the source tarball if this dependency wasn't met
py_ver
=
%x[python -V 2>&1 | awk '{ print $2 }']
.
strip
abort
'[!] python 2.7.13 or higher is required for tig, please run `crew upgrade python27` first.'
unless
py_ver
>
'2.7.12'
if
!
%x[pip list | grep osutils]
.
include?
"osutils"
puts
"Installing osutils dependency..."
system
"sudo"
,
"pip"
,
"install"
,
"osutils"
end
if
!
%x[pip list | grep docutils]
.
include?
"docutils"
puts
"Installing docutils dependency..."
system
"sudo"
,
"pip"
,
"install"
,
"docutils"
end
system
"make"
,
"PREFIX=/usr/local"
,
"all"
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
puts
"------------------"
puts
"Installation success!"
puts
"Cleaning up dependencies only required for build..."
system
"sudo"
,
"pip"
,
"uninstall"
,
"docutils"
puts
puts
"To begin using mercurial you'll need to configure it."
puts
puts
"Run `hg debuginstall` and address any issues that it reports."
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