1 |
radhermit 10/10/09 21:30:45 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mediawiki-1.16.0.ebuild |
5 |
Log: |
6 |
Version bump to the latest stable release (fixes bug #332745, thanks to Tobias Margitan for reporting and William Cooke for patches). Add sqlite3 USE flag, replace remaining pkg_setup use flag check with use dependencies, and add new postupgrade instructions since a few variables are set in LocalSettings.php instead of using AdminSettings.php. |
7 |
|
8 |
(Portage version: 2.2_rc90/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.140 www-apps/mediawiki/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/mediawiki/ChangeLog?rev=1.140&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/mediawiki/ChangeLog?rev=1.140&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/mediawiki/ChangeLog?r1=1.139&r2=1.140 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-apps/mediawiki/ChangeLog,v |
20 |
retrieving revision 1.139 |
21 |
retrieving revision 1.140 |
22 |
diff -u -r1.139 -r1.140 |
23 |
--- ChangeLog 9 Oct 2010 21:05:44 -0000 1.139 |
24 |
+++ ChangeLog 9 Oct 2010 21:30:45 -0000 1.140 |
25 |
@@ -1,6 +1,16 @@ |
26 |
# ChangeLog for www-apps/mediawiki |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/ChangeLog,v 1.139 2010/10/09 21:05:44 radhermit Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/ChangeLog,v 1.140 2010/10/09 21:30:45 radhermit Exp $ |
30 |
+ |
31 |
+*mediawiki-1.16.0 (09 Oct 2010) |
32 |
+ |
33 |
+ 09 Oct 2010; Tim Harder <radhermit@g.o> +mediawiki-1.16.0.ebuild, |
34 |
+ +files/postupgrade-1.16-en.txt: |
35 |
+ Version bump to the latest stable release (fixes bug #332745, thanks to |
36 |
+ Tobias Margitan for reporting and William Cooke for patches). Add sqlite3 |
37 |
+ USE flag, replace remaining pkg_setup use flag check with use |
38 |
+ dependencies, and add new postupgrade instructions since a few variables |
39 |
+ are set in LocalSettings.php instead of using AdminSettings.php. |
40 |
|
41 |
09 Oct 2010; Tim Harder <radhermit@g.o> mediawiki-1.15.5.ebuild: |
42 |
Call webapp_pkg_setup first in pkg_setup. |
43 |
|
44 |
|
45 |
|
46 |
1.1 www-apps/mediawiki/mediawiki-1.16.0.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/mediawiki/mediawiki-1.16.0.ebuild?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/mediawiki/mediawiki-1.16.0.ebuild?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: mediawiki-1.16.0.ebuild |
52 |
=================================================================== |
53 |
# Copyright 1999-2010 Gentoo Foundation |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/mediawiki-1.16.0.ebuild,v 1.1 2010/10/09 21:30:45 radhermit Exp $ |
56 |
|
57 |
EAPI="3" |
58 |
inherit webapp depend.php versionator eutils |
59 |
|
60 |
MY_BRANCH=$(get_version_component_range 1-2) |
61 |
|
62 |
DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)" |
63 |
HOMEPAGE="http://www.mediawiki.org" |
64 |
SRC_URI="http://download.wikimedia.org/mediawiki/${MY_BRANCH}/${P}.tar.gz" |
65 |
|
66 |
LICENSE="GPL-2" |
67 |
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" |
68 |
IUSE="imagemagick math mysql postgres +ocamlopt sqlite3" |
69 |
|
70 |
DEPEND="math? ( >=dev-lang/ocaml-3.0.6[ocamlopt?] )" |
71 |
RDEPEND="${DEPEND} |
72 |
math? ( |
73 |
app-text/dvipng |
74 |
virtual/tex-base |
75 |
app-text/ghostscript-gpl |
76 |
media-gfx/imagemagick |
77 |
) |
78 |
imagemagick? ( media-gfx/imagemagick ) |
79 |
|| ( <dev-lang/php-5.3[mysql?,pcre,postgres?,session,spl,xml] |
80 |
>=dev-lang/php-5.3[mysql?,postgres?,session,xml] ) |
81 |
|| ( dev-lang/php[gd] dev-lang/php[gd-external] ) |
82 |
sqlite3? ( >=dev-db/sqlite-3.6[fts3] )" |
83 |
|
84 |
RESTRICT="test" |
85 |
|
86 |
need_httpd_cgi |
87 |
need_php_httpd |
88 |
|
89 |
src_compile() { |
90 |
if use math; then |
91 |
einfo "Compiling math support" |
92 |
cd math || die |
93 |
if ! use ocamlopt; then |
94 |
sed -e "s/ocamlopt/ocamlc/" \ |
95 |
-e "s/cmxa/cma/" \ |
96 |
-e "s/cmx/cmo/g" -i Makefile || die |
97 |
fi |
98 |
emake || die |
99 |
else |
100 |
einfo "Math support not enabled. Skipping." |
101 |
fi |
102 |
|
103 |
# TODO: 1. think about includes/zhtable/ support |
104 |
# 2. generate docs (?): echo '0' | php mwdocgen.php |
105 |
} |
106 |
|
107 |
src_install() { |
108 |
webapp_src_preinst |
109 |
|
110 |
# First we install math, docs and then copy everything left into htdocs dir |
111 |
# to avoid bugs like #236411. |
112 |
|
113 |
# If we've enabled math USE-flag, install math support. |
114 |
# We ensure the directories are prepared for writing. The post- |
115 |
# install instructions guide the user to enable the feature. |
116 |
if use math; then |
117 |
einfo "Installing math support" |
118 |
exeinto "${MY_HTDOCSDIR}"/math |
119 |
doexe math/texvc || die "Failed to create math support executable." |
120 |
|
121 |
docinto math |
122 |
dodoc math/{README,TODO} |
123 |
docinto "" |
124 |
|
125 |
# Working directories. Server writeable. |
126 |
dodir "${MY_HTDOCSDIR}"/images/math |
127 |
webapp_serverowned "${MY_HTDOCSDIR}"/images/math |
128 |
dodir "${MY_HTDOCSDIR}"/images/tmp |
129 |
webapp_serverowned "${MY_HTDOCSDIR}"/images/tmp |
130 |
fi |
131 |
|
132 |
local DOCS="FAQ HISTORY INSTALL README RELEASE-NOTES UPGRADE" |
133 |
dodoc ${DOCS} docs/*.txt |
134 |
docinto php-memcached |
135 |
dodoc docs/php-memcached/* |
136 |
|
137 |
# Clean everything not used at the site... |
138 |
rm -rf ${DOCS} COPYING tests math t docs |
139 |
find . -name Makefile -delete |
140 |
# and install |
141 |
insinto "${MY_HTDOCSDIR}" |
142 |
doins -r . |
143 |
|
144 |
# If imagemagick is enabled then setup for image upload. |
145 |
# We ensure the directory is prepared for writing. |
146 |
if use imagemagick; then |
147 |
webapp_serverowned "${MY_HTDOCSDIR}"/images |
148 |
fi |
149 |
|
150 |
webapp_postinst_txt en "${FILESDIR}/postinstall-1.13-en.txt" |
151 |
webapp_postupgrade_txt en "${FILESDIR}/postupgrade-1.16-en.txt" |
152 |
webapp_src_install |
153 |
} |
154 |
|
155 |
pkg_preinst() { |
156 |
prev_instal="false" |
157 |
if has_version ${CATEGORY}/${PN}; then |
158 |
prev_instal="true" |
159 |
fi |
160 |
} |
161 |
|
162 |
pkg_postinst() { |
163 |
webapp_pkg_postinst |
164 |
if ${prev_instal}; then |
165 |
einfo |
166 |
elog "=== Consult the release notes ===" |
167 |
elog "Before doing anything, stop and consult the release notes" |
168 |
elog "/usr/share/doc/${PF}/RELEASE-NOTES.bz2" |
169 |
elog |
170 |
elog "These detail bug fixes, new features and functionality, and any" |
171 |
elog "particular points that may need to be noted during the upgrade procedure." |
172 |
einfo |
173 |
ewarn "Back up existing files and the database before upgrade." |
174 |
ewarn "http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki" |
175 |
ewarn "provides an overview of the backup process." |
176 |
einfo |
177 |
fi |
178 |
} |