Ticket #18455: patch-wikkawiki.diff
File patch-wikkawiki.diff, 2.1 KB (added by nerdling (Jeremy Lavergne), 16 years ago) |
---|
-
www/wikkawiki/Portfile
old new 1 # c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=41 # -*- 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 2 2 # $Id: Portfile 46696 2009-02-10 20:21:26Z snc@macports.org $ 3 3 4 4 PortSystem 1.0 … … 25 25 port:php4 \ 26 26 port:mysql4 27 27 28 set wikkapath ${destroot}${prefix}/www/wikka 29 set osxdocpath /Library/WebServer/Documents 30 28 31 variant php5 description {Use php5 instead of php4 (not fully tested)} { 29 depends_lib-append p ort:php532 depends_lib-append path:bin/php:php5 30 33 depends_lib-delete port:php4 31 34 } 32 35 33 36 variant mysql5 description {Use mysql5 instead of mysql4 (not fully tested)} { 34 depends_lib-append p ort:mysql537 depends_lib-append path:bin/mysql_config5:mysql5 35 38 depends_lib-delete port:mysql4 36 39 } 37 40 … … 40 43 depends_lib-delete port:mysql4 41 44 } 42 45 43 variant use_osx_docroot conflicts php5 mysql5 requires nodeps description {Create link to /Library/WebServer/Documents} {} 46 variant use_osx_docroot conflicts php5 mysql5 requires nodeps description {Create link to /Library/WebServer/Documents} { 47 post-destroot { 48 xinstall -d ${destroot}${osxdocpath} 49 ln -s ${prefix}/www/wikkawiki ${destroot}${osxdocpath}/wikka 50 } 51 } 44 52 45 53 use_configure no 46 54 build {} 47 55 48 set wikkapath ${destroot}${prefix}/www/wikka49 set osxdocpath /Library/WebServer/Documents50 51 56 destroot { 52 57 xinstall -d -m 0755 ${wikkapath} 53 58 eval file copy [glob ${worksrcpath}/*] ${wikkapath} 54 59 xinstall -m 0666 ${worksrcpath}/.htaccess ${wikkapath} 55 60 touch ${wikkapath}/wikka.config.php 56 file attributes ${wikkapath}/wikka.config.php -permissions 0666 57 58 if {[variant_isset use_osx_docroot]} { 59 file delete -force ${osxdocpath}/wikka 60 ln -s ${prefix}/www/wikka ${osxdocpath}/wikka 61 xinstall -m 0666 {$wikkapath}/wikka.config.php 61 62 } 62 63 } 63 64