source: trunk/dports/www/mediawiki/Portfile @ 76953

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

Numerous ports: add license field

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# $Id: Portfile 76953 2011-03-15 03:47:33Z blb@macports.org $
2
3PortSystem          1.0
4name                mediawiki
5version             1.16.2
6set branch          [join [lrange [split ${version} .] 0 1] .]
7categories          www php
8license             GPL-2+
9maintainers         blb openmaintainer
10supported_archs     noarch
11description         The wiki engine used by Wikipedia
12long_description \
13   MediaWiki is the collaborative editing software that runs Wikipedia, the \
14   free encyclopedia, and other projects. It's designed to handle a large \
15   number of users and pages without imposing too rigid a structure or \
16   workflow.
17
18platforms           darwin freebsd
19
20homepage            http://www.mediawiki.org
21master_sites        http://download.wikimedia.org/mediawiki/${branch}/
22
23checksums           md5     cc477d57d3df7b60558aa50a91dbca36 \
24                    sha1    cb8565fafc847d8a0d59f4fdb7a09183267c4d5c \
25                    rmd160  27173b5dbdca9733fa9e55b1c04c8d61071f68cd
26
27depends_run         port:libiconv port:jpeg port:jasper port:tiff port:lcms \
28                    port:libpng port:freetype port:libxml2 port:jbigkit \
29                    port:expat port:fontconfig port:ghostscript \
30                    port:ImageMagick port:aspell port:php5-web
31
32use_configure       no
33
34build               {}
35
36set docpath ${prefix}/www/data/${name}
37
38destroot {
39   xinstall -d -m 0755 ${destroot}${docpath}
40   eval file copy [glob ${worksrcpath}/*] ${destroot}${docpath}
41}
42
43notes "\
44MediaWiki has now been installed into ${docpath}.  Any further information \
45on installation and configuration can be found at:
46
47   http://www.mediawiki.org/wiki/Manual:Installation_guide
48
49If you are upgrading, read:
50
51   http://www.mediawiki.org/wiki/Manual:Upgrading
52
53For an upgrade, ${docpath}/AdminSettings.php is no longer needed as of \
541.16.0 so its settings can be migrated into ${docpath}/LocalSettings.php; \
55see https://bugzilla.wikimedia.org/show_bug.cgi?id=18768 for details.
56
57Finally, be sure to have a look at ${docpath}/UPGRADE and possibly \
58${docpath}/RELEASE-NOTES for all the details of performing an upgrade.
59
60Make sure to use MacPorts' php for running the command line scripts, e.g.
61
62   ${prefix}/bin/php update.php
63"
64
65variant mysql4 description "Deprecated variant, use just +mysql" {}
66if {[variant_isset mysql4]} {
67   variant_set mysql
68}
69
70variant postgresql83 description "Deprecated variant, use just +postgresql" {}
71variant postgresql84 description "Deprecated variant, use just +postgresql" {}
72if {[variant_isset postgresql83] || [variant_isset postgresql84]} {
73   variant_set postgresql
74}
75
76variant mysql description "Use MySQL as the database backend" {
77   depends_run-append   port:php5-mysql
78}
79
80variant postgresql description "Use PostGreSQL as the database backend" {
81   depends_run-append   port:php5-postgresql
82}
83
84# Default to +mysql since that was previously the built-in setting
85if {![variant_isset mysql] && ![variant_isset postgresql]} {
86   default_variants     +mysql
87}
88
89livecheck.type      regex
90livecheck.url       http://www.mediawiki.org/wiki/Download
91livecheck.regex     ${name}-(\[.\\d]+)\\.tar\\.gz
92
Note: See TracBrowser for help on using the repository browser.