# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortGroup active_variants 1.1
perl5.setup libapreq2 2.13 Apache2
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 \
homepage https://metacpan.org/release/${perl5.module}
checksums rmd160 8d7d2573624193b6dfbbe354b3771012257c1578 \
sha256 5731e6833b32d88e4a5c690e45ddf20fcf969ce3da666c5627d775e92da0cf6e
if {[variant_isset apache22]} {
set apachectl ${prefix}/apache2/bin/apachectl
set apxs ${prefix}/apache22/bin/apxs
set mdir ${prefix}/apache22/modules/
set apachectl ${prefix}/sbin/apachectl
set apxs ${prefix}/bin/apxs
set mdir ${prefix}/lib/apache2/modules/
if {${perl5.major} != ""} {
depends_lib-append port:apache2 \
port:p${perl5.major}-extutils-xsbuilder
variant apache22 description "use apache22 instead of apache2" {
depends_lib-replace port:apache2 port:apache22
destroot.violate_mtree yes
if {![variant_isset apache22]} {
patch-apache24-use-mutex-not-lockfile.diff
set required_variant [string map {. _} "perl${perl5.major}"]
require_active_variants \
mod_perl2 $required_variant
configure.args --with-apache2-apxs=${apxs} \
--with-mm-opts="${configure.args}"
destroot.pre_args install
## stolen from perl5 group code
foreach packlist [exec find ${destroot} -name .packlist] {
ui_info "Fixing packlist ${packlist}"