summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb')
-rw-r--r--meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb25
1 files changed, 23 insertions, 2 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb
index 966a851f76..9854585ca5 100644
--- a/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb
+++ b/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb
@@ -12,6 +12,8 @@ SHRT_VER = "${@d.getVar('PV',1).split('.')[0]}.${@d.getVar('PV',1).split('.')[1]
12SRC_URI = "${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.xz \ 12SRC_URI = "${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.xz \
13 file://configure-libtool.patch \ 13 file://configure-libtool.patch \
14 file://glib-2.0_fix_for_x32.patch \ 14 file://glib-2.0_fix_for_x32.patch \
15 file://Makefile-ptest.patch \
16 file://run-ptest \
15 " 17 "
16SRC_URI[md5sum] = "a4ca31e258273c3761e3de2edd607661" 18SRC_URI[md5sum] = "a4ca31e258273c3761e3de2edd607661"
17SRC_URI[sha256sum] = "855fcbf87cb93065b488358e351774d8a39177281023bae58c286f41612658a7" 19SRC_URI[sha256sum] = "855fcbf87cb93065b488358e351774d8a39177281023bae58c286f41612658a7"
@@ -19,6 +21,24 @@ SRC_URI[sha256sum] = "855fcbf87cb93065b488358e351774d8a39177281023bae58c286f4161
19SRC_URI_append_class-native = " file://glib-gettextize-dir.patch" 21SRC_URI_append_class-native = " file://glib-gettextize-dir.patch"
20BBCLASSEXTEND = "native nativesdk" 22BBCLASSEXTEND = "native nativesdk"
21 23
24RDEPENDS_${PN}-ptest += "\
25 eglibc-gconv-utf-16 \
26 eglibc-charmap-utf-8 \
27 eglibc-gconv-cp1255 \
28 eglibc-charmap-cp1255 \
29 eglibc-gconv-utf-32 \
30 eglibc-gconv-utf-7 \
31 eglibc-charmap-invariant \
32 eglibc-localedata-translit-cjk-variants \
33 tzdata \
34 tzdata-americas \
35 tzdata-asia \
36 tzdata-europe \
37 tzdata-posix \
38 python-pygobject \
39 python-dbus \
40 "
41
22do_configure_prepend() { 42do_configure_prepend() {
23 sed -i -e '1s,#!.*,#!${USRBINPATH}/env python,' ${S}/gio/gdbus-2.0/codegen/gdbus-codegen.in 43 sed -i -e '1s,#!.*,#!${USRBINPATH}/env python,' ${S}/gio/gdbus-2.0/codegen/gdbus-codegen.in
24} 44}
@@ -28,12 +48,13 @@ do_install_append() {
28 rm -f ${D}${libdir}/gdbus-2.0/codegen/*.pyc 48 rm -f ${D}${libdir}/gdbus-2.0/codegen/*.pyc
29 rm -f ${D}${libdir}/gdbus-2.0/codegen/*.pyo 49 rm -f ${D}${libdir}/gdbus-2.0/codegen/*.pyo
30 # and empty dirs 50 # and empty dirs
31 rmdir ${D}${libdir}/gio/modules/ 51 rm -rf ${D}${libdir}/gio
32 rmdir ${D}${libdir}/gio/
33 52
34 # Some distros have both /bin/perl and /usr/bin/perl, but we set perl location 53 # Some distros have both /bin/perl and /usr/bin/perl, but we set perl location
35 # for target as /usr/bin/perl, so fix it to /usr/bin/perl. 54 # for target as /usr/bin/perl, so fix it to /usr/bin/perl.
36 if [ -f ${D}${bindir}/glib-mkenums ]; then 55 if [ -f ${D}${bindir}/glib-mkenums ]; then
37 sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/env perl,' ${D}${bindir}/glib-mkenums 56 sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/env perl,' ${D}${bindir}/glib-mkenums
38 fi 57 fi
58
59 ptest_do_install
39} 60}