Changeset 118330 for trunk/dports
- Timestamp:
- Mar 30, 2014, 11:06:29 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/www/mod_perl2/Portfile
r113504 r118330 5 5 6 6 name mod_perl2 7 version 2.0.7 8 revision 1 7 version 2.0.8 9 8 maintainers cyberscript.net:ryan 10 9 categories www … … 26 25 Slashdot and Wired Magazine use mod_perl. 27 26 homepage http://perl.apache.org/ 28 master_sites http://perl.apache.org/dist/27 master_sites apache:perl/ 29 28 distname mod_perl-${version} 30 29 31 checksums rmd160 14505fd08f6915c8a260c9068608bde6ebcbac24\32 sha256 53414be9db843054b927f23a35edb7b82d99e32e031b3cd81d5ff2473f51e3c630 checksums rmd160 5863f229c1fe982852f05bf5c1af5d28dae28b7f \ 31 sha256 35dc1b7a40a90a395ce88bba2df84f22289975f34d1757de6d715560c20a20e6 33 32 34 33 depends_lib path:bin/perl:perl5 port:apache2 35 34 worksrcdir mod_perl-${version} 36 35 37 if { ${configure.compiler} == "clang"} {36 if {[string match *clang* ${configure.compiler}]} { 38 37 patchfiles-append clang-compatibility_src-modules-perl-modperl_common_util.h.patch 39 38 } 40 39 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 } 40 set APXS ${prefix}/apache2/bin/apxs 52 41 53 42 configure { 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}" 57 44 } 58 45 … … 62 49 xinstall -m 755 -d ${destroot}${prefix}/apache2/include/modules/perl \ 63 50 ${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 66 53 67 54 xinstall -m 755 ${worksrcpath}/src/modules/perl/mod_perl.so \ … … 80 67 } 81 68 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 } 69 notes " 70 If 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 75 And then relaunch apache: 76 77 ${prefix}/apache2/bin/apachectl restart 78 " 90 79 91 80 livecheck.url [lindex ${master_sites} 0]
Note: See TracChangeset
for help on using the changeset viewer.