-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit.py
More file actions
29 lines (25 loc) · 939 Bytes
/
git.py
File metadata and controls
29 lines (25 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
""" Formula for building git """
from pakit import Archive, Recipe
from pakit import Git as GitRepo
class Git(Recipe):
"""
The git distributed version control system
"""
def __init__(self):
super(Git, self).__init__()
self.homepage = 'https://git-scm.com'
self.repos = {
'stable': Archive('https://www.kernel.org/pub/software/scm/git/'
'git-2.9.4.tar.xz',
hash='6c7e18ce9eb6fffe75704b3fde286c32210e831'
'75e03b75cb08952d5fb319018'),
'unstable': GitRepo('https://github.com/git/git'),
}
def build(self):
self.cmd('make configure')
self.cmd('./configure --prefix={prefix}')
self.cmd('make')
self.cmd('make install')
def verify(self):
lines = self.cmd('git --version').output()
assert lines[0].find('git version') != -1