<pre style='margin:0'>
Marius Schamschula (Schamschula) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/e8cea3de463905056d272e1437f9d15733816597">https://github.com/macports/macports-ports/commit/e8cea3de463905056d272e1437f9d15733816597</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit e8cea3de463905056d272e1437f9d15733816597
</span>Author: Marius Schamschula <mps@macports.org>
AuthorDate: Sun Oct 15 13:05:27 2017 -0500
<span style='display:block; white-space:pre;color:#404040;'> p5-libapreq2: add apache22 variant
</span>---
perl/p5-libapreq2/Portfile | 22 +++++++++++++++-------
1 file changed, 15 insertions(+), 7 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/perl/p5-libapreq2/Portfile b/perl/p5-libapreq2/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 011d40c..c05db57 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/perl/p5-libapreq2/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/perl/p5-libapreq2/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -9,7 +9,7 @@ PortGroup active_variants 1.1
</span> # - https://trac.macports.org/ticket/42582
perl5.branches 5.24 5.26
perl5.setup libapreq2 2.13 Apache2
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 5
</span> license Apache-2
maintainers nomaintainer
description Methods for dealing with client request data
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,26 +25,34 @@ platforms darwin
</span> checksums rmd160 8d7d2573624193b6dfbbe354b3771012257c1578 \
sha256 5731e6833b32d88e4a5c690e45ddf20fcf969ce3da666c5627d775e92da0cf6e
<span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[variant_isset apache22]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set apachectl ${prefix}/apache2/bin/apachectl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set apxs ${prefix}/apache22/bin/apxs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set apachectl ${prefix}/sbin/apachectl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set apxs ${prefix}/bin/apxs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> if {${perl5.major} != ""} {
depends_lib-append port:apache2 \
port:mod_perl2 \
port:p${perl5.major}-extutils-xsbuilder
<span style='display:block; white-space:pre;background:#e0ffe0;'>+variant apache22 description "use apache22 instead of apache2" {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-replace port:apache2 port:apache22
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.violate_mtree yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> set required_variant [string map {. _} "perl${perl5.major}"]
require_active_variants \
mod_perl2 $required_variant
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set apxs ${prefix}/apache2/bin/apxs
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> configure.args --with-apache2-apxs=${apxs} \
--with-mm-opts="${configure.args}"
destroot.pre_args install
<span style='display:block; white-space:pre;background:#ffe0e0;'>-destroot.violate_mtree \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> ## stolen from perl5 group code
post-destroot {
foreach packlist [exec find ${destroot} -name .packlist] {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -64,6 +72,6 @@ If this your first install, you might want to enable apreq in apache:
</span>
And then relaunch apache:
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ${prefix}/apache2/bin/apachectl restart
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${apachectl} restart
</span> "
}
</pre><pre style='margin:0'>
</pre>