# -*- 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
# $Id: Portfile 113485 2013-11-17 16:07:08Z ryandesign@macports.org $

PortSystem          1.0

name                pan2
version             0.139
categories          news
license             GPL-2
platforms           darwin
maintainers         nomaintainer

description         News reader for gtk2

long_description    Pan2 is a newsreader for GTK2/GNOME2 that is based on \
                    the Agent newsreader for Windows OSes.

homepage            http://pan.rebelbase.com/
master_sites        http://pan.rebelbase.com/download/releases/${version}/source/

distname            pan-${version}
use_bzip2           yes

checksums           rmd160  e0e2963b2d11b362201639ca755ad9ae43581c2f \
                    sha256  bf5f320f997f582d7ac823e3e854393307161a92e7014d2135e6e2674d144bb9

depends_build       port:intltool \
                    port:pkgconfig

depends_lib         port:pcre \
                    port:gmime \
                    port:gtk2 \
                    port:gtkspell2 \
                    port:libiconv

patchfiles          patch-pan-gui-gui.cc.diff

configure.args      --disable-silent-rules

configure.ldflags-append    -liconv

livecheck.type      regex
livecheck.url       http://pan.rebelbase.com/download/releases/
livecheck.regex     {>([0-9.]+)/<}
