Skip to contentSkip to conversation

pango.inc: minor cleanup

PATCH In review Andre McCurdy 2 participants 4 messages Jan 29, 2016 – Jan 30, 2016

lore
Share & tools
lore
#0 lore raw

cover pango.inc: minor cleanup

Andre McCurdy (2):
pango.inc: limit ptest specific do_compile_prepend to target builds pango.inc: misc dependency fixes

 meta/recipes-graphics/pango/pango.inc | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/2 pango.inc: limit ptest specific do_compile_prepend to target builds

---
 meta/recipes-graphics/pango/pango.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-graphics/pango/pango.inc +1 -1
index ede1150..63c7d1e 100644
@@ -30,7 +30,7 @@ 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 () {
+do_compile_prepend_class-target () {
 	if ${@base_contains('DISTRO_FEATURES', 'ptest', 'true', 'false', d)}; then
 		make CC="${BUILD_CC}" CFLAGS="" 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
Signature · 1 line
1.9.1
#2 lore raw

PATCH 2/2 pango.inc: misc dependency fixes

In reply to Andre McCurdy

- Add glib-2.0-native dependency for target
- Add fontconfig-native and freetype-native dependencies for native
- Drop unnecessary dependency on zlib for all

---
 meta/recipes-graphics/pango/pango.inc | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
meta/recipes-graphics/pango/pango.inc +4 -6
index 63c7d1e..ffa38d8 100644
@@ -9,14 +9,10 @@ BUGTRACKER = "http://bugzilla.gnome.org"
 SECTION = "libs"
 LICENSE = "LGPLv2.0+"
 
-X11DEPENDS = "virtual/libx11 libxft"
-DEPENDS = "glib-2.0 fontconfig freetype zlib virtual/libiconv cairo harfbuzz"
+DEPENDS = "glib-2.0 glib-2.0-native fontconfig freetype virtual/libiconv cairo harfbuzz"
 
 PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
-PACKAGECONFIG[x11] = "--with-xft,--without-xft,${X11DEPENDS}"
-
-BBCLASSEXTEND = "native"
-DEPENDS_class-native = "glib-2.0-native cairo-native harfbuzz-native"
+PACKAGECONFIG[x11] = "--with-xft,--without-xft,virtual/libx11 libxft"
 
 inherit gnomebase gtk-doc ptest-gnome upstream-version-is-even
 
@@ -43,3 +39,5 @@ RDEPENDS_${PN}-ptest += "liberation-fonts"
 
 RPROVIDES_${PN} += "pango-modules pango-module-indic-lang \
                     pango-module-basic-fc pango-module-arabic-lang"
+
+BBCLASSEXTEND = "native"
Signature · 1 line
1.9.1
#3 lore raw

Re: [PATCH 2/2] pango.inc: misc dependency fixes

Quoted 26 lines · Andre McCurdy

- Add glib-2.0-native dependency for target
- Add fontconfig-native and freetype-native dependencies for native
- Drop unnecessary dependency on zlib for all

---
meta/recipes-graphics/pango/pango.inc | 10 ++++------

1 file changed, 4 insertions(+), 6 deletions(-)
meta/recipes-graphics/pango/pango.inc +0 -0
index 63c7d1e..ffa38d8 100644
@@ -9,14 +9,10 @@ BUGTRACKER = "http://bugzilla.gnome.org"

SECTION = "libs"
LICENSE = "LGPLv2.0+"

meta/recipes-graphics/pango/pango.inc +1 -2
-X11DEPENDS = "virtual/libx11 libxft"
-DEPENDS = "glib-2.0 fontconfig freetype zlib virtual/libiconv cairo harfbuzz"
+DEPENDS = "glib-2.0 glib-2.0-native fontconfig freetype virtual/libiconv cairo harfbuzz"

PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"

meta/recipes-graphics/pango/pango.inc BUGTRACKER = "http://bugzilla.gnome.org"

Quoted 5 lines
meta/recipes-graphics/pango/pango.inc +1 -4
-PACKAGECONFIG[x11] = "--with-xft,--without-xft,${X11DEPENDS}"
-
-BBCLASSEXTEND = "native"
-DEPENDS_class-native = "glib-2.0-native cairo-native harfbuzz-native"
+PACKAGECONFIG[x11] = "--with-xft,--without-xft,virtual/libx11 libxft”

this is ok.

Quoted 16 lines

inherit gnomebase gtk-doc ptest-gnome upstream-version-is-even

meta/recipes-graphics/pango/pango.inc +2 -1
@@ -43,3 +39,5 @@ RDEPENDS_${PN}-ptest += "liberation-fonts"
 
 RPROVIDES_${PN} += "pango-modules pango-module-indic-lang \
                    pango-module-basic-fc pango-module-arabic-lang"
+
+BBCLASSEXTEND = "native"
--

1.9.1

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core