xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-gnome/recipes-gnome/rest/rest_0.8.1.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1SUMMARY = "library to access web services that claim to be "RESTful""
2HOMEPAGE = "https://wiki.gnome.org/Projects/Librest"
3LICENSE = "LGPL-2.1-only"
4LIC_FILES_CHKSUM = "file://COPYING;md5=2d5025d4aa3495befef8f17206a5b0a1"
5
6GNOMEBASEBUILDCLASS = "autotools"
7
8DEPENDS = " \
9    libxml2-native \
10    glib-2.0-native \
11    glib-2.0 \
12    libsoup-2.4 \
13"
14
15inherit gnomebase gobject-introspection gtk-doc vala
16
17PV .= "+git${SRCPV}"
18SRCREV = "7b46065dea860ef09861f4d70124728b8270c8b7"
19SRC_URI = "git://gitlab.gnome.org/GNOME/librest;protocol=https;branch=master \
20    file://0001-Use-GUri-instead-of-SoupURI.patch \
21    file://0002-Port-to-libsoup3.patch \
22"
23S = "${WORKDIR}/git"
24
25do_configure:prepend() {
26    # rest expects introspection.m4 at custom location (see aclocal.m4).
27    cp -f ${STAGING_DIR_TARGET}/${datadir}/aclocal/introspection.m4 ${S}/build
28}
29
30do_compile:prepend() {
31    export GIR_EXTRA_LIBS_PATH="${B}/rest/.libs"
32}
33
34