Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 1 | SUMMARY = "Framework for layout and rendering of internationalized text" |
| 2 | DESCRIPTION = "Pango is a library for laying out and rendering of text, \ |
| 3 | with an emphasis on internationalization. Pango can be used anywhere \ |
| 4 | that text layout is needed, though most of the work on Pango so far has \ |
| 5 | been done in the context of the GTK+ widget toolkit. Pango forms the \ |
| 6 | core of text and font handling for GTK+-2.x." |
| 7 | HOMEPAGE = "http://www.pango.org/" |
| 8 | BUGTRACKER = "http://bugzilla.gnome.org" |
| 9 | SECTION = "libs" |
| 10 | LICENSE = "LGPL-2.0-or-later" |
| 11 | |
| 12 | LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7" |
| 13 | |
| 14 | GNOMEBASEBUILDCLASS = "meson" |
| 15 | |
| 16 | inherit gnomebase gi-docgen ptest-gnome upstream-version-is-even gobject-introspection |
| 17 | |
| 18 | UPSTREAM_CHECK_REGEX = "pango-(?P<pver>\d+\.(?!9\d+)\d+\.\d+)" |
| 19 | |
| 20 | GIR_MESON_ENABLE_FLAG = "enabled" |
| 21 | GIR_MESON_DISABLE_FLAG = "disabled" |
| 22 | |
| 23 | SRC_URI += "file://run-ptest \ |
Patrick Williams | 7784c42 | 2022-11-17 07:29:11 -0600 | [diff] [blame] | 24 | file://0001-Skip-running-test-layout-test.patch \ |
| 25 | file://0001-tests-meson.build-install-nofonts-fonts.conf-as-it-i.patch \ |
| 26 | " |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 27 | |
Patrick Williams | 7784c42 | 2022-11-17 07:29:11 -0600 | [diff] [blame] | 28 | SRC_URI[archive.sha256sum] = "8800f812d89ee61388188703203f3a7878963c22f8695aaf1fa0a1a1428d17ae" |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 29 | |
| 30 | DEPENDS = "glib-2.0 glib-2.0-native fontconfig freetype virtual/libiconv cairo harfbuzz fribidi" |
| 31 | |
| 32 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} \ |
| 33 | ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}" |
| 34 | |
| 35 | PACKAGECONFIG[x11] = ",,virtual/libx11 libxft" |
| 36 | PACKAGECONFIG[tests] = "-Dinstall-tests=true, -Dinstall-tests=false" |
| 37 | PACKAGECONFIG[thai] = ",,libthai" |
| 38 | |
| 39 | GIR_MESON_OPTION = 'introspection' |
| 40 | |
| 41 | do_configure:prepend() { |
Patrick Williams | 7784c42 | 2022-11-17 07:29:11 -0600 | [diff] [blame] | 42 | chmod +x ${S}/tests/*.py |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | LEAD_SONAME = "libpango-1.0*" |
| 46 | |
| 47 | FILES:${PN} = "${bindir}/* ${libdir}/libpango*${SOLIBS}" |
| 48 | |
| 49 | RDEPENDS:${PN}-ptest += "cantarell-fonts" |
| 50 | RDEPENDS:${PN}-ptest:append:libc-glibc = " locale-base-en-us" |
| 51 | |
| 52 | RPROVIDES:${PN} += "pango-modules pango-module-indic-lang \ |
| 53 | pango-module-basic-fc pango-module-arabic-lang" |
| 54 | |
| 55 | BBCLASSEXTEND = "native nativesdk" |