PortSystem 1.0
PortGroup           github 1.0

github.setup        andy-shev LogJam 4.6.2 v
revision            0
checksums           rmd160  050d8913ee08380410679eee245557fc1fae738d \
                    sha256  6735e98daaa0711f4723865866e89847c9ae2bd20853beebccd8d5056df5ee84 \
                    size    789333

name		logjam
categories	net
license		GPL-2+
maintainers	nomaintainer
description	GTK2 client for livejournal.com
platforms	darwin

long_description LogJam is a GTK2 client for LiveJournal.com.

homepage            https://andy-shev.github.io/LogJam/
master_sites        ${homepage}download/
distname            ${name}-${version}
use_bzip2           yes

depends_build       port:intltool \
                    port:pkgconfig

depends_lib         port:curl \
                    port:dbus \
                    port:dbus-glib \
                    port:gtk2 \
                    port:libxml2 \
                    port:sqlite3

post-patch {
    # Don't use local outdated intltool.m4; use intltool port's version.
    delete ${worksrcpath}/m4/intltool.m4

    # Missing files required by autoreconf.
    touch ${worksrcpath}/protocol/liblivejournal/AUTHORS \
        ${worksrcpath}/protocol/liblivejournal/NEWS \
        ${worksrcpath}/AUTHORS ${worksrcpath}/NEWS ${worksrcpath}/README
}

# autoreconf to reconfigure for intltool
use_autoreconf      yes
autoreconf.args     -fvi

configure.args	--without-gtkspell --without-xmms --without-gtkhtml \
                    --without-libsoup \
                    --without-librsvg \
                    --with-sqlite3
