libaprutil.0-odbc stable port information

Package: libaprutil.0-odbc
Version: 1.3.12
Revision: 1

Depends: <<
libaprutil.0-shlibs (>= %v-%r),
openldap24-shlibs,
unixodbc2-shlibs | unixodbc2-nox-shlibs
<<
BuildDepends: <<
db51-aes | db51,
expat1,
fink (>= 0.24.12),
gdbm3,
libapr.0-dev (>= 1.4.5-1),
libaprutil.0-dev (>= %v-%r),
libiconv-dev,
openldap24-dev,
pkgconfig,
unixodbc2 | unixodbc2-nox
<<
Replaces: libaprutil0-shlibs, libaprutil.0-shlibs (<< 1.3.4-9)
# a transient libaprutil0-shlibs accidentally installed something else at the install_name location

Source: mirror:apache:apr/apr-util-%v.tar.bz2
Source-MD5: 0f671b037ca62751a8a7005578085560

PatchFile: %n.patch
PatchFile-MD5: 6d23b40b503e2a91033803b510f74298
PatchScript: <<
### Fix layout
perl -pi -e 's,/usr/local,%p,g' config.layout
%{default_script}
<<

UseMaxBuildJobs: false
ConfigureParams: <<
--enable-layout=GNU \
--with-apr=%p \
--with-ldap-include=%p/include \
--with-ldap-lib=%p/lib \
--with-ldap \
--with-dbm=db51 \
--with-gdbm=%p \
--with-berkeley-db=%p \
--without-pgsql \
--without-mysql \
--without-sqlite2 \
--without-sqlite3 \
--with-odbc=%p \
--with-expat=%p \
--with-iconv=%p
<<

NoSetLDFLAGS: true

CompileScript: <<
./configure %c
make dbd/apr_dbd_odbc.la
<<

InstallScript: <<
make install-modules prefix=%i APU_MODULES=dbd/apr_dbd_odbc.la
#No need for dependency_libs in .la files if not building static libs
perl -pi -e "s/dependency_libs=.*$/dependency_libs=''/" %i/lib/apr-util-1/*la
<<

DocFiles: CHANGES LICENSE NOTICE README

Description: APRUTIL odbc backend
DescDetail: <<
The mission of the Apache Portable Runtime (APR) project is to create and
maintain software libraries that provide a predictable and consistent
interface to underlying platform-specific implementations. The primary goal
is to provide an API to which software developers may code and be assured
of predictable if not identical behaviour regardless of the platform on
which their software is built, relieving them of the need to code
special-case conditions to work around or take advantage of
platform-specific deficiencies or features.
<<
DescPackaging: <<
Must keep the libaprutil.0-*.info versions in sync with this.

Previously maintained by Justin F. Hallett
<<
License: BSD
Maintainer: Daniel Johnson
Homepage: http://apr.apache.org/

libaprutil.0-odbc stable port .patch

diff -ru apr-util-1.3.10.orig/apr-util.pc.in apr-util-1.3.10/apr-util.pc.in
--- apr-util-1.3.10.orig/apr-util.pc.in 2008-05-23 17:27:59.000000000 -0400
+++ apr-util-1.3.10/apr-util.pc.in 2010-10-15 19:38:27.000000000 -0400
@@ -9,5 +9,5 @@
Version: @APRUTIL_DOTTED_VERSION@
# assume that apr-util requires libapr of same major version
Requires: apr-@APRUTIL_MAJOR_VERSION@
-Libs: -L${libdir} -l@APRUTIL_LIBNAME@ @LDADD_ldap@ @APRUTIL_EXPORT_LIBS@
+Libs: -L${libdir} -l@APRUTIL_LIBNAME@
Cflags: -I${includedir}
diff -ru apr-util-1.3.10.orig/apu-config.in apr-util-1.3.10/apu-config.in
--- apr-util-1.3.10.orig/apu-config.in 2010-09-29 10:22:45.000000000 -0400
+++ apr-util-1.3.10/apu-config.in 2010-10-15 19:38:27.000000000 -0400
@@ -27,7 +27,7 @@
libdir="@libdir@"
includedir="@includedir@"

-LIBS="@APRUTIL_EXPORT_LIBS@"
+LIBS=""
INCLUDES="@APRUTIL_INCLUDES@"
LDFLAGS="@APRUTIL_LDFLAGS@"
LDAP_LIBS="@LDADD_ldap@"
@@ -122,7 +122,7 @@
DBM_LIBS=""
;;
--libs)
- flags="$flags $LDAP_LIBS $DBM_LIBS $LIBS"
+ flags="$flags $LIBS"
;;
--ldap-libs)
flags="$flags $LDAP_LIBS"
diff -ru apr-util-1.3.10.orig/test/Makefile.in apr-util-1.3.10/test/Makefile.in
--- apr-util-1.3.10.orig/test/Makefile.in 2009-11-12 19:16:45.000000000 -0500
+++ apr-util-1.3.10/test/Makefile.in 2010-10-15 19:38:27.000000000 -0400
@@ -23,7 +23,7 @@

TARGETS = $(PROGRAMS)

-LOCAL_LIBS = ../lib@APRUTIL_LIBNAME@@APRUTIL_MAJOR_VERSION@.la
+LOCAL_LIBS = ../lib@APRUTIL_LIBNAME@.la

CLEAN_TARGETS = manyfile.bin testfile.txt data/sqlite*.db

libaprutil.0-odbc _unstable_ port .patch