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
|
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
from cerbero.tools.libtool import LibtoolLibrary
class Recipe(recipe.Recipe):
name = 'harfbuzz'
version = '2.6.7'
stype = SourceType.TARBALL
btype = BuildType.MESON
url = 'https://github.com/%(name)s/%(name)s/releases/download/%(version)s/%(name)s-%(version)s.tar.xz'
tarball_checksum = '49e481d06cdff97bf68d99fa26bdf785331f411614485d892ea4c78eb479b218'
licenses = [{License.BSD_like: ['COPYING']}]
deps = ['fontconfig', 'cairo', 'glib']
meson_options = {'icu': 'disabled',
'glib': 'enabled',
'cairo': 'enabled', # Is this needed? Is it only used for cmd line utils?
'gobject': 'disabled',
'icu_builtin': 'false',
'introspection': 'disabled',
'tests': 'disabled'}
# https://github.com/harfbuzz/harfbuzz/pull/2458
patches = [
'harfbuzz/0001-meson-Export-symbols-for-a-DLL-when-not-building-sta.patch',
'harfbuzz/0001-harfbuzz-disable-werror-from-pragmas.patch',
]
files_bins = ['hb-ot-shape-closure', 'hb-view', 'hb-shape']
files_libs = ['libharfbuzz']
files_devel = ['include/harfbuzz/*.h', 'lib/pkgconfig/harfbuzz.pc']
def post_install(self):
# Meson does not generate la files
LibtoolLibrary('harfbuzz', None, None, None,
self.config.libdir, self.config.target_platform,
deps=['glib-2.0', 'freetype', 'fontconfig']).save()
LibtoolLibrary('harfbuzz-subset', None, None, None,
self.config.libdir, self.config.target_platform,
deps=['harfbuzz']).save()
super().post_install()
|