# -*- 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 118451 2014-04-02 19:13:52Z devans@macports.org $

PortSystem      1.0

name            libepc
version         0.4.4
revision        1
license         LGPL-2.1+
set branch      [join [lrange [split ${version} .] 0 1] .]
maintainers     devans openmaintainer
categories      gnome
platforms       darwin
description     The Easy Publish and Consume Library

long_description \
                The Easy Publish and Consume library provides an easy method to \
                publish data per HTTPS, announce that information via DNS-SD, \
                find that information, and finally consume it.  You can use this \
                library as a key/value store published to the network, using \
                encryption, authentication and service discovery.

homepage        https://wiki.gnome.org/Projects/libepc
master_sites    gnome:sources/${name}/${branch}/
use_xz          yes

checksums       rmd160  21eb62f94467c880c98a6717c64464a209f898d2 \
                sha256  4f98fc306c0f9d361e1381484744246efd084053732924741078270c49afc33b

depends_build   port:pkgconfig \
                port:intltool \
                port:gtk-doc \
                port:gnome-common \
                port:autoconf \
                port:automake \
                port:libtool

depends_lib     port:gtk3 \
                port:avahi \
                port:libsoup \
                port:ossp-uuid

patchfiles      patch-configure.ac.diff \
                patch-Makefile.am.diff

# use upstream autogen.sh to reconfigure with our intltool.m4
                    
post-patch {
    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
}

configure.cmd   ./autogen.sh

livecheck.type  gnome
