# $Id: Portfile 77496 2011-04-01 12:36:24Z rmstonecipher@macports.org $

PortSystem 1.0

name			autogen
version			5.11.5
categories		devel
platforms		darwin
maintainers		mww
description		tool to simplify the creation and maintenance of programs
long_description	AutoGen is a tool designed to simplify the creation \
				and maintenance of programs that contain large amounts \
				of repetitious text. It is especially valuable in \
				programs that have several blocks of text that must \
				be kept synchronized.

homepage		http://autogen.sourceforge.net/
master_sites		sourceforge gnu:autogen:rel5.9 
checksums           md5     51c841eab6114de22b55f77a1c4f85b8 \
                    sha1    f0950b57095cc6802fdd7f9d217289c99ec0bdb4 \
                    rmd160  7cc668ef8243cd219307ef01386766ce36419554
use_bzip2		yes

depends_lib		port:guile port:libiconv port:libxml2 port:zlib port:coreutils

configure.args	--mandir=${prefix}/share/man \
				--infodir=${prefix}/share/info

patchfiles      patch_doc_auto-opts.tpl.diff
post-patch {
    reinplace "s|%%CONFIGURE.CC%%|${configure.cc}|g" ${worksrcpath}/doc/auto-opts.tpl
}

test.run		yes
test.target		check

platform darwin 8 {
	configure.cppflags-append	"-D_WINT_T"
}

livecheck.type  regex
livecheck.url   http://ftp.gnu.org/gnu/${name}/?C=M&O=D
livecheck.regex	rel(\[0-9\]+.\[0-9\]+.\[0-9\]+)
