You've already forked linux-packaging-mono
Imported Upstream version 5.0.0.42
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
parent
1190d13a04
commit
6bdd276d05
31
external/bockbuild/packages/gettext.py
vendored
Normal file
31
external/bockbuild/packages/gettext.py
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
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()
|
Reference in New Issue
Block a user