Ticket #5030: Portfile.3

File Portfile.3, 1.7 KB (added by joe@…, 19 years ago)

Mediawiki 1.4.10 portfile

Line 
1# $Id: Portfile,v 1.3 2005/02/28 22:26:40 rshaw Exp $
2PortSystem              1.0
3
4name                    mediawiki
5version                 1.4.10
6categories              www
7maintainers             joe@netmusician.org
8description             The wiki engine used by Wikipedia
9long_description        MediaWiki is the collaborative editing software that runs Wikipedia, \
10                                the free encyclopedia, and other projects. It's designed to \
11                                handle a large number of users and pages without imposing too \
12                                rigid a structure or workflow.
13
14homepage                http://www.mediawiki.org
15master_sites    sourceforge:wikipedia
16distname                mediawiki-${version}
17checksums               md5 2376f043109066d19830d05b6682c64b
18platforms               darwin freebsd
19
20depends_lib             port:libiconv \
21                        port:jpeg \
22                        port:jasper \
23                        port:tiff \
24                        port:lcms \
25                        port:libpng \
26                        port:freetype \
27                        port:libxml2 \
28                        port:jbigkit \
29                        port:expat \
30                        port:fontconfig \
31                        port:gnughostscript \
32                        port:ImageMagick \
33                        port:pkgconfig
34
35default_variants        +mysql4 +apache +php4
36                       
37variant apache conflicts apache2 {
38        depends_lib-append      port:apache
39}
40
41variant apache2 conflicts apache {
42        depends_lib-append      port:apache2
43}
44
45variant php4 conflicts php5 {
46        depends_lib-append      port:php4
47}
48
49variant php5 conflicts php4 {
50        depends_lib-append      port:php5
51}
52
53variant mysql conflicts mysql4 {
54        depends_lib-append      port:mysql
55}
56
57variant mysql4 conflicts mysql {
58        depends_lib-append      port:mysql4
59}
60
61use_configure   no
62configure               {}
63build                   {}
64
65if { [variant_isset apache] } {
66                set docpath ${destroot}${prefix}/www/data
67        } elseif { [variant_isset apache2] } {
68                set docpath ${destroot}${prefix}/apache2/htdocs
69        }   
70
71destroot {
72        xinstall -d -m 0755 ${docpath}/mediawiki
73        eval file copy [glob ${worksrcpath}/*] ${docpath}/mediawiki
74}