# $Id: Portfile 67633 2010-05-15 09:50:33Z jmr@macports.org $

PortSystem 1.0

name		serf
version		0.6.1
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 14267fa2b49aa3484366e713970384a5 \
		sha1 9c6c77cc3f76495fbbc83302979c3becb4d2671a \
		rmd160 030d2b725995e1223f733642d27a0acf2931be10

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

configure.ccache no

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.type  regex
livecheck.regex $name-(\\d+(?:\\.\\d+)*)
