# $Id: Portfile,v 1.1 2005/10/29 19:55:35 mww Exp $

PortSystem 1.0

name			sgrep
version			0.99
categories		textproc
platforms		darwin
maintainers		mww@opendarwin.org
description		structured grep is a tool for searching SGML, XML and HTML files
long_description	sgrep (structured grep) is a tool for searching and \
			indexing text, SGML, XML and HTML files and filtering text streams \
			using structural criteria.

homepage		http://www.cs.helsinki.fi/u/jjaakkol/sgrep.html
master_sites	ftp://ftp.cs.helsinki.fi/pub/Software/Local/Sgrep/ freebsd
checksums		md5 af09a90c4f1929bfae4818c8962a8907

use_configure	no

build.args		BINDIR=${prefix}/bin LIBDIR=${prefix}/lib \
				MANFILE=${prefix}/share/man/man1/sgrep.1 \
				RCFILE=${prefix}/etc/sgreprc

destroot.destdir	BINDIR=${destroot}${prefix}/bin \
				LIBDIR=${destroot}${prefix}/lib \
				MANFILE=${destroot}${prefix}/share/man/man1/sgrep.1 \
				RCFILE=${destroot}${prefix}/etc/sgreprc
post-destroot {
	xinstall -m 644 ${worksrcpath}/sample.sgreprc \
		${destroot}${prefix}/etc/sgreprc.sample
}

