# $Id: Portfile 72120 2010-10-04 08:23:06Z afb@macports.org $

PortSystem 1.0

name		gettext-lint
version		0.4
revision	1
categories	devel
platforms	darwin
maintainers	afb openmaintainer
description	gettext lint tools
long_description	\
	The gettext lint tools are a collection of tools for checking the \
	validity, consistency, and spelling of PO and POT files. \
	An experimental glossary building tool is also included.

homepage	http://gettext-lint.sourceforge.net/
master_sites	sourceforge:gettext-lint
checksums	md5 9db81f7c3df06147ba27ee331222e057

depends_lib	port:automake port:autoconf port:python25

patchfiles	patch-python.diff

post-extract	{ delete ${worksrcpath}/INSTALL ${worksrcpath}/install-sh ${worksrcpath}/missing }
pre-patch	{ reinplace "s|\r||g" ${worksrcpath}/src/POFileClean.in }
pre-configure	{ system "cd ${worksrcpath} && aclocal && automake --add-missing --copy && autoconf" }

configure.env	PYTHON=${prefix}/bin/python2.5
