Ignore:
Timestamp:
Feb 14, 2009, 2:55:57 PM (10 years ago)
Author:
snc@…
Message:

further cleanup of wikkawiki, ticket #18455

File:
1 edited

Legend:

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

    r46696 r46832  
    1 # c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
     1# -*- 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
    22# $Id$
    33
     
    2626    port:mysql4
    2727
     28set wikkapath ${prefix}/www/wikka
     29set osxdocpath /Library/WebServer/Documents
     30
    2831variant php5 description {Use php5 instead of php4 (not fully tested)} {
    29     depends_lib-append  port:php5
     32    depends_lib-append  path:bin/php:php5
    3033    depends_lib-delete  port:php4
    3134}
    3235
    3336variant mysql5 description {Use mysql5 instead of mysql4 (not fully tested)} {
    34     depends_lib-append  port:mysql5
     37    depends_lib-append  path:bin/mysql_config5:mysql5
    3538    depends_lib-delete  port:mysql4
    3639}
     
    4144}
    4245
    43 variant use_osx_docroot conflicts php5 mysql5 requires nodeps description {Create link to /Library/WebServer/Documents} {}
     46variant 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 ${wikkapath} ${destroot}${osxdocpath}/wikka
     50    }
     51
     52    post-activate {
     53    }
     54}
    4455
    4556use_configure   no
    46 build            {}
    47 
    48 set wikkapath ${destroot}${prefix}/www/wikka
    49 set osxdocpath /Library/WebServer/Documents
     57build           {}
    5058
    5159destroot {
    52     xinstall -d -m 0755 ${wikkapath}
    53     eval file copy [glob ${worksrcpath}/*] ${wikkapath}
    54     xinstall -m 0666 ${worksrcpath}/.htaccess ${wikkapath}
    55     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     }
     60    xinstall -d -m 0755 ${destroot}${wikkapath}
     61    eval file copy [glob ${worksrcpath}/*] ${destroot}${wikkapath}
     62    xinstall -m 0666 ${worksrcpath}/.htaccess ${destroot}${wikkapath}
     63    touch ${destroot}${wikkapath}/wikka.config.php
     64    file attributes ${destroot}${wikkapath}/wikka.config.php -permissions 0666
    6265}
    6366
Note: See TracChangeset for help on using the changeset viewer.