# $Id: Portfile 53911 2009-07-16 14:38:14Z blair@macports.org $

PortSystem 1.0

name		serf
version		0.3.0
categories	www
maintainers	blair
description	C-based HTTP client library

long_description	The serf library is a C-based HTTP client library \
			built upon the Apache Portable Runtime (APR) \
			library.  It multiplexes connections, running the \
			read/write communication asynchronously.  Memory \
			copies and transformations are kept to a minimum to \
			provide high performance operation.

homepage	http://code.google.com/p/serf/
master_sites	http://serf.googlecode.com/files/
use_bzip2	yes
use_parallel_build	yes
checksums	md5 d5c7f41d1c9f1589b98affc1fa029982 \
		sha1 7f80479d262ae0012dcd0bc20d0ef09c945d58c5 \
		rmd160 fdab06e71b459c2a616e5cd83ec40152c80493d8

platforms	darwin

depends_lib	port:apr port:apr-util port:openssl

configure.args	--with-apr=${prefix}/bin/apr-1-config \
		--with-apr-util=${prefix}/bin/apu-1-config

test.run	yes
test.target	check

post-destroot {
	set sharedir ${destroot}${prefix}/share
	set docdir ${sharedir}/doc/${name}

	xinstall -m 755 -d ${docdir}

	foreach f {CHANGES LICENSE NOTICE README} {
		file copy ${worksrcpath}/${f} ${docdir}
	}
}

livecheck.check regex
livecheck.regex $name-(\\d+(?:\\.\\d+)*)
