1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
from cerbero.tools.libtool import LibtoolLibrary
class Recipe(recipe.Recipe):
name = 'pango'
version = '1.50.11'
stype = SourceType.TARBALL
btype = BuildType.MESON
url = 'gnome://'
tarball_checksum = '8800f812d89ee61388188703203f3a7878963c22f8695aaf1fa0a1a1428d17ae'
licenses = [License.LGPLv2Plus]
deps = ['cairo', 'fontconfig', 'freetype', 'fribidi', 'harfbuzz']
meson_options = {'introspection': 'disabled'}
patches = [
# TODO: propose upstream for merging
'pango/0001-meson-fix-freetype-lookup-with-MSVC-using-pkg-config.patch',
# TODO: propose upstream for merging
'pango/0001-pango-layout-fix-build-with-Android-s-bionic-libc.patch',
# https://gitlab.gnome.org/GNOME/pango/-/merge_requests/694
'pango/0001-win32-Fix-32bit-build-crash-on-DeleteDC.patch',
'pango/0004-utils-Check-that-help2man-can-run-if-found.patch',
]
files_libs = ['libpangocairo-1.0', 'libpango-1.0', 'libpangoft2-1.0']
files_bins = ['pango-view']
files_devel = ['include/pango-1.0',
'%(libdir)s/pkgconfig/pangoft2.pc', '%(libdir)s/pkgconfig/pango.pc',
'%(libdir)s/pkgconfig/pangocairo.pc']
platform_files_libs = {
Platform.WINDOWS: ['libpangowin32-1.0'],
}
platform_files_devel = {
Platform.WINDOWS: ['%(libdir)s/pkgconfig/pangowin32.pc'],
Platform.LINUX: ['%(libdir)s/pkgconfig/pango.pc'],
}
files_typelibs = [
'Pango-1.0',
'PangoCairo-1.0',
'PangoFT2-1.0'
]
def post_install(self):
LibtoolLibrary('pango-1.0', None, None, None, self.config.libdir,
self.config.target_platform, deps=['gobject-2.0', 'fribidi', 'harfbuzz', 'fontconfig', 'expat', 'freetype', 'bz2', 'png16']).save()
LibtoolLibrary('pangoft2-1.0', None, None, None, self.config.libdir,
self.config.target_platform, deps=['pango-1.0', 'harfbuzz', 'fontconfig', 'expat', 'freetype', 'bz2', 'png16']).save()
LibtoolLibrary('pangocairo-1.0', None, None, None, self.config.libdir,
self.config.target_platform, deps=['pango-1.0', 'cairo', 'pixman-1', 'pangoft2-1.0']).save()
if self.config.target_platform == Platform.WINDOWS:
LibtoolLibrary('pangowin32-1.0', None, None, None, self.config.libdir,
self.config.target_platform, deps=['pango-1.0', 'cairo']).save()
super().post_install()
|