# Template file for 'libsoup'
pkgname=libsoup
version=2.36.1
distfiles="${GNOME_SITE}/$pkgname/2.36/$pkgname-$version.tar.xz"
build_style=gnu-configure
revision=1
short_desc="HTTP library implementation in C"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.gnome.org"
license="LGPL-2.1"
checksum=73722407ff5fa7fcff2dae384aa04d85e7900c0e3fed46389f1289a1409e1f65
long_desc="
 Libsoup is an HTTP library implementation in C. It was originally part
 of a SOAP (Simple Object Access Protocol) implementation called Soup, but
 the SOAP and non-SOAP parts have now been split into separate packages.

 libsoup uses the Glib main loop and is designed to work well with GTK
 applications. This enables GNOME applications to access HTTP servers
 on the network in a completely asynchronous fashion, very similar to
 the Gtk+ programming model (a synchronous operation mode is also
 supported for those who want it).

 Features:
   * Completely Asynchronous
   * Connection cache
   * HTTP chunked transfer support
   * HTTP, SOCKS4, and SOCKS5 authenticated proxy support
   * SSL Support using OpenSSL or GnuTLS
   * Client support for Digest, NTLM, and Basic authentication
   * HTTP server
   * Server support for Digest and Basic authentication"

subpackages="$pkgname-gnome $pkgname-gnome-devel $pkgname-devel"

Add_dependency run libgcrypt
Add_dependency run libgpg-error
Add_dependency run gnutls

Add_dependency build pkg-config
Add_dependency build intltool
Add_dependency build gobject-introspection
Add_dependency build glib-devel
Add_dependency build libgcrypt-devel
Add_dependency build libgpg-error-devel
Add_dependency build libxml2-devel
Add_dependency build gnutls-devel
Add_dependency build sqlite-devel
Add_dependency build libgnome-keyring-devel

Add_dependency full glib-networking