source: trunk/dports/www/mediawiki/Portfile

Last change on this file was 122857, checked in by pixilla@…, 3 years ago

www/mediawiki:

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