diff options
| -rw-r--r-- | meta/recipes-graphics/pango/pango.inc | 26 | ||||
| -rw-r--r-- | meta/recipes-graphics/pango/pango_1.32.5.bb | 2 |
2 files changed, 9 insertions, 19 deletions
diff --git a/meta/recipes-graphics/pango/pango.inc b/meta/recipes-graphics/pango/pango.inc index ce5caf6120..f62290316d 100644 --- a/meta/recipes-graphics/pango/pango.inc +++ b/meta/recipes-graphics/pango/pango.inc | |||
| @@ -10,7 +10,7 @@ SECTION = "libs" | |||
| 10 | LICENSE = "LGPLv2.0+" | 10 | LICENSE = "LGPLv2.0+" |
| 11 | 11 | ||
| 12 | X11DEPENDS = "virtual/libx11 libxft" | 12 | X11DEPENDS = "virtual/libx11 libxft" |
| 13 | DEPENDS = "glib-2.0 fontconfig freetype zlib virtual/libiconv cairo elfutils pango-native harfbuzz" | 13 | DEPENDS = "glib-2.0 fontconfig freetype zlib virtual/libiconv cairo elfutils harfbuzz" |
| 14 | 14 | ||
| 15 | PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" | 15 | PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" |
| 16 | PACKAGECONFIG[x11] = "--with-x,--without-x,${X11DEPENDS}" | 16 | PACKAGECONFIG[x11] = "--with-x,--without-x,${X11DEPENDS}" |
| @@ -22,7 +22,7 @@ PACKAGES_DYNAMIC += "^pango-module-.*" | |||
| 22 | 22 | ||
| 23 | RRECOMMENDS_${PN} = "${@base_contains('DISTRO_FEATURES', 'x11', 'pango-module-basic-x', '', d)} pango-module-basic-fc" | 23 | RRECOMMENDS_${PN} = "${@base_contains('DISTRO_FEATURES', 'x11', 'pango-module-basic-x', '', d)} pango-module-basic-fc" |
| 24 | 24 | ||
| 25 | inherit gnomebase gtk-doc | 25 | inherit gnomebase gtk-doc qemu |
| 26 | # Create a pango-modules package | 26 | # Create a pango-modules package |
| 27 | ALLOW_EMPTY_${BPN}-modules = "1" | 27 | ALLOW_EMPTY_${BPN}-modules = "1" |
| 28 | PACKAGES += "${BPN}-modules" | 28 | PACKAGES += "${BPN}-modules" |
| @@ -49,26 +49,16 @@ if ! [ -e $D${sysconfdir}/pango ] ; then | |||
| 49 | fi | 49 | fi |
| 50 | 50 | ||
| 51 | if [ "x$D" != "x" ]; then | 51 | if [ "x$D" != "x" ]; then |
| 52 | pango-querymodules $(ls -d -1 $D${libdir}/pango/${LIBV}/modules/*.so|\ | 52 | ${@qemu_run_binary(d, '$D','/usr/bin/pango-querymodules')} \ |
| 53 | sed -e "s:$D:$NATIVE_ROOT:g") >\ | 53 | $D${libdir}/pango/${LIBV}/modules/*.so \ |
| 54 | $D${sysconfdir}/pango/${MLPREFIX}pango.modules \ | 54 | > $D${sysconfdir}/pango/${MLPREFIX}pango.modules 2>/dev/null |
| 55 | 2>$D${sysconfdir}/pango/${MLPREFIX}pango.err | ||
| 56 | |||
| 57 | # pango-querymodules always returns 0, so we need to check if pango.err has | ||
| 58 | # anything in it | ||
| 59 | if [ -s $D${sysconfdir}/pango/${MLPREFIX}pango.err ]; then | ||
| 60 | rm $D${sysconfdir}/pango/${MLPREFIX}pango.err | ||
| 61 | exit 1 | ||
| 62 | fi | ||
| 63 | 55 | ||
| 64 | sed -i -e "s:$NATIVE_ROOT::g" $D${sysconfdir}/pango/${MLPREFIX}pango.modules | 56 | [ $? -ne 0 ] && exit 1 |
| 65 | 57 | ||
| 66 | # remove the empty pango.err | 58 | sed -i -e "s:$D::" $D${sysconfdir}/pango/${MLPREFIX}pango.modules |
| 67 | rm $D${sysconfdir}/pango/${MLPREFIX}pango.err | ||
| 68 | 59 | ||
| 69 | exit 0 | 60 | exit 0 |
| 70 | fi | 61 | fi |
| 71 | |||
| 72 | } | 62 | } |
| 73 | 63 | ||
| 74 | do_install_append () { | 64 | do_install_append () { |
diff --git a/meta/recipes-graphics/pango/pango_1.32.5.bb b/meta/recipes-graphics/pango/pango_1.32.5.bb index fe93b5207b..6219940b5f 100644 --- a/meta/recipes-graphics/pango/pango_1.32.5.bb +++ b/meta/recipes-graphics/pango/pango_1.32.5.bb | |||
| @@ -2,7 +2,7 @@ require pango.inc | |||
| 2 | 2 | ||
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7" | 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7" |
| 4 | 4 | ||
| 5 | PR = "r1" | 5 | PR = "r2" |
| 6 | 6 | ||
| 7 | GNOME_COMPRESS_TYPE="xz" | 7 | GNOME_COMPRESS_TYPE="xz" |
| 8 | 8 | ||
