generic-poky/meta/recipes-graphics/pango/pango_1.40.3.bb

53 lines
2.1 KiB
BlitzBasic
Raw Normal View History

SUMMARY = "Framework for layout and rendering of internationalized text"
DESCRIPTION = "Pango is a library for laying out and rendering of text, \
with an emphasis on internationalization. Pango can be used anywhere \
that text layout is needed, though most of the work on Pango so far has \
been done in the context of the GTK+ widget toolkit. Pango forms the \
core of text and font handling for GTK+-2.x."
HOMEPAGE = "http://www.pango.org/"
BUGTRACKER = "http://bugzilla.gnome.org"
SECTION = "libs"
LICENSE = "LGPLv2.0+"
LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7"
inherit gnomebase gtk-doc ptest-gnome upstream-version-is-even gobject-introspection
SRC_URI += "file://run-ptest \
file://0001-Drop-introspection-macros-from-acinclude.m4.patch \
file://0001-Enforce-recreation-of-docs-pango.types-it-is-build-c.patch \
"
SRC_URI[archive.md5sum] = "17c26720f5a862a12f7e1745e2f1d966"
SRC_URI[archive.sha256sum] = "abba8b5ce728520c3a0f1535eab19eac3c14aeef7faa5aded90017ceac2711d3"
DEPENDS = "glib-2.0 glib-2.0-native fontconfig freetype virtual/libiconv cairo harfbuzz"
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"
PACKAGECONFIG[x11] = "--with-xft,--without-xft,virtual/libx11 libxft"
EXTRA_AUTORECONF = ""
EXTRA_OECONF = " \
--disable-debug \
"
LEAD_SONAME = "libpango-1.0*"
LIBV = "1.8.0"
# This binary needs to be compiled for the host architecture. This isn't pretty!
do_compile_prepend_class-target () {
if ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'true', 'false', d)}; then
make CC="${BUILD_CC}" CFLAGS="" LDFLAGS="${BUILD_LDFLAGS}" AM_CPPFLAGS="$(pkg-config-native --cflags glib-2.0)" gen_all_unicode_LDADD="$(pkg-config-native --libs glib-2.0)" -C ${B}/tests gen-all-unicode
fi
}
FILES_${PN} = "${bindir}/* ${libdir}/libpango*${SOLIBS}"
FILES_${PN}-dev += "${libdir}/pango/${LIBV}/modules/*.la"
pango: make ${PN}-ptest RDEPENDS on cantarell-fonts Pango test case (test-layout.test) requires cantarell-font typeface. This test case uses 'Cantarell 11' font type. Test result after this change on qemux86: -- snip -- root@qemux86:~# gnome-desktop-testing-runner pango Running test: pango/test-pangocairo-threads.test Executing: pango/test-pangocairo-threads.test Executing: pango/test-pangocairo-threads.test Executing: pango/test-pangocairo-threads.test Executing: pango/test-pangocairo-threads.test Executing: pango/test-pangocairo-threads.test Executing: pango/test-pangocairo-threads.test Executing: pango/test-pangocairo-threads.test Executing: pango/test-pangocairo-threads.test Executing: pango/test-pangocairo-threads.test Executing: pango/test-pangocairo-threads.test Executing: pango/test-pangocairo-threads.test Executing: pango/test-pangocairo-threads.test Executing: pango/test-pangocairo-threads.test Executing: pango/test-pangocairo-threads.test Executing: pango/test-pangocairo-threads.test PASS: pango/test-pangocairo-threads.test Running test: pango/test-ot-tags.test /tags/script: OK /tags/language: OK PASS: pango/test-ot-tags.test Running test: pango/testcolor.test /color/parse: OK PASS: pango/testcolor.test Running test: pango/markup-parse.test /markup/parse/valid-4.markup: OK /markup/parse/valid-1.markup: OK /markup/parse/valid-3.markup: OK /markup/parse/valid-2.markup: OK /markup/parse/fail-1.markup: OK PASS: pango/markup-parse.test Running test: pango/test-layout.test /layout/valid-1.markup: OK /layout/valid-2.markup: OK PASS: pango/test-layout.test Running test: pango/cxx-test.test PASS: pango/cxx-test.test Running test: pango/testboundaries_ucd.test /text/break/grapheme: Testing /usr/libexec/installed-tests/pango/GraphemeBreakTest.txt. OK /text/break/word: /usr/libexec/installed-tests/pango/WordBreakTest.txt not found. Skipping test. OK /text/break/sentence: /usr/libexec/installed-tests/pango/SentenceBreakTest.txt not found. Skipping test. OK /text/break/line: /usr/libexec/installed-tests/pango/LineBreakTest.txt not found. Skipping test. OK PASS: pango/testboundaries_ucd.test Running test: pango/testboundaries.test /text/boundaries: sample file: /usr/libexec/installed-tests/pango/boundaries.utf8 testboundaries passed OK PASS: pango/testboundaries.test Running test: pango/testattributes.test /attributes/basic: OK /attributes/equal: OK /attributes/list/basic: OK /attributes/list/change: OK /attributes/list/splice: OK /attributes/list/filter: OK /attributes/iter/basic: OK /attributes/iter/get: OK /attributes/iter/get_font: OK /attributes/iter/get_attrs: OK PASS: pango/testattributes.test Running test: pango/testscript.test /script/iter: OK PASS: pango/testscript.test Running test: pango/test-font.test /pango/fontdescription/parse: OK /pango/fontdescription/roundtrip: OK PASS: pango/test-font.test Running test: pango/testiter.test /layout/iter: OK /layout/glyphitem-iter: OK PASS: pango/testiter.test SUMMARY: total=12; passed=12; skipped=0; failed=0; user=76.1s; system=2.0s; maxrss=52664 root@qemux86:~# -- CUT -- (From OE-Core rev: 27093df3b33d9ef6851c4ca315f11c5f556bfc29) Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-21 19:00:53 +00:00
RDEPENDS_${PN}-ptest += "liberation-fonts cantarell-fonts"
RPROVIDES_${PN} += "pango-modules pango-module-indic-lang \
pango-module-basic-fc pango-module-arabic-lang"
BBCLASSEXTEND = "native"