# $Id: Portfile 59973 2009-10-28 07:05:26Z pguyot@kallisys.net $

PortSystem 1.0

name				snownews
version				1.5.11
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.
platforms			darwin
categories			net www
maintainers			nomaintainer
homepage			http://kiza.kcore.de/software/snownews/
master_sites		${homepage}/download/
checksums			md5 550e32d9c4a99608840fb09600fbe74d \
					sha1 64ed1c648ed50cada294bc503e100496a7dd9f09 \
					rmd160 ccb1e021ad25ef2f4f420fe44f1c81833f97ad88
depends_lib			port:libxml2 port:gettext port:p5-xml-libxml

post-extract {
	# We want to use perl from MacPorts.
	reinplace s|/usr/bin/perl|${prefix}/bin/perl| ${worksrcpath}/opml2snow
}
build.args			EXTRA_CFLAGS="-I${prefix}/include" \
					EXTRA_LDFLAGS="-L${prefix}/lib -lintl" \
					PREFIX=${prefix}
destroot.args		PREFIX=${prefix}
