libapreq2-pm stable port information

Info2: <<
Package: libapreq2-pm%type_pkg[perl]
Version: 2.13
Revision: 1
Architecture: (%type_pkg[perl] = 581) powerpc, (%type_pkg[perl] = 584) powerpc
Distribution: (%type_pkg[perl] = 581) 10.4, (%type_pkg[perl] = 584) 10.4, (%type_pkg[perl] = 586) 10.4, (%type_pkg[perl] = 586) 10.5
DocFiles: CHANGES FAQ.pod INSTALL LICENSE NOTICE PREREQUISITES README STATUS
Description: Perl modules for libapreq2
DescDetail: <<
The perl APIs Apache::Request and Apache::Cookie are the
lightweight mod_perl analogs of the CGI and CGI::Cookie perl modules
of libapreq2.
<<
License: OSI-Approved
Maintainer: Dave Vasilevsky
Homepage: http://httpd.apache.org/apreq/
UpdatePOD: true

Type: perl (5.8.1 5.8.4 5.8.6 5.8.8 5.10.0)

BuildDepends: fink (>= 0.24.12), extutils-xsbuilder-pm, libapreq2 (>= %v-1), mod-perl2-pm%type_pkg[perl]-dev (>= 2.0.3-1001), libapr.0-dev, libaprutil.0-dev, openldap24-dev, libiconv-dev, cyrus-sasl2-dev (>= 2.1.21-1), gdbm3, expat1, db47-aes | db47, apache2-dev (>= 2.0.58-14)
Depends: perl%type_pkg[perl]-core, mod-perl2-pm%type_pkg[perl] (>= 2.0.3-1001), libapreq2-shlibs (>= %v-1), libapr.0-shlibs, libaprutil.0-shlibs

Source: mirror:apache:httpd/libapreq/libapreq2-%v.tar.gz
Source-MD5: c11fb0861aa84dcc6cd0f0798b045eee

PatchFile: %{ni}.patch
PatchFile-MD5: fc0e432d662a7003c48865f0e9278903
PatchScript: <<
#!/bin/sh -ev

%{default_script}

# We only want the glue
perl -i -pe 's,^(SUBDIRS\s*=.*),SUBDIRS = glue,' Makefile.in

# libap2req is already installed, so use it
perl -i -pe 's,\$base_dir/(apreq2-config),$1,' glue/perl/Makefile.PL
<<

CompileScript: <<
#!/bin/sh -ex

# Need full path to perl
PERL=`perl -e 'print $ARGV[0]=~/PERL="(.*?)"/' '%c'`

# try harder to get non-default-arch single-arch
export ARCHFLAGS=""

# Need to pass apxs location, MakeMaker opts
./configure --prefix=%p --enable-perl-glue \
--with-mm-opts='%c' \
--with-apache2-apxs=%p/bin/apxs2 --with-perl="$PERL" \
--disable-dependency-tracking

make
<<
NoPerlTests: true

InstallScript: <<
#!/bin/sh -ev
make install DESTDIR=%d
rm -r %i/bin # He says they've already got one!
/bin/mv %i/share/man %i/lib/perl5/%type_raw[perl]
<<

DescPackaging: <<
Tests disabled because of:
http://www.mail-archive.com/apreq-dev@httpd.apache.org/msg00521.html
<<

<<

libapreq2-pm stable port .patch

diff -Nurd -x'*~' libapreq2-2.13.orig/configure libapreq2-2.13/configure
--- libapreq2-2.13.orig/configure 2010-11-25 14:19:01.000000000 -0500
+++ libapreq2-2.13/configure 2011-09-02 07:38:58.000000000 -0400
@@ -20362,7 +20362,7 @@
if test "x$PERL_GLUE" != "xno"; then
{ echo "$as_me:$LINENO: checking for perl" >&5
echo $ECHO_N "checking for perl... $ECHO_C" >&6; }
- if test -z "`$prereq_check perl $PERL`"; then
+ if test -z "`$prereq_check perl "$PERL"`"; then
{ { echo "$as_me:$LINENO: error: Bad perl version" >&5
echo "$as_me: error: Bad perl version" >&2;}
{ (exit 1); exit 1; }; }

libapreq2-pm _unstable_ port .patch