Changeset 118330


Ignore:
Timestamp:
Mar 30, 2014, 11:06:29 PM (6 years ago)
Author:
ryandesign@…
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 turned on unconditionally and the variants removed in r94655
install with xinstall rather than using 'system "install ..."'
use notes instead of post-install ui_msgs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/www/mod_perl2/Portfile

    r113504 r118330  
    55
    66name                            mod_perl2
    7 version                         2.0.7
    8 revision                        1
     7version                         2.0.8
    98maintainers                     cyberscript.net:ryan
    109categories                      www
     
    2625                                        Slashdot and Wired Magazine use mod_perl.
    2726homepage                        http://perl.apache.org/
    28 master_sites            http://perl.apache.org/dist/
     27master_sites            apache:perl/
    2928distname                        mod_perl-${version}
    3029
    31 checksums           rmd160  14505fd08f6915c8a260c9068608bde6ebcbac24 \
    32                     sha256  53414be9db843054b927f23a35edb7b82d99e32e031b3cd81d5ff2473f51e3c6
     30checksums           rmd160  5863f229c1fe982852f05bf5c1af5d28dae28b7f \
     31                    sha256  35dc1b7a40a90a395ce88bba2df84f22289975f34d1757de6d715560c20a20e6
    3332
    3433depends_lib                     path:bin/perl:perl5 port:apache2
    3534worksrcdir                      mod_perl-${version}
    3635
    37 if {${configure.compiler} == "clang"} {
     36if {[string match *clang* ${configure.compiler}]} {
    3837    patchfiles-append clang-compatibility_src-modules-perl-modperl_common_util.h.patch
    3938}
    4039
    41 pre-configure {
    42     set perl5bin "${prefix}/bin/perl5"
    43     if {[string first "true" [exec ${perl5bin} -V:useshrplib]] == -1} {
    44         ui_error "${name} requires perl5 to be installed with the +shared variant."
    45         return -code error "perl5 must be +shared"
    46     }
    47     if {[string first "define" [exec ${perl5bin} -V:usethreads]] == -1} {
    48         ui_error "${name} requires perl5 to be installed with the +threads variant."
    49         return -code error "perl5 must be +threads"
    50     }
    51 }
     40set APXS ${prefix}/apache2/bin/apxs
    5241
    5342configure {
    54         set APXS ${prefix}/apache2/bin/apxs
    55         system "cd ${workpath}/${worksrcdir} && \
    56                 ${prefix}/bin/perl Makefile.PL MP_APXS=${APXS}"
     43        system -W ${worksrcpath} "${prefix}/bin/perl Makefile.PL MP_APXS=${APXS}"
    5744}
    5845
     
    6249                xinstall -m 755 -d ${destroot}${prefix}/apache2/include/modules/perl \
    6350                        ${destroot}${prefix}/apache2/libexec
    64                 system "install -m 755 ${worksrcpath}/src/modules/perl/*.h \
    65                 ${destroot}${prefix}/apache2/include/modules/perl"
     51    eval xinstall -m 755 [glob ${worksrcpath}/src/modules/perl/*.h] \
     52        ${destroot}${prefix}/apache2/include/modules/perl
    6653
    6754                xinstall -m 755 ${worksrcpath}/src/modules/perl/mod_perl.so \
     
    8067}
    8168
    82 post-install {
    83         ui_msg "\nIf this your first install, you might want to"
    84         ui_msg " * enable mod_perl in apache :\n"
    85         ui_msg "cd ${prefix}/apache2/libexec"
    86         ui_msg "${prefix}/apache2/bin/apxs -a -e -n \"perl\" mod_perl.so\n"
    87         ui_msg " * And then relaunch apache \n"
    88         ui_msg "${prefix}/apache2/bin/apachectl restart\n"
    89 }
     69notes "
     70If this your first install, you might want to enable mod_perl in apache:
     71
     72    cd ${prefix}/apache2/libexec
     73    ${APXS} -a -e -n \"perl\" mod_perl.so
     74
     75And then relaunch apache:
     76
     77    ${prefix}/apache2/bin/apachectl restart
     78"
    9079
    9180livecheck.url       [lindex ${master_sites} 0]
Note: See TracChangeset for help on using the changeset viewer.