6bdd276d05
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
32 lines
1.2 KiB
Python
32 lines
1.2 KiB
Python
class GettextPackage (GnuPackage):
|
|
|
|
def __init__(self):
|
|
GnuPackage.__init__(self, 'gettext', '0.18.2',
|
|
configure_flags=[
|
|
'--disable-java',
|
|
'--disable-libasprintf',
|
|
'--disable-openmp',
|
|
'--with-included-glib'
|
|
]
|
|
)
|
|
|
|
if Package.profile.name == 'darwin':
|
|
self.configure_flags.extend([
|
|
# only build the tools, osx has the lib
|
|
# https://github.com/mxcl/homebrew/blob/master/Library/Formula/gettext.rb
|
|
#'--without-included-gettext',
|
|
])
|
|
self.sources.extend([
|
|
# Don't build samples
|
|
# https://trac.macports.org/export/79183/trunk/dports/devel/gettext/files/patch-gettext-tools-Makefile.in
|
|
'patches/gettext-no-samples.patch',
|
|
])
|
|
|
|
def prep(self):
|
|
Package.prep(self)
|
|
if Package.profile.name == 'darwin':
|
|
for p in range(1, len(self.local_sources)):
|
|
self.sh('patch -p1 < "%{local_sources[' + str(p) + ']}"')
|
|
|
|
GettextPackage()
|