[118330] trunk/dports/www/mod_perl2/Portfile

ryandesign at macports.org ryandesign at macports.org
Sun Mar 30 16:06:29 PDT 2014


Revision: 118330
          https://trac.macports.org/changeset/118330
Author:   ryandesign at macports.org
Date:     2014-03-30 16:06:29 -0700 (Sun, 30 Mar 2014)
Log Message:
-----------
mod_perl2:
update to 2.0.8 to fix build failure with perl5.18 (#42582; maintainer timeout)
update master_sites
use clang patch for all clangs, not just the clang from the Xcode command line tools
use 'system -W ... "..."' instead of 'system "cd ... && ...'
remove checks for perl's threads and shared variants, because those features were turn on unconditionally and the variants removed in r94655
install with xinstall rather than using 'system "install ..."'
use notes instead of post-install ui_msgs

Revision Links:
--------------
    https://trac.macports.org/changeset/94655

Modified Paths:
--------------
    trunk/dports/www/mod_perl2/Portfile

Modified: trunk/dports/www/mod_perl2/Portfile
===================================================================
--- trunk/dports/www/mod_perl2/Portfile	2014-03-30 22:34:11 UTC (rev 118329)
+++ trunk/dports/www/mod_perl2/Portfile	2014-03-30 23:06:29 UTC (rev 118330)
@@ -4,8 +4,7 @@
 PortSystem 1.0
 
 name				mod_perl2
-version				2.0.7
-revision			1
+version				2.0.8
 maintainers			cyberscript.net:ryan
 categories			www
 license				Apache-2
@@ -25,35 +24,23 @@
 					templating sytems, to complete XML content delivery systems. Web sites like \
 					Slashdot and Wired Magazine use mod_perl.
 homepage			http://perl.apache.org/
-master_sites		http://perl.apache.org/dist/
+master_sites		apache:perl/
 distname			mod_perl-${version}
 
-checksums           rmd160  14505fd08f6915c8a260c9068608bde6ebcbac24 \
-                    sha256  53414be9db843054b927f23a35edb7b82d99e32e031b3cd81d5ff2473f51e3c6
+checksums           rmd160  5863f229c1fe982852f05bf5c1af5d28dae28b7f \
+                    sha256  35dc1b7a40a90a395ce88bba2df84f22289975f34d1757de6d715560c20a20e6
 
 depends_lib			path:bin/perl:perl5 port:apache2
 worksrcdir			mod_perl-${version}
 
-if {${configure.compiler} == "clang"} {
+if {[string match *clang* ${configure.compiler}]} {
     patchfiles-append clang-compatibility_src-modules-perl-modperl_common_util.h.patch
 }
 
-pre-configure {
-    set perl5bin "${prefix}/bin/perl5"
-    if {[string first "true" [exec ${perl5bin} -V:useshrplib]] == -1} {
-        ui_error "${name} requires perl5 to be installed with the +shared variant."
-        return -code error "perl5 must be +shared"
-    }
-    if {[string first "define" [exec ${perl5bin} -V:usethreads]] == -1} {
-        ui_error "${name} requires perl5 to be installed with the +threads variant."
-        return -code error "perl5 must be +threads"
-    }
-}
+set APXS ${prefix}/apache2/bin/apxs
 
 configure {
-	set APXS ${prefix}/apache2/bin/apxs
-	system "cd ${workpath}/${worksrcdir} && \
-		${prefix}/bin/perl Makefile.PL MP_APXS=${APXS}"
+	system -W ${worksrcpath} "${prefix}/bin/perl Makefile.PL MP_APXS=${APXS}"
 }
 
 destroot.violate_mtree yes
@@ -61,8 +48,8 @@
 post-destroot {
 		xinstall -m 755 -d ${destroot}${prefix}/apache2/include/modules/perl \
 			${destroot}${prefix}/apache2/libexec
-		system "install -m 755 ${worksrcpath}/src/modules/perl/*.h \
-    	        ${destroot}${prefix}/apache2/include/modules/perl"
+    eval xinstall -m 755 [glob ${worksrcpath}/src/modules/perl/*.h] \
+        ${destroot}${prefix}/apache2/include/modules/perl
 
 		xinstall -m 755 ${worksrcpath}/src/modules/perl/mod_perl.so \
 			${destroot}${prefix}/apache2/libexec/
@@ -79,15 +66,17 @@
 		}
 }
 
-post-install {
-	ui_msg "\nIf this your first install, you might want to"
-	ui_msg " * enable mod_perl in apache :\n"
-	ui_msg "cd ${prefix}/apache2/libexec"
-	ui_msg "${prefix}/apache2/bin/apxs -a -e -n \"perl\" mod_perl.so\n"
-	ui_msg " * And then relaunch apache \n"
-	ui_msg "${prefix}/apache2/bin/apachectl restart\n"
-}
+notes "
+If this your first install, you might want to enable mod_perl in apache:
 
+    cd ${prefix}/apache2/libexec
+    ${APXS} -a -e -n \"perl\" mod_perl.so
+
+And then relaunch apache:
+
+    ${prefix}/apache2/bin/apachectl restart
+"
+
 livecheck.url       [lindex ${master_sites} 0]
 livecheck.type      regex
 livecheck.regex     "mod_perl-(\\d+\\.\\d+(\[0-9rc.\]+)?).tar.gz"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140330/0b7352c4/attachment.html>


More information about the macports-changes mailing list