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 123527 2014-08-10 01:42:12Z mojca@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup perl5 1.0 |
---|
6 | |
---|
7 | perl5.branches 5.8 5.10 5.12 5.14 5.16 5.18 5.20 |
---|
8 | perl5.setup mod_perl2 2.0.8 |
---|
9 | |
---|
10 | # Keep in sync with mod_perl2 |
---|
11 | |
---|
12 | # maintainers cyberscript.net:ryan |
---|
13 | categories www perl |
---|
14 | license Apache-2 |
---|
15 | platforms darwin |
---|
16 | description Embeds a Perl interpreter in the Apache2 server (FIXME) |
---|
17 | long_description ${description} |
---|
18 | |
---|
19 | homepage http://perl.apache.org/ |
---|
20 | master_sites apache:perl/ |
---|
21 | distname mod_perl-${version} |
---|
22 | dist_subdir mod_perl2 |
---|
23 | |
---|
24 | checksums rmd160 5863f229c1fe982852f05bf5c1af5d28dae28b7f \ |
---|
25 | sha256 35dc1b7a40a90a395ce88bba2df84f22289975f34d1757de6d715560c20a20e6 |
---|
26 | |
---|
27 | if {${perl5.major} != ""} { |
---|
28 | depends_lib-append \ |
---|
29 | port:apache2 |
---|
30 | worksrcdir mod_perl-${version} |
---|
31 | |
---|
32 | if {[string match *clang* ${configure.compiler}]} { |
---|
33 | patchfiles-append clang-compatibility_src-modules-perl-modperl_common_util.h.patch |
---|
34 | } |
---|
35 | |
---|
36 | configure.args-append \ |
---|
37 | MP_APXS=${prefix}/apache2/bin/apxs |
---|
38 | |
---|
39 | post-destroot { |
---|
40 | delete ${destroot}${prefix}/apache2 |
---|
41 | # delete ${destroot}${prefix}/apache2/include -> this can go to generic port |
---|
42 | # delete ${destroot}${prefix}/apache2/modules/mod_perl.so -> TODO: this file should be stored somewhere! |
---|
43 | } |
---|
44 | } |
---|
45 | |
---|
46 | livecheck.url http://perl.apache.org/download/index.html |
---|
47 | livecheck.type regex |
---|
48 | livecheck.regex "mod_perl-(\\d+\\.\\d+(\[0-9rc.\]+)?).tar.gz" |
---|