1 class GettextPackage (GnuPackage):
4 GnuPackage.__init__(self, 'gettext', '0.18.2',
7 '--disable-libasprintf',
13 if Package.profile.name == 'darwin':
14 self.configure_flags.extend([
15 # only build the tools, osx has the lib
16 # https://github.com/mxcl/homebrew/blob/master/Library/Formula/gettext.rb
17 #'--without-included-gettext',
21 # https://trac.macports.org/export/79183/trunk/dports/devel/gettext/files/patch-gettext-tools-Makefile.in
22 'patches/gettext-no-samples.patch',
27 if Package.profile.name == 'darwin':
28 for p in range(1, len(self.local_sources)):
29 self.sh('patch -p1 < "%{local_sources[' + str(p) + ']}"')