# $Id: Portfile,v 1.3 2005/04/21 15:57:57 jberry Exp $

PortSystem 1.0
name             nzbget
version          0.2.0
categories       net
maintainers      toby@opendarwin.org
description      binary newsgrabber
long_description \
	A command-line based binary newsgrabber for Linux, Unix \
	and Mac OS X supporting nzb-files.
homepage         http://sourceforge.net/projects/nzbget/
platforms        darwin
master_sites     sourceforge
patchfiles       patch-Coordinator.cpp patch-NCursesFrontend.cpp patch-NZBQueue.cpp patch-NZBQueueCoordinator.cpp patch-nzbget.cpp
checksums        md5 4e51fb8461b651bf14b1b3f52003a43e

depends_lib      port:libxml2

configure.args   --with-libxml2-includes=${prefix}/include/libxml2

destroot {
	xinstall ${worksrcpath}/nzbget ${destroot}${prefix}/bin/nzbget

	file mkdir ${destroot}${prefix}/share/doc/nzbget
	foreach file {CHANGELOG COPYING README TODO nzbget.cfg.example} {
		xinstall ${worksrcpath}/${file} ${destroot}${prefix}/share/doc/nzbget
	}
}
