# $Id: Portfile 33894 2008-02-07 02:45:08Z narf_tm@macports.org $

PortSystem            1.0
PortGroup             perl5 1.0

perl5.setup           libapreq2 2.08 Apache2
maintainers           narf_tm openmaintainer
description           Methods for dealing with client request data
long_description      Apache::Request is a subclass of the Apache class, \
                      which adds methods for parsing GET requests and POST \
                      requests where Content-type is one of \
                      application/x-www-form-urlencoded or \
                      multipart/form-data.

platforms             darwin

checksums             md5 9fb3deec448f74c455d4ffc13846ea9f

depends_lib-append    port:apache2 \
                      port:mod_perl2 \
                      port:p5-extutils-xsbuilder

configure.args        --with-apache2-apxs=${prefix}/apache2/bin/apxs --with-mm-opts="${configure.args}"

destroot.pre_args     install

## stolen from perl5 group code
post-destroot         {
                          foreach packlist [exec find ${destroot} -name .packlist] {
                              ui_info "Fixing packlist ${packlist}"
                              reinplace "s|${destroot}||" ${packlist}
                          }
                          foreach badfile [exec find ${destroot} -name perllocal.pod] {
                              ui_info "Removing ${badfile}"
                              file delete ${badfile}
                          }
                      }
