# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 65821 2010-04-01 12:47:18Z rmsfisher@macports.org $

PortSystem      1.0
PortGroup       archcheck 1.0

name            libsoup
version         2.28.2
revision        1
set branch      [join [lrange [split ${version} .] 0 1] .]
categories      gnome net
platforms       darwin
maintainers     devans openmaintainer
description     Soup is an HTTP library implementation in C.

long_description \
    Soup provides a queued asynchronous callback-based \
    mechanism for sending and servicing SOAP requests \
    and a WSDL (Web Service Definition Language) for C \
    compilers which generates client stubs and server \
    skeletons for easily calling and implementing SOAP \
    methods.

homepage        http://www.gnome.org/
master_sites    gnome:sources/${name}/${branch}/
use_bzip2       yes

checksums           md5     31d7ad416005eed4b78f07ac01b6b9f0 \
                    sha1    91031a351ba260906a86e9f7155234dec524bff0 \
                    rmd160  8648fe507511f7c1c83b164ac0f5c86b995650f9

depends_build   port:pkgconfig

depends_lib     port:libxml2 \
                port:gnutls \
                port:sqlite3 \
                port:gconf \
                port:libproxy \
                port:gnome-keyring

archcheck.files \
    lib/libgcrypt.dylib \
    lib/libproxy.dylib \
    lib/libsqlite3.dylib \
    lib/libxml2.dylib

test.run        yes
test.target     check

variant no_gnome description "Disable GNOME support" {
    depends_lib-delete \
        port:gconf \
        port:gnome-keyring

    configure.args-append \
        --without-gnome
}

livecheck.type  regex
livecheck.url   ftp://ftp.gnome.org/pub/gnome/sources/$name/$branch/
livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
