source: trunk/dports/perl/p5-libapreq2/Portfile

Last change on this file was 154393, checked in by mojca@…, 13 months ago

p5-*: remove subports for perl5.22 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# -*- 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
2# $Id: Portfile 154393 2016-10-28 22:10:07Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6PortGroup           active_variants 1.1
7
8# TODO:
9# - subports conflict with each other
10# - https://trac.macports.org/ticket/42582
11perl5.branches      5.24
12perl5.setup         libapreq2 2.13 Apache2
13revision            4
14license             Apache-2
15maintainers         nomaintainer
16description         Methods for dealing with client request data
17long_description    Apache::Request is a subclass of the Apache class, \
18                    which adds methods for parsing GET requests and POST \
19                    requests where Content-type is one of \
20                    application/x-www-form-urlencoded or \
21                    multipart/form-data.
22
23homepage            https://metacpan.org/release/${perl5.module}
24platforms           darwin
25
26checksums           rmd160  8d7d2573624193b6dfbbe354b3771012257c1578 \
27                    sha256  5731e6833b32d88e4a5c690e45ddf20fcf969ce3da666c5627d775e92da0cf6e
28
29if {${perl5.major} != ""} {
30depends_lib-append  port:apache2 \
31                    port:mod_perl2 \
32                    port:p${perl5.major}-extutils-xsbuilder
33
34require_active_variants \
35                    mod_perl2 ${perl5.variant}
36require_active_variants \
37                    perl5 ${perl5.variant}
38
39set apxs            ${prefix}/apache2/bin/apxs
40
41configure.args      --with-apache2-apxs=${apxs} \
42                    --with-mm-opts="${configure.args}"
43
44destroot.pre_args   install
45
46destroot.violate_mtree \
47                    yes
48
49## stolen from perl5 group code
50post-destroot {
51    foreach packlist [exec find ${destroot} -name .packlist] {
52        ui_info "Fixing packlist ${packlist}"
53        reinplace "s|${destroot}||" ${packlist}
54    }
55    foreach badfile [exec find ${destroot} -name perllocal.pod] {
56        ui_info "Removing ${badfile}"
57        file delete ${badfile}
58    }
59}
60
61notes "
62If this your first install, you might want to enable apreq in apache:
63
64    ${apxs} -a -e -n \"apreq\" mod_apreq2.so
65
66And then relaunch apache:
67
68    ${prefix}/apache2/bin/apachectl restart
69"
70}
Note: See TracBrowser for help on using the repository browser.