# $Id: Portfile 55091 2009-08-06 20:11:29Z dluke@macports.org $

PortSystem	1.0

name		apr
version		1.3.8
categories	devel
maintainers	geeklair.net:dluke
platforms	darwin
description	The apache group's portability library

long_description	The Apache Portable Runtime is a library of C data \
			structures and routines, forming a system portability \
			layer that covers as many operating systems as \
			possible, including Unices, Win32, BeOS, and OS/2.

homepage	http://apr.apache.org/
master_sites	apache:apr

use_bzip2	yes
checksums	md5	3c7e3a39ae3d3573f49cb74e2dbf87a2 \
		sha1	a87baf4c81279940df039bffa1e62a16cf094c29 \
		rmd160	6a027e36104f34c8df63d02e05c06cf5b4885aed

use_parallel_build	yes
configure.env   ac_cv_prog_AWK=awk lt_cv_path_SED=sed
configure.args	--with-installbuilddir=${prefix}/share/apr-1/build

test.run	yes
test.target	check
test.env	DYLD_LIBRARY_PATH=${worksrcpath}/.libs
pre-test	{
	use_parallel_build	no
}

livecheck.check regex
livecheck.url   http://apache.org/dist/apr/
livecheck.regex {<a href="#apr">APR (\d+(?:\.\d+)*) is the latest available version</a>}
