# $Id: Portfile,v 1.6 2004/01/29 15:48:23 fenner Exp $

PortSystem 1.0

name                libapreq-perl
version             1.1
categories          www
description         Perl Libraries for Apache::Request and Apache::Cookie
platforms           darwin
maintainers         mike+apacheport@gene-hacker.net
distname            libapreq-${version}
dist_subdir         libapreq
checksums           md5 99471b32f72c43dfd5d2e3078d44c1fc
master_sites        apache:httpd/libapreq
depends_lib         bin:perl5\.8\..:perl5.8 lib:libapreq.1.0.1:libapreq
configure.cmd       perl Makefile.PL

destroot.args        INSTALLPRIVLIB=${destroot}${prefix}/lib/perl5/5.8.0 \
                    INSTALLSITELIB=${destroot}${prefix}/lib/perl5/site_perl/5.8.0 \
                    INSTALLARCHLIB=${destroot}${prefix}/lib/perl5/5.8.0/darwin \
                    INSTALLSITEARCH=${destroot}${prefix}/lib/perl5/site_perl/5.8.0/darwin \
                    INSTALLBIN=${destroot}${prefix}/bin \
                    INSTALLSITEBIN=${destroot}${prefix}/bin \
                    INSTALLSCRIPT=${destroot}${prefix}/bin \
                    INSTALLMAN1DIR=${destroot}${prefix}/share/man/man1 \
                    INSTALLMAN3DIR=${destroot}${prefix}/share/man/man3

post-destroot        { cd ${destroot}${prefix}/lib/perl5/site_perl/5.8.0/darwin/auto/libapreq/
                      system "cat .packlist | sed s#${destroot}/##g >.packlist.new"
                      system "mv .packlist.new .packlist"
                    }


long_description      Perl API to the Apache Request object and Apache::Cookie, \
split off from the C API because of OS X build peculiarities.
