[131571] trunk/dports/www/mod_perl/Portfile
mojca at macports.org
mojca at macports.org
Wed Jan 14 06:58:09 PST 2015
Revision: 131571
https://trac.macports.org/changeset/131571
Author: mojca at macports.org
Date: 2015-01-14 06:58:09 -0800 (Wed, 14 Jan 2015)
Log Message:
-----------
mod_perl: whitespace only
Modified Paths:
--------------
trunk/dports/www/mod_perl/Portfile
Modified: trunk/dports/www/mod_perl/Portfile
===================================================================
--- trunk/dports/www/mod_perl/Portfile 2015-01-14 14:20:37 UTC (rev 131570)
+++ trunk/dports/www/mod_perl/Portfile 2015-01-14 14:58:09 UTC (rev 131571)
@@ -1,6 +1,7 @@
+# -*- 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
# $Id$
-PortSystem 1.0
+PortSystem 1.0
name mod_perl
version 1.31
@@ -8,81 +9,84 @@
license Apache-1.1
platforms darwin
maintainers nomaintainer
+
description Embeds a Perl interpreter in the Apache 1.3 server
-long_description ${description}
+long_description ${description}
+
homepage http://perl.apache.org/
-master_sites http://apache.org/dist/perl/ \
- http://apache.cs.utah.edu/perl/ \
- http://apache.mirrors.tds.net/perl/ \
- http://mirror.metrocast.net/apache/perl/
+master_sites http://apache.org/dist/perl/ \
+ http://apache.cs.utah.edu/perl/ \
+ http://apache.mirrors.tds.net/perl/ \
+ http://mirror.metrocast.net/apache/perl/
-checksums rmd160 296bd5e95018c313bab84ae7b21ae9f64bd4a394 \
- sha256 0bc7d2638139b7ac9742e27051513efb332504093eca84488ca15585b14860c1
+checksums rmd160 296bd5e95018c313bab84ae7b21ae9f64bd4a394 \
+ sha256 0bc7d2638139b7ac9742e27051513efb332504093eca84488ca15585b14860c1
-depends_lib path:bin/perl:perl5 port:apache
+depends_lib port:apache \
+ path:bin/perl:perl5
-configure.env LANG=C \
- LC_ALL=C
+configure.env LANG=C \
+ LC_ALL=C
configure.pre_args
configure {
- if { [variant_isset apache_layout] } {
- set APXS ${prefix}/apache/bin/apxs
- } else {
- set APXS ${prefix}/sbin/apxs
- }
+ if { [variant_isset apache_layout] } {
+ set APXS ${prefix}/apache/bin/apxs
+ } else {
+ set APXS ${prefix}/sbin/apxs
+ }
- system "cd ${workpath}/${worksrcdir} && \
- perl Makefile.PL USE_APXS=1 \
- PREFIX=${prefix} \
- WITH_APXS={APXS} EVERYTHING=1 \
- PERL_EXTRA_CFLAGS='-DDEFAULT_PATH=\"/bin:/usr/bin:${prefix}/bin\"'"
+ system "cd ${workpath}/${worksrcdir} && \
+ perl Makefile.PL USE_APXS=1 \
+ PREFIX=${prefix} \
+ WITH_APXS={APXS} EVERYTHING=1 \
+ PERL_EXTRA_CFLAGS='-DDEFAULT_PATH=\"/bin:/usr/bin:${prefix}/bin\"'"
}
-destroot.target all pure_install doc_install
+destroot.target all pure_install doc_install
post-destroot {
- if { [variant_isset apache_layout] } {
- xinstall -m 755 -d ${destroot}${prefix}/apache/include/modules/perl \
- ${destroot}${prefix}/apache/libexec
- system "install -m 755 ${worksrcpath}/src/modules/perl/*.h \
- ${destroot}${prefix}/apache/include/modules/perl"
+ if { [variant_isset apache_layout] } {
+ xinstall -m 755 -d ${destroot}${prefix}/apache/include/modules/perl \
+ ${destroot}${prefix}/apache/libexec
+ system "install -m 755 ${worksrcpath}/src/modules/perl/*.h \
+ ${destroot}${prefix}/apache/include/modules/perl"
- xinstall -m 755 ${worksrcpath}/apaci/libperl.so \
- ${destroot}${prefix}/apache/libexec/
- } else {
- xinstall -m 755 -d ${destroot}${prefix}/include/apache/modules/perl \
- ${destroot}${prefix}/libexec/apache
- system "install -m 755 ${worksrcpath}/src/modules/perl/*.h \
- ${destroot}${prefix}/include/apache/modules/perl"
- xinstall -m 755 ${worksrcpath}/apaci/libperl.so \
- ${destroot}${prefix}/libexec/apache/
- }
-
- fs-traverse f ${destroot}${prefix} {
- if {[file isfile ${f}]} {
- switch [file tail ${f}] {
- .packlist -
- perllocal.pod {
- delete ${f}
- }
- }
- }
- }
+ xinstall -m 755 ${worksrcpath}/apaci/libperl.so \
+ ${destroot}${prefix}/apache/libexec/
+ } else {
+ xinstall -m 755 -d ${destroot}${prefix}/include/apache/modules/perl \
+ ${destroot}${prefix}/libexec/apache
+ system "install -m 755 ${worksrcpath}/src/modules/perl/*.h \
+ ${destroot}${prefix}/include/apache/modules/perl"
+ xinstall -m 755 ${worksrcpath}/apaci/libperl.so \
+ ${destroot}${prefix}/libexec/apache/
+ }
+
+ fs-traverse f ${destroot}${prefix} {
+ if {[file isfile ${f}]} {
+ switch [file tail ${f}] {
+ .packlist -
+ perllocal.pod {
+ delete ${f}
+ }
+ }
+ }
+ }
}
post-install {
- ui_msg "\nIf this your first install, you might want"
- ui_msg " * enable mod_perl in apache :\n"
- if { [variant_isset apache_layout] } {
- ui_msg "cd ${prefix}/apache/libexec"
- } else {
- ui_msg "cd ${prefix}/libexec/apache"
- }
- ui_msg "apxs -a -e -n \"perl\" libperl.so\n"
- ui_msg " * And then relaunch apache \n"
- ui_msg "apachectl graceful\n"
+ ui_msg "\nIf this your first install, you might want"
+ ui_msg " * enable mod_perl in apache :\n"
+ if { [variant_isset apache_layout] } {
+ ui_msg "cd ${prefix}/apache/libexec"
+ } else {
+ ui_msg "cd ${prefix}/libexec/apache"
+ }
+ ui_msg "apxs -a -e -n \"perl\" libperl.so\n"
+ ui_msg " * And then relaunch apache \n"
+ ui_msg "apachectl graceful\n"
}
-livecheck.type regex
-livecheck.url [lindex ${master_sites} 0]
-livecheck.regex ${name}-(1\.\[0-9.\]+)${extract.suffix}
+livecheck.type regex
+livecheck.url [lindex ${master_sites} 0]
+livecheck.regex ${name}-(1\.\[0-9.\]+)${extract.suffix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150114/7ffcf05c/attachment.html>
More information about the macports-changes
mailing list