[129390] trunk/dports/perl/p5-cgi-speedycgi/Portfile

mojca at macports.org mojca at macports.org
Fri Dec 12 06:44:36 PST 2014


Revision: 129390
          https://trac.macports.org/changeset/129390
Author:   mojca at macports.org
Date:     2014-12-12 06:44:36 -0800 (Fri, 12 Dec 2014)
Log Message:
-----------
p5-cgi-speedycgi: whitespace, status line and checksums only

Modified Paths:
--------------
    trunk/dports/perl/p5-cgi-speedycgi/Portfile

Modified: trunk/dports/perl/p5-cgi-speedycgi/Portfile
===================================================================
--- trunk/dports/perl/p5-cgi-speedycgi/Portfile	2014-12-12 14:20:24 UTC (rev 129389)
+++ trunk/dports/perl/p5-cgi-speedycgi/Portfile	2014-12-12 14:44:36 UTC (rev 129390)
@@ -1,74 +1,77 @@
+# -*- 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
-PortGroup                       perl5 1.0
+PortSystem          1.0
+PortGroup           perl5 1.0
 
-perl5.branches                  5.10 5.12 5.14 5.16
-perl5.setup                     CGI-SpeedyCGI 2.22
-revision			            12
-license                         GPL-2+
-maintainers                     nomaintainer
-description                     Speed up perl CGI scripts by running them persistently
-long_description                SpeedyCGI is a way to run perl scripts persistently, \
-				which can make them run much more quickly. A script \
-				can be made to to run persistently by changing the \
-				interpreter line at the top of a script from: \
-				  '#!/_prefix_/bin/perl' to '#!/_prefix_/bin/speedy'
+perl5.branches      5.10 5.12 5.14 5.16
+perl5.setup         CGI-SpeedyCGI 2.22
+revision            12
+license             GPL-2+
+maintainers         nomaintainer
+description         Speed up perl CGI scripts by running them persistently
+long_description    SpeedyCGI is a way to run perl scripts persistently, \
+                    which can make them run much more quickly. A script \
+                    can be made to to run persistently by changing the \
+                    interpreter line at the top of a script from: \
+                    '#!/_prefix_/bin/perl' to '#!/_prefix_/bin/speedy'
 
-platforms                       darwin
-checksums                       md5 2f80df78874e3efa80f180923c4967a1
-use_parallel_build              no
+platforms           darwin
+use_parallel_build  no
 
+checksums           rmd160  90bc10281f4380d6d9e3b376ce385567fb3d165d \
+                    sha256  9021a5c6d8ed205422f091209addf7d1be27222adbcbd17bc52fbc527bcc6f98
+
 if {${perl5.major} != ""} {
-patchfiles			patch-Makefile.PL \
-				patch-mod_speedycgi2.c \
-				patch-src-SpeedyMake.pl \
-				patch-src_speedy_main.c \
-				patch-mod_speedycgi-Makefile.tmpl \
-				patch-src-speedy_perl.h \
-				patch-src-speedy_backend_main.h \
-				patch-src-speedy_perl.c
+    patchfiles-append \
+                    patch-Makefile.PL \
+                    patch-mod_speedycgi2.c \
+                    patch-src-SpeedyMake.pl \
+                    patch-src_speedy_main.c \
+                    patch-mod_speedycgi-Makefile.tmpl \
+                    patch-src-speedy_perl.h \
+                    patch-src-speedy_backend_main.h \
+                    patch-src-speedy_perl.c
 
-depends_lib-append			port:apache2
+    depends_lib-append \
+                    port:apache2
 
-variant apple_apache description {Configures SpeedyCGI to use Apple's built-in Apache instead of MacPorts Apache} {
-	depends_lib-delete	port:apache2
-	patchfiles-delete	patch-mod_speedycgi-Makefile.tmpl
-}
+    variant apple_apache description {Configures SpeedyCGI to use Apple's built-in Apache instead of MacPorts Apache} {
+        depends_lib-delete  port:apache2
+        patchfiles-delete   patch-mod_speedycgi-Makefile.tmpl
+    }
 
-post-patch {
-if { [variant_isset apple_apache]} {
-# Do nothing
+    post-patch {
+        if {[variant_isset apple_apache]} {
+            # Do nothing
+        } else {
+        # Patch for MacPorts Apache 2
+            reinplace "s|apxs -q|${prefix}/apache2/bin/apxs -q|g" \
+                ${worksrcpath}/src/SpeedyMake.pl \
+                ${worksrcpath}/Makefile.PL
 
-} else {
-# Patch for MacPorts Apache 2
-	reinplace "s|apxs -q|${prefix}/apache2/bin/apxs -q|g" \
-		${worksrcpath}/src/SpeedyMake.pl \
-		${worksrcpath}/Makefile.PL
+            reinplace "s|__PREFIX__|${prefix}|g" \
+                ${worksrcpath}/mod_speedycgi/Makefile.tmpl
+        }
+    }
 
-	reinplace "s|__PREFIX__|${prefix}|g" \
-		${worksrcpath}/mod_speedycgi/Makefile.tmpl \
-	}
-}
+    post-destroot {
+        xinstall -m 4755 ${worksrcpath}/speedy/speedy ${destroot}${prefix}/bin/speedy_suidperl
+        xinstall -m 755 -d ${destroot}${prefix}/share/doc/speedycgi
+        eval xinstall -m 644 [glob ${worksrcpath}/docs/*] ${destroot}${prefix}/share/doc/speedycgi
+        xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/speedycgi
 
-post-destroot {
-	xinstall -m 4755 ${worksrcpath}/speedy/speedy ${destroot}${prefix}/bin/speedy_suidperl
-	xinstall -m 755 -d ${destroot}${prefix}/share/doc/speedycgi
-	eval xinstall -m 644 [glob ${worksrcpath}/docs/*] ${destroot}${prefix}/share/doc/speedycgi
-	xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/speedycgi
-
-if { [variant_isset apple_apache]} {
-# Install module for Apple's Apache outside of ${prefix} and let user copy it.
-	xinstall -m 644 ${worksrcpath}/mod_speedycgi2/mod_speedycgi.so ${destroot}${prefix}/share/doc/speedycgi
-
-} else {
-# Install module for MacPorts Apache2
-	xinstall -m 755 -d ${destroot}${prefix}/apache2/modules
-	xinstall -m 644 ${worksrcpath}/mod_speedycgi2/.libs/mod_speedycgi.so \
-		${destroot}${prefix}/apache2/modules
-	}
+        if { [variant_isset apple_apache]} {
+            # Install module for Apple's Apache outside of ${prefix} and let user copy it.
+            xinstall -m 644 ${worksrcpath}/mod_speedycgi2/mod_speedycgi.so ${destroot}${prefix}/share/doc/speedycgi
+        } else {
+            # Install module for MacPorts Apache2
+            xinstall -m 755 -d ${destroot}${prefix}/apache2/modules
+            xinstall -m 644 ${worksrcpath}/mod_speedycgi2/.libs/mod_speedycgi.so \
+                ${destroot}${prefix}/apache2/modules
+        }
+    }
 }
-}
 
 notes \
 "#### To complete SpeedyCGI installation for MacPorts Apache2 (default install) ####
@@ -84,7 +87,7 @@
 
 
 #### To complete SpeedyCGI installation for Apple's Apache2 (+apple_apache variant)  ####
-        
+
 Copy mod_speedycgi.so and enable it in httpd.conf
 
 -Copy ${prefix}/share/doc/speedycgi/mod_speedycgi.so to /usr/libexec/apache2
@@ -98,5 +101,4 @@
     From:  HTTPD='/usr/sbin/httpd'
     To:    HTTPD='arch -ppc /usr/sbin/httpd'
 
-
 See ${prefix}/share/doc/speedycgi/README for further details."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141212/a6d8fe35/attachment.html>


More information about the macports-changes mailing list