libserf1 stable port information

Package: libserf1
Version: 1.0.3
Revision: 1
Description: High-performance HTTP client library
License: BSD
Maintainer: Daniel Johnson

# Dependencies:
Depends: %N-shlibs (= %v-%r)
BuildDepends: fink (>= 0.24.12-1), libapr.0-dev (>= 1.4.2-1), libaprutil.0-dev (>= 1.3.10-2), openssl100-dev (>= 1.0.1-1)
BuildDependsOnly: true

# Unpack Phase:
Source: http://serf.googlecode.com/files/serf-%v.tar.bz2
Source-MD5: d612ef59c89c19957e5c2a16c68fd4d3

# Needed to make tests work.
PatchScript: <<
perl -pi -e 's/-static//' Makefile.in
perl -pi -e 's/apr_pollset_create\(&pollset, 32, pool, 0\)/apr_pollset_create_ex(&pollset, 32, pool, 0, APR_POLLSET_SELECT)/' test/server/test_server.c
<<

# Compile Phase:
SetLDFLAGS: -Wl,-dead_strip_dylibs
ConfigureParams: <<
--with-apr=%p/bin/apr-1-config \
--with-apr-util=%p/bin/apu-1-config \
--disable-dependency-tracking \
--disable-static
<<

InfoTest: <<
TestScript: make check || exit 2
<<

# Install Phase:
SplitOff: <<
Package: %N-shlibs
Depends: libapr.0-shlibs (>= 1.4.2-1), libaprutil.0-shlibs (>= 1.3.10-2), openssl100-shlibs (>= 1.0.1-1)
Replaces: %N (<= 0.7.0-2)
Files: lib/libserf-1.*.dylib
Shlibs: %p/lib/libserf-1.0.dylib 1.0.0 %n (>= 1.0.0-1)
DocFiles: LICENSE NOTICE README
<<
DocFiles: CHANGES design-guide.txt LICENSE NOTICE README

# Additional Info
DescDetail: <<
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.
<<
DescPackaging: <<
Note that libserf0 and libserf1 can coexist since they have no files in common.

Previously maintained by Christian Schaffner
<<
Homepage: http://code.google.com/p/serf/