# $Id: Portfile,v 1.6 2005/06/25 15:18:33 mww Exp $

PortSystem	1.0
name		lifelines
version		3.0.46.1
categories	genealogy
maintainers	brent@nordist.net
description	Genealogy software
homepage	http://${name}.sourceforge.net/
platforms	darwin

long_description \
	LifeLines is second generation, open source genealogy software. \
	It provides GEDCOM interoperability and powerful scripting, with \
	a curses-based UI.

master_sites			sourceforge

checksums	md5 3bcccdf4407052d504b1dd1ad7337b15

depends_lib	lib:libiconv.2:libiconv lib:libintl.3:gettext

configure.args	--with-libintl-prefix=${prefix} \
		--with-libiconv-prefix=${prefix} \
		--without-included-gettext

post-destroot {
	xinstall -W ${worksrcpath}/docs -m 644 btedit.1 dbverify.1 llines.1 \
		${destroot}${prefix}/share/man/man1/
	system "cd ${destroot}${prefix}/share/doc/${name}/ && \
		rm btedit.1 dbverify.1 llines.1"
	xinstall -d ${destroot}${prefix}/share/${name}/st
	system "mv ${destroot}${prefix}/share/${name}/st_*.ll \
		${destroot}${prefix}/share/${name}/st"
	xinstall -W ${worksrcpath}/reports -m 644 CREDIT README tree.tex \
		${destroot}${prefix}/share/${name}/
	system "cd ${destroot}${prefix}/share/${name}/ && \
		rm ll-*.html ll-*.pdf ll-*.txt listops.jpg"
}
