Ticket #13414: Portfile

File Portfile, 1.4 KB (added by jwelp1@…, 16 years ago)
Line 
1# $Id: Portfile 30257 2007-10-23 02:28:30Z jmpp@macports.org $
2
3PortSystem 1.0
4
5name                    mediawiki
6version                 1.11
7epoch                   0
8categories              www php
9maintainers             nomaintainer
10description             The wiki engine used by Wikipedia
11long_description        MediaWiki is the collaborative editing software that runs Wikipedia, \
12                                the free encyclopedia, and other projects. It's designed to \
13                                handle a large number of users and pages without imposing too \
14                                rigid a structure or workflow.
15
16homepage                http://www.mediawiki.org
17distname         mediawiki-${version}.${epoch}
18master_sites   http://download.wikimedia.org/mediawiki/${version}
19checksums               md5 cea9d039d904f7f27b2280557a0bfe92
20platforms                   darwin freebsd
21
22depends_run \
23        port:libiconv \
24        port:jpeg \
25        port:jasper \
26        port:tiff \
27        port:lcms \
28        port:libpng \
29        port:freetype \
30        port:libxml2 \
31        port:jbigkit \
32        port:expat \
33        port:fontconfig \
34        port:ghostscript \
35        port:ImageMagick \
36        port:pkgconfig \
37        port:aspell
38
39depends_lib \
40        port:php5 \
41        port:mysql5
42
43variant php4 {
44        depends_lib-append      port:php4
45        depends_lib-delete      port:php5
46}
47
48variant mysql4 conflicts mysql3 {
49        depends_lib-append      port:mysql4
50        depends_lib-delete      port:mysql5
51}
52
53use_configure   no
54build                   {}
55
56set docpath ${destroot}${prefix}/www/data
57
58destroot {
59        xinstall -d -m 0755 ${docpath}/mediawiki
60        eval file copy [glob ${worksrcpath}/*] ${docpath}/mediawiki
61}