# -*- 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 86964 2011-11-07 16:00:58Z ryandesign@macports.org $

PortSystem          1.0

name                snownews
version             1.5.12
platforms           darwin
categories          net www
maintainers         nomaintainer

description         Text mode RSS newsreader for Linux and Unix.

long_description    Snownews is a text mode RSS/RDF newsreader. It supports \
                    RSS 1.0 feeds that comply with the W3C RDF specification \
                    and also supports Radio Userland's RSS 0.91 and 2.0 \
                    versions.

homepage            http://kiza.kcore.de/software/snownews/
master_sites        ${homepage}download/

checksums           rmd160  dbe9c6b88e77ce37bb23e4d3ddc8d63f8bd66151 \
                    sha256  26dd96e9345d9cbc1c0c9470417080dd0c3eb31e7ea944f78f3302d7060ecb90

depends_lib         port:libxml2 \
                    port:gettext \
                    port:p5.12-xml-libxml

post-patch {
    # We want to use perl from MacPorts.
    reinplace s|/usr/bin/perl|${prefix}/bin/perl5.12| ${worksrcpath}/opml2snow
}

build.args          EXTRA_CFLAGS="-I${prefix}/include" \
                    EXTRA_LDFLAGS="-L${prefix}/lib -lintl" \
                    PREFIX=${prefix}

destroot.args       PREFIX=${prefix}
