Xamarin Public Jenkins (auto-signing) 6bdd276d05 Imported Upstream version 5.0.0.42
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
2017-04-10 11:41:01 +00:00

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()