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
|
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
class Recipe(recipe.Recipe):
name = 'pango'
version = '1.42.4'
stype = SourceType.TARBALL
btype = BuildType.MESON
maj_ver = '.'.join(version.split('.')[0:2])
url = 'https://download.gnome.org/sources/{0}/{1}/{0}-{2}.tar.xz'.format(name, maj_ver, version)
tarball_checksum = '1d2b74cd63e8bd41961f2f8d952355aa0f9be6002b52c8aa7699d9f5da597c9d'
licenses = [License.LGPLv2Plus]
deps = ['cairo', 'fontconfig', 'freetype', 'fribidi', 'gtk-doc-lite', 'harfbuzz']
patches = [# https://gitlab.gnome.org/GNOME/pango/merge_requests/23
name + '/0001-meson-Don-t-run-help2man-when-cross-building.patch',
# Cherry-picked from upstream master
name + '/0001-meson-fix-build-on-osx.patch',
# https://gitlab.gnome.org/GNOME/pango/merge_requests/24
name + '/0001-meson-Set-the-compatibility-version-correctly-on-mac.patch']
files_libs = ['libpangocairo-1.0', 'libpango-1.0', 'libpangoft2-1.0']
files_bins = ['pango-querymodules', 'pango-view']
files_devel = ['include/pango-1.0',
'lib/pkgconfig/pangoft2.pc', 'lib/pkgconfig/pango.pc',
'lib/pkgconfig/pangocairo.pc']
platform_files_libs = {
Platform.WINDOWS: ['libpangowin32-1.0'],
}
platform_files_devel = {
Platform.WINDOWS: ['lib/pkgconfig/pangowin32.pc'],
Platform.LINUX: ['lib/pkgconfig/pango.pc'],
}
files_typelibs = [
'Pango-1.0',
'PangoCairo-1.0',
'PangoFT2-1.0'
]
|