0691078cd8892c7579a89c4e7a16416a967640c0
[mono.git] / bockbuild / MacSDK / pango.py
1 class PangoPackage (GnomeXzPackage):
2
3     def __init__(self):
4         GnomePackage.__init__(self,
5                               'pango',
6                               version_major='1.35',
7                               version_minor='0',
8                               configure_flags=[
9                                   '--without-x',
10                                   '--enable-gtk-doc-html=no'
11                               ]
12                               )
13
14         self.sources.extend([
15             # 1
16             # Bug 321419 - Allow environment var substitution in Pango config
17             # https://bugzilla.gnome.org/show_bug.cgi?id=321419
18             'patches/pango-relative-config-file.patch',
19
20             # BXC 10257 - Characters outside the Basic Multilingual Plane don't render correctly
21             # https://bugzilla.xamarin.com/show_bug.cgi?id=10257
22             'patches/pango-coretext-astral-plane-1.patch',
23             'patches/pango-coretext-astral-plane-2.patch',
24
25             # Bug 15787 - Caret position is wrong when there are ligatures
26             # https://bugzilla.xamarin.com/show_bug.cgi?id=15787
27             'patches/pango-disable-ligatures.patch',
28
29             # https://bugzilla.xamarin.com/show_bug.cgi?id=22199
30             'patches/pango-fix-ct_font_descriptor_get_weight-crasher.patch',
31
32             # https://bugzilla.gnome.org/show_bug.cgi?id=734372
33             'patches/pango-coretext-condensed-trait.patch',
34
35             # https://bugzilla.xamarin.com/show_bug.cgi?id=32938
36             'patches/pango-coretext-fix-yosemite-crasher.patch',
37
38             'patches/pango-system-font-single.patch',
39             'patches/pango-system-font-check-version.patch'
40         ])
41
42     def prep(self):
43         GnomePackage.prep(self)
44         if Package.profile.name == 'darwin':
45             for p in range(1, len(self.local_sources)):
46                 self.sh('patch -p1 < "%{local_sources[' + str(p) + ']}"')
47
48     def deploy(self):
49         self.sh('pango-querymodules --update-cache')
50
51 PangoPackage()