source: trunk/dports/www/wikkawiki/Portfile

Last change on this file was 46832, checked in by snc@…, 8 years ago

further cleanup of wikkawiki, ticket #18455

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
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
2# $Id: Portfile 46832 2009-02-14 14:55:57Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name                wikkawiki
7set major_version   1.1.6
8version             ${major_version}.5
9categories          www php
10maintainers         wikkawiki.org:brian
11description         WikkaWiki is a flexible, standards-compliant and lightweight wiki engine.
12long_description    WikkaWiki is a flexible, standards-compliant and \
13                    lightweight wiki engine written in PHP, which uses MySQL \
14                    to store pages. Forked from WakkaWiki. Designed for \
15                    speed,  extensibility, and security.  For installation \
16                    instructions, visit http://docs.wikkawiki.org/MacportInstall
17homepage            http://www.wikkawiki.org
18distname            Wikka-${version}
19master_sites        http://wikkawiki.org/downloads/
20checksums           md5     e1f3b98b98ff5fb6b22fa4848b54317b \
21                    sha1    2d2e114d69223f759a5e0261887748112eba24b2
22platforms           darwin freebsd
23
24depends_lib \
25    port:php4 \
26    port:mysql4
27
28set wikkapath ${prefix}/www/wikka
29set osxdocpath /Library/WebServer/Documents
30
31variant php5 description {Use php5 instead of php4 (not fully tested)} {
32    depends_lib-append  path:bin/php:php5
33    depends_lib-delete  port:php4
34}
35
36variant mysql5 description {Use mysql5 instead of mysql4 (not fully tested)} {
37    depends_lib-append  path:bin/mysql_config5:mysql5
38    depends_lib-delete  port:mysql4
39}
40
41variant nodeps description {Use existing php/mysql libs} {
42    depends_lib-delete port:php4
43    depends_lib-delete port:mysql4
44}
45
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}
55
56use_configure   no
57build           {}
58
59destroot {
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
65}
66
67post-activate {
68    if {[variant_isset use_osx_docroot]} {
69        ui_msg "**********************************************************"
70        ui_msg "* Point your browser to http://localhost/wikka to continue"
71        ui_msg "* installation. Be sure to lock down permissions on"
72        ui_msg "* ${osxdocpath}/wikka/wikka.config.php and"
73        ui_msg "* ${osxdocpath}/wikka/.htaccess for public sites!"
74        ui_msg "* Visit http://docs.wikkawiki.org/MacportInstall for help."
75        ui_msg "**********************************************************"
76    } else {
77        ui_msg "**********************************************************"
78        ui_msg "* Point your browser to http://localhost/wikka to continue"
79        ui_msg "* installation. Be sure to lock down permissions on"
80        ui_msg "* ${prefix}/www/wikka/wikka.config.php and"
81        ui_msg "* ${prefix}/www/wikka/.htaccess for public sites!"
82        ui_msg "* Visit http://docs.wikkawiki.org/MacportInstall for help."
83        ui_msg "**********************************************************"
84    }
85}
Note: See TracBrowser for help on using the repository browser.