# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $

PortSystem 1.0

name				snownews
version				1.5.9
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			kallisys.net:pguyot
homepage			http://kiza.kcore.de/software/snownews/
master_sites		${homepage}/download/
checksums			md5 0f3dca85a36386a72033b83a202c559e \
					sha1 a3c778272c1ae599e11f283fab1bd267ca3af011 \
					rmd160 478c8b60e3bfb1f0eb13268c6deb2a258831aa6b
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}
