# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0

github.setup        andy-shev LogJam 4.6.2 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
checksums           rmd160  050d8913ee08380410679eee245557fc1fae738d \
                    sha256  6735e98daaa0711f4723865866e89847c9ae2bd20853beebccd8d5056df5ee84 \
                    size    789333

name                logjam
categories          net
maintainers         nomaintainer
license             GPL-2+

description         GTK2 client for livejournal.com

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 \
                    path:lib/pkgconfig/gtk+-2.0.pc: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-gtkhtml \
                    --without-gtkspell \
                    --without-libsoup \
                    --without-librsvg \
                    --without-xmms \
                    --with-sqlite3
