Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apps/mediawiki: ChangeLog mediawiki-1.14.0.ebuild mediawiki-1.13.5.ebuild
Date: Tue, 07 Apr 2009 15:42:23
Message-Id: E1LrDRM-0007lR-Gh@stork.gentoo.org
1 pva 09/04/07 15:42:20
2
3 Modified: ChangeLog
4 Added: mediawiki-1.14.0.ebuild mediawiki-1.13.5.ebuild
5 Log:
6 Version bump, bug #261126 and bug #261128, thank Patrick for both reports.
7 (Portage version: 2.1.6.11/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.118 www-apps/mediawiki/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/ChangeLog?rev=1.118&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/ChangeLog?rev=1.118&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/ChangeLog?r1=1.117&r2=1.118
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-apps/mediawiki/ChangeLog,v
19 retrieving revision 1.117
20 retrieving revision 1.118
21 diff -u -r1.117 -r1.118
22 --- ChangeLog 1 Jan 2009 23:13:27 -0000 1.117
23 +++ ChangeLog 7 Apr 2009 15:42:20 -0000 1.118
24 @@ -1,6 +1,13 @@
25 # ChangeLog for www-apps/mediawiki
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/ChangeLog,v 1.117 2009/01/01 23:13:27 keytoaster Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/ChangeLog,v 1.118 2009/04/07 15:42:20 pva Exp $
29 +
30 +*mediawiki-1.14.0 (07 Apr 2009)
31 +*mediawiki-1.13.5 (07 Apr 2009)
32 +
33 + 07 Apr 2009; Peter Volkov <pva@g.o> +mediawiki-1.13.5.ebuild,
34 + +mediawiki-1.14.0.ebuild:
35 + Version bump, bug #261126 and bug #261128, thank Patrick for both reports.
36
37 01 Jan 2009; Tobias Heinlein <keytoaster@g.o>
38 mediawiki-1.13.3.ebuild:
39
40
41
42 1.1 www-apps/mediawiki/mediawiki-1.14.0.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/mediawiki-1.14.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/mediawiki-1.14.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: mediawiki-1.14.0.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/mediawiki-1.14.0.ebuild,v 1.1 2009/04/07 15:42:20 pva Exp $
52
53 EAPI="1"
54 inherit webapp depend.php versionator eutils
55
56 MY_BRANCH=$(get_version_component_range 1-2)
57
58 DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)"
59 HOMEPAGE="http://www.mediawiki.org"
60 SRC_URI="http://download.wikimedia.org/mediawiki/${MY_BRANCH}/${P}.tar.gz"
61
62 LICENSE="GPL-2"
63 KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
64 IUSE="imagemagick math mysql postgres +ocamlopt"
65
66 DEPEND="math? ( >=dev-lang/ocaml-3.0.6 )"
67 RDEPEND="${DEPEND}
68 math? (
69 app-text/dvipng
70 virtual/tex-base
71 virtual/ghostscript
72 media-gfx/imagemagick
73 )
74 imagemagick? ( media-gfx/imagemagick )"
75
76 RESTRICT="test"
77
78 need_httpd_cgi
79 need_php_httpd
80
81 pkg_setup() {
82 webapp_pkg_setup
83 local flags="pcre session xml"
84 use mysql && flags="${flags} mysql"
85 use postgres && flags="${flags} postgres"
86 if ! PHPCHECKNODIE="yes" require_php_with_use ${flags} || \
87 ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ; then
88 die "Re-install ${PHP_PKG} with ${flags} and either gd or gd-external"
89 fi
90
91 # see Bug 204812
92 if use ocamlopt && use math && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then
93 eerror "In order to build ${PN} with native code support from ocaml"
94 eerror "You first need to have a native code ocaml compiler."
95 eerror "You need to install dev-lang/ocaml with ocamlopt useflag on."
96 die "Please install ocaml with ocamlopt useflag"
97 fi
98 }
99
100 src_compile() {
101 if use math; then
102 einfo "Compiling math support"
103 cd math || die
104 if ! use ocamlopt; then
105 sed -e "s/ocamlopt/ocamlc/" \
106 -e "s/cmxa/cma/" \
107 -e "s/cmx/cmo/g" -i Makefile || die
108 fi
109 emake || die
110 else
111 einfo "No math support enabled. Skipping."
112 fi
113
114 # TODO: 1. think about includes/zhtable/ support
115 # 2. generate docs (?): echo '0' | php mwdocgen.php
116 }
117
118 src_install() {
119 webapp_src_preinst
120
121 # First we install math, docs and then copy everything left into htdocs dir
122 # to avoid bugs like #236411.
123
124 # If we've enabled math USE-flag, install math support.
125 # We ensure the directories are prepared for writing. The post-
126 # install instructions guide the user to enable the feature.
127 if use math; then
128 einfo "Installing math support"
129 exeinto "${MY_HTDOCSDIR}"/math
130 doexe math/texvc || die "Failed to create math support executable."
131
132 docinto math
133 dodoc math/{README,TODO}
134 docinto ""
135
136 # Working directories. Server writeable.
137 dodir "${MY_HTDOCSDIR}"/images/math
138 webapp_serverowned "${MY_HTDOCSDIR}"/images/math
139 dodir "${MY_HTDOCSDIR}"/images/tmp
140 webapp_serverowned "${MY_HTDOCSDIR}"/images/tmp
141 fi
142
143 local DOCS="FAQ HISTORY INSTALL README RELEASE-NOTES UPGRADE"
144 dodoc ${DOCS} docs/*.txt
145 docinto php-memcached
146 dodoc docs/php-memcached/*
147
148 # Clean everything not used at the site...
149 rm -rf ${DOCS} COPYING tests math t docs
150 find . -name Makefile -delete
151 # and install
152 insinto "${MY_HTDOCSDIR}"
153 doins -r .
154
155 # If imagemagick is enabled then setup for image upload.
156 # We ensure the directory is prepared for writing.
157 if use imagemagick; then
158 webapp_serverowned "${MY_HTDOCSDIR}"/images
159 fi
160
161 webapp_postinst_txt en "${FILESDIR}/postinstall-1.13-en.txt"
162 webapp_postupgrade_txt en "${FILESDIR}/postupgrade-1.13-en.txt"
163 webapp_src_install
164 }
165
166 pkg_preinst() {
167 prev_instal="false"
168 if has_version ${CATEGORY}/${PN}; then
169 prev_instal="true"
170 fi
171 }
172
173 pkg_postinst() {
174 webapp_pkg_postinst
175 if ${prev_instal}; then
176 einfo
177 elog "=== Consult the release notes ==="
178 elog "Before doing anything, stop and consult the release notes"
179 elog "/usr/share/doc/${PF}/RELEASE-NOTES.bz2"
180 elog
181 elog "These detail bug fixes, new features and functionality, and any"
182 elog "particular points that may need to be noted during the upgrade procedure."
183 einfo
184 ewarn "Back up existing files and the database before upgrade."
185 ewarn "http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki"
186 ewarn "provides an overview of the backup process."
187 einfo
188 fi
189 }
190
191
192
193 1.1 www-apps/mediawiki/mediawiki-1.13.5.ebuild
194
195 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/mediawiki-1.13.5.ebuild?rev=1.1&view=markup
196 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/mediawiki-1.13.5.ebuild?rev=1.1&content-type=text/plain
197
198 Index: mediawiki-1.13.5.ebuild
199 ===================================================================
200 # Copyright 1999-2009 Gentoo Foundation
201 # Distributed under the terms of the GNU General Public License v2
202 # $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/mediawiki-1.13.5.ebuild,v 1.1 2009/04/07 15:42:20 pva Exp $
203
204 EAPI="1"
205 inherit webapp depend.php versionator eutils
206
207 MY_BRANCH=$(get_version_component_range 1-2)
208
209 DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)"
210 HOMEPAGE="http://www.mediawiki.org"
211 SRC_URI="http://download.wikimedia.org/mediawiki/${MY_BRANCH}/${P}.tar.gz"
212
213 LICENSE="GPL-2"
214 KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
215 IUSE="imagemagick math mysql postgres +ocamlopt"
216
217 DEPEND="math? ( >=dev-lang/ocaml-3.0.6 )"
218 RDEPEND="${DEPEND}
219 math? (
220 app-text/dvipng
221 virtual/tex-base
222 virtual/ghostscript
223 media-gfx/imagemagick
224 )
225 imagemagick? ( media-gfx/imagemagick )"
226
227 RESTRICT="test"
228
229 need_httpd_cgi
230 need_php_httpd
231
232 pkg_setup() {
233 webapp_pkg_setup
234 local flags="pcre session xml"
235 use mysql && flags="${flags} mysql"
236 use postgres && flags="${flags} postgres"
237 if ! PHPCHECKNODIE="yes" require_php_with_use ${flags} || \
238 ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ; then
239 die "Re-install ${PHP_PKG} with ${flags} and either gd or gd-external"
240 fi
241
242 # see Bug 204812
243 if use ocamlopt && use math && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then
244 eerror "In order to build ${PN} with native code support from ocaml"
245 eerror "You first need to have a native code ocaml compiler."
246 eerror "You need to install dev-lang/ocaml with ocamlopt useflag on."
247 die "Please install ocaml with ocamlopt useflag"
248 fi
249 }
250
251 src_compile() {
252 if use math; then
253 einfo "Compiling math support"
254 cd math || die
255 if ! use ocamlopt; then
256 sed -e "s/ocamlopt/ocamlc/" \
257 -e "s/cmxa/cma/" \
258 -e "s/cmx/cmo/g" -i Makefile || die
259 fi
260 emake || die
261 else
262 einfo "No math support enabled. Skipping."
263 fi
264
265 # TODO: 1. think about includes/zhtable/ support
266 # 2. generate docs (?): echo '0' | php mwdocgen.php
267 }
268
269 src_install() {
270 webapp_src_preinst
271
272 # First we install math, docs and then copy everything left into htdocs dir
273 # to avoid bugs like #236411.
274
275 # If we've enabled math USE-flag, install math support.
276 # We ensure the directories are prepared for writing. The post-
277 # install instructions guide the user to enable the feature.
278 if use math; then
279 einfo "Installing math support"
280 exeinto "${MY_HTDOCSDIR}"/math
281 doexe math/texvc || die "Failed to create math support executable."
282
283 docinto math
284 dodoc math/{README,TODO}
285 docinto ""
286
287 # Working directories. Server writeable.
288 dodir "${MY_HTDOCSDIR}"/images/math
289 webapp_serverowned "${MY_HTDOCSDIR}"/images/math
290 dodir "${MY_HTDOCSDIR}"/images/tmp
291 webapp_serverowned "${MY_HTDOCSDIR}"/images/tmp
292 fi
293
294 local DOCS="FAQ HISTORY INSTALL README RELEASE-NOTES UPGRADE"
295 dodoc ${DOCS} docs/*.txt
296 docinto php-memcached
297 dodoc docs/php-memcached/*
298
299 # Clean everything not used at the site...
300 rm -rf ${DOCS} COPYING tests math t docs
301 find . -name Makefile -delete
302 # and install
303 insinto "${MY_HTDOCSDIR}"
304 doins -r .
305
306 # If imagemagick is enabled then setup for image upload.
307 # We ensure the directory is prepared for writing.
308 if use imagemagick; then
309 webapp_serverowned "${MY_HTDOCSDIR}"/images
310 fi
311
312 webapp_postinst_txt en "${FILESDIR}/postinstall-1.13-en.txt"
313 webapp_postupgrade_txt en "${FILESDIR}/postupgrade-1.13-en.txt"
314 webapp_src_install
315 }
316
317 pkg_preinst() {
318 prev_instal="false"
319 if has_version ${CATEGORY}/${PN}; then
320 prev_instal="true"
321 fi
322 }
323
324 pkg_postinst() {
325 webapp_pkg_postinst
326 if ${prev_instal}; then
327 einfo
328 elog "=== Consult the release notes ==="
329 elog "Before doing anything, stop and consult the release notes"
330 elog "/usr/share/doc/${PF}/RELEASE-NOTES.bz2"
331 elog
332 elog "These detail bug fixes, new features and functionality, and any"
333 elog "particular points that may need to be noted during the upgrade procedure."
334 einfo
335 ewarn "Back up existing files and the database before upgrade."
336 ewarn "http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki"
337 ewarn "provides an overview of the backup process."
338 einfo
339 fi
340 }