source: trunk/dports/www/wikkawiki/Portfile @ 46696

Last change on this file since 46696 was 46696, checked in by snc@…, 10 years ago

created wikkawiki, ticket #17724

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 KB
Line 
1# c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 46696 2009-02-10 20:21:26Z snc@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
28variant php5 description {Use php5 instead of php4 (not fully tested)} {
29    depends_lib-append  port:php5
30    depends_lib-delete  port:php4
31}
32
33variant mysql5 description {Use mysql5 instead of mysql4 (not fully tested)} {
34    depends_lib-append  port:mysql5
35    depends_lib-delete  port:mysql4
36}
37
38variant nodeps description {Use existing php/mysql libs} {
39    depends_lib-delete port:php4
40    depends_lib-delete port:mysql4
41}
42
43variant use_osx_docroot conflicts php5 mysql5 requires nodeps description {Create link to /Library/WebServer/Documents} {}
44
45use_configure   no
46build            {}
47
48set wikkapath ${destroot}${prefix}/www/wikka
49set osxdocpath /Library/WebServer/Documents
50
51destroot {
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    }
62}
63
64post-activate {
65    if {[variant_isset use_osx_docroot]} {
66        ui_msg "**********************************************************"
67        ui_msg "* Point your browser to http://localhost/wikka to continue"
68        ui_msg "* installation. Be sure to lock down permissions on"
69        ui_msg "* ${osxdocpath}/wikka/wikka.config.php and"
70        ui_msg "* ${osxdocpath}/wikka/.htaccess for public sites!"
71        ui_msg "* Visit http://docs.wikkawiki.org/MacportInstall for help."
72        ui_msg "**********************************************************"
73    } else {
74        ui_msg "**********************************************************"
75        ui_msg "* Point your browser to http://localhost/wikka to continue"
76        ui_msg "* installation. Be sure to lock down permissions on"
77        ui_msg "* ${prefix}/www/wikka/wikka.config.php and"
78        ui_msg "* ${prefix}/www/wikka/.htaccess for public sites!"
79        ui_msg "* Visit http://docs.wikkawiki.org/MacportInstall for help."
80        ui_msg "**********************************************************"
81    }
82}
Note: See TracBrowser for help on using the repository browser.