-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgettext.py
More file actions
32 lines (28 loc) · 1.15 KB
/
gettext.py
File metadata and controls
32 lines (28 loc) · 1.15 KB
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
30
31
32
""" Formula for building autopoint & gettext """
from pakit import Archive, Recipe
class Gettext(Recipe):
"""
Autopoint and the gettext library.
"""
def __init__(self):
super(Gettext, self).__init__()
self.homepage = 'https://www.gnu.org/software/gettext'
self.repos = {
'stable': Archive('http://ftp.gnu.org/pub/gnu/gettext/'
'gettext-0.19.6.tar.gz',
hash='ed4b4c19bd3a3034eb6769500a3592ff616759'
'ef43cf30586dbb7a17c9dd695d'),
# 'unstable': Git('git://git.savannah.gnu.org/gettext.git'),
}
# TODO: No gperf recipe yet, required for unstable
# self.requires = ['gperf']
def build(self):
# if self.repo_name == 'unstable':
# self.cmd('./autogen.sh')
# raise Exception('Cannot build unstable version yet.')
self.cmd('./configure --prefix={prefix}')
self.cmd('make')
self.cmd('make install')
def verify(self):
lines = self.cmd('autopoint --version').output()
assert lines[0].find('autopoint (GNU gettext-tools)') != -1