Gentoo Archives: gentoo-commits

From: "Gunnar Wrobel (wrobel)" <wrobel@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apps/mediawiki: ChangeLog mediawiki-1.8.4.ebuild mediawiki-1.10.2.ebuild mediawiki-1.8.5.ebuild mediawiki-1.9.4.ebuild mediawiki-1.11.0.ebuild
Date: Mon, 17 Sep 2007 14:57:07
Message-Id: E1IXHuf-0001pk-8e@stork.gentoo.org
1 wrobel 07/09/17 14:49:25
2
3 Modified: ChangeLog mediawiki-1.8.4.ebuild
4 Added: mediawiki-1.10.2.ebuild mediawiki-1.8.5.ebuild
5 mediawiki-1.9.4.ebuild mediawiki-1.11.0.ebuild
6 Log:
7 Added mediawiki 1.11.0, 1.10.2, 1.9.4, 1.8.5 in response to sec issue #192197.
8 (Portage version: 2.1.2.12)
9
10 Revision Changes Path
11 1.85 www-apps/mediawiki/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/ChangeLog?rev=1.85&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/ChangeLog?rev=1.85&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/ChangeLog?r1=1.84&r2=1.85
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-apps/mediawiki/ChangeLog,v
20 retrieving revision 1.84
21 retrieving revision 1.85
22 diff -u -r1.84 -r1.85
23 --- ChangeLog 2 Jul 2007 14:36:56 -0000 1.84
24 +++ ChangeLog 17 Sep 2007 14:49:24 -0000 1.85
25 @@ -1,6 +1,16 @@
26 # ChangeLog for www-apps/mediawiki
27 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/ChangeLog,v 1.84 2007/07/02 14:36:56 peper Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/ChangeLog,v 1.85 2007/09/17 14:49:24 wrobel Exp $
30 +
31 +*mediawiki-1.11.0 (17 Sep 2007)
32 +*mediawiki-1.10.2 (17 Sep 2007)
33 +*mediawiki-1.9.4 (17 Sep 2007)
34 +*mediawiki-1.8.5 (17 Sep 2007)
35 +
36 + 17 Sep 2007; <wrobel@g.o> mediawiki-1.8.4.ebuild,
37 + +mediawiki-1.8.5.ebuild, +mediawiki-1.9.4.ebuild,
38 + +mediawiki-1.10.2.ebuild, +mediawiki-1.11.0.ebuild:
39 + Added mediawiki 1.11.0, 1.10.2, 1.9.4, 1.8.5 in response to sec issue #192197.
40
41 02 Jul 2007; Piotr JaroszyƄski <peper@g.o>
42 mediawiki-1.6.10.ebuild, mediawiki-1.8.3.ebuild, mediawiki-1.8.4.ebuild,
43
44
45
46 1.3 www-apps/mediawiki/mediawiki-1.8.4.ebuild
47
48 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/mediawiki-1.8.4.ebuild?rev=1.3&view=markup
49 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/mediawiki-1.8.4.ebuild?rev=1.3&content-type=text/plain
50 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/mediawiki-1.8.4.ebuild?r1=1.2&r2=1.3
51
52 Index: mediawiki-1.8.4.ebuild
53 ===================================================================
54 RCS file: /var/cvsroot/gentoo-x86/www-apps/mediawiki/mediawiki-1.8.4.ebuild,v
55 retrieving revision 1.2
56 retrieving revision 1.3
57 diff -u -r1.2 -r1.3
58 --- mediawiki-1.8.4.ebuild 2 Jul 2007 14:36:56 -0000 1.2
59 +++ mediawiki-1.8.4.ebuild 17 Sep 2007 14:49:24 -0000 1.3
60 @@ -1,12 +1,14 @@
61 # Copyright 1999-2007 Gentoo Foundation
62 # Distributed under the terms of the GNU General Public License v2
63 -# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/mediawiki-1.8.4.ebuild,v 1.2 2007/07/02 14:36:56 peper Exp $
64 +# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/mediawiki-1.8.4.ebuild,v 1.3 2007/09/17 14:49:24 wrobel Exp $
65
66 -inherit webapp depend.php
67 +inherit webapp depend.php versionator
68 +
69 +MY_BRANCH=$(get_version_component_range 1-2)
70
71 DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)"
72 HOMEPAGE="http://www.mediawiki.org"
73 -SRC_URI="mirror://sourceforge/wikipedia/${P/.0_/}.tar.gz"
74 +SRC_URI="http://download.wikimedia.org/mediawiki/${MY_BRANCH}/${P/.0_/}.tar.gz"
75 RESTRICT="mirror"
76 LICENSE="GPL-2"
77 KEYWORDS="amd64 ppc sparc x86"
78
79
80
81 1.1 www-apps/mediawiki/mediawiki-1.10.2.ebuild
82
83 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/mediawiki-1.10.2.ebuild?rev=1.1&view=markup
84 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/mediawiki-1.10.2.ebuild?rev=1.1&content-type=text/plain
85
86 Index: mediawiki-1.10.2.ebuild
87 ===================================================================
88 # Copyright 1999-2007 Gentoo Foundation
89 # Distributed under the terms of the GNU General Public License v2
90 # $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/mediawiki-1.10.2.ebuild,v 1.1 2007/09/17 14:49:24 wrobel Exp $
91
92 inherit webapp depend.php versionator
93
94 MY_BRANCH=$(get_version_component_range 1-2)
95
96 DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)"
97 HOMEPAGE="http://www.mediawiki.org"
98 SRC_URI="http://download.wikimedia.org/mediawiki/${MY_BRANCH}/${P/.0_/}.tar.gz"
99 #SRC_URI="mirror://sourceforge/wikipedia/${P/_/}.tar.gz"
100 RESTRICT="mirror"
101 LICENSE="GPL-2"
102 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
103 IUSE="imagemagick math mysql postgres restrict"
104
105 S="${WORKDIR}/${P/_/}"
106 #S="${WORKDIR}/${P/.0_/}"
107
108 DEPEND="math? ( >=dev-lang/ocaml-3.0.6 )"
109
110 RDEPEND="
111 >=dev-lang/php-5.1.4-r6
112 math? (
113 virtual/tetex
114 virtual/ghostscript
115 media-gfx/imagemagick
116 )
117 imagemagick? (
118 media-gfx/imagemagick
119 )
120 "
121
122 need_php
123
124 pkg_setup() {
125 webapp_pkg_setup
126 require_php_with_use pcre session
127 if use mysql ; then
128 require_php_with_use mysql
129 fi
130 if use postgres ; then
131 require_php_with_use postgres
132 fi
133 require_gd
134 }
135
136 src_unpack() {
137 unpack ${A}
138 cd ${S}
139
140 # XXX: besides, is/was this patch really that required? if so, why? (trapni)
141 # epatch ${FILESDIR}/jobindexlength-mysql.patch
142
143 if use restrict ; then
144 epatch ${FILESDIR}/access_restrict.patch
145 fi
146 }
147
148 src_compile() {
149 if use math; then
150 einfo "Compiling math support"
151 cd math || die
152 emake || die
153 else
154 einfo "No math support enabled. Skipping."
155 fi
156
157 # TODO: think about includes/zhtable/ support
158 }
159
160 src_install() {
161 webapp_src_preinst
162
163 # copy the app's main files excluding math support, docs, and tests
164 local DIRS=(
165 "bin"
166 "config"
167 "extensions"
168 "images"
169 "includes"
170 "includes/api"
171 "includes/cbt"
172 "includes/media"
173 "includes/normal"
174 "includes/templates"
175 "includes/zhtable"
176 "languages"
177 "languages/classes"
178 "languages/messages"
179 "locale"
180 "maintenance"
181 "maintenance/archives"
182 "maintenance/dtrace"
183 "maintenance/language"
184 "maintenance/ora"
185 "maintenance/postgres"
186 "maintenance/postgres/archives"
187 "maintenance/storage"
188 "serialized"
189 "skins"
190 "skins/chick"
191 "skins/common"
192 "skins/common/images"
193 "skins/common/images/icons"
194 "skins/disabled"
195 "skins/htmldump"
196 "skins/monobook"
197 "skins/myskin"
198 "skins/simple"
199 )
200 insinto ${MY_HTDOCSDIR}
201 doins *.php *.inc *.phtml
202 for DIR in ${DIRS[*]}; do
203 dodir ${MY_HTDOCSDIR}/${DIR}
204 insinto ${MY_HTDOCSDIR}/${DIR}
205 doins ${DIR}/*
206 test -f ${DIR}/.htaccess && doins ${DIR}/.htaccess
207 done
208
209 # installing some docs
210 local DOCS=(
211 "AdminSettings.sample"
212 "COPYING"
213 "FAQ"
214 "HISTORY"
215 "INSTALL"
216 "README"
217 "RELEASE-NOTES"
218 "UPGRADE"
219 )
220 for DOC in ${DOCS[*]}; do
221 dodoc "${DOC}"
222 rm -f "${DOC}"
223 done
224 dodoc docs/*.txt
225 rm -f docs/*.txt
226
227 docinto php-memcached
228 dodoc docs/php-memcached/*
229
230 # If imagemagick is enabled then setup for image upload.
231 # We ensure the directory is prepared for writing. The post-
232 # install instructions guide the user to enable the feature.
233 if use imagemagick; then
234 webapp_serverowned ${MY_HTDOCSDIR}/images
235 fi
236
237 # If we've enabled math USE-flag, install math support.
238 # We ensure the directories are prepared for writing. The post-
239 # install instructions guide the user to enable the feature.
240 if use math; then
241 einfo "Installing math support"
242 dodir ${MY_HTDOCSDIR}/math
243 exeinto ${MY_HTDOCSDIR}/math
244 doexe math/texvc
245
246 # Docs
247 docinto math
248 dodoc math/README math/TODO
249
250 # Working directories. Server writeable.
251 dodir ${MY_HTDOCSDIR}/images/math
252 webapp_serverowned ${MY_HTDOCSDIR}/images/math
253 dodir ${MY_HTDOCSDIR}/images/tmp
254 webapp_serverowned ${MY_HTDOCSDIR}/images/tmp
255 fi
256
257 webapp_postinst_txt en ${FILESDIR}/postinstall-1.5-en.txt
258 webapp_src_install
259 }
260
261
262
263 1.1 www-apps/mediawiki/mediawiki-1.8.5.ebuild
264
265 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/mediawiki-1.8.5.ebuild?rev=1.1&view=markup
266 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/mediawiki-1.8.5.ebuild?rev=1.1&content-type=text/plain
267
268 Index: mediawiki-1.8.5.ebuild
269 ===================================================================
270 # Copyright 1999-2007 Gentoo Foundation
271 # Distributed under the terms of the GNU General Public License v2
272 # $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/mediawiki-1.8.5.ebuild,v 1.1 2007/09/17 14:49:24 wrobel Exp $
273
274 inherit webapp depend.php versionator
275
276 MY_BRANCH=$(get_version_component_range 1-2)
277
278 DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)"
279 HOMEPAGE="http://www.mediawiki.org"
280 SRC_URI="http://download.wikimedia.org/mediawiki/${MY_BRANCH}/${P/.0_/}.tar.gz"
281 RESTRICT="mirror"
282 LICENSE="GPL-2"
283 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
284 IUSE="imagemagick math mysql postgres restrict"
285
286 S="${WORKDIR}/${P/.0_/}"
287
288 DEPEND="math? ( >=dev-lang/ocaml-3.0.6 )"
289
290 RDEPEND="
291 >=dev-lang/php-5.1.4-r6
292 math? (
293 virtual/tetex
294 virtual/ghostscript
295 media-gfx/imagemagick
296 )
297 imagemagick? (
298 media-gfx/imagemagick
299 )
300 "
301
302 need_php
303
304 pkg_setup() {
305 webapp_pkg_setup
306 require_php_with_use pcre session
307 if use mysql ; then
308 require_php_with_use mysql
309 fi
310 if use postgres ; then
311 require_php_with_use postgres
312 fi
313 require_gd
314 }
315
316 src_unpack() {
317 unpack ${A}
318 cd ${S}
319 epatch ${FILESDIR}/jobindexlength-mysql.patch
320 if use restrict ; then
321 epatch ${FILESDIR}/access_restrict.patch
322 fi
323 }
324
325 src_compile() {
326 if use math; then
327 einfo "Compiling math support"
328 cd math || die
329 emake || die
330 else
331 einfo "No math support enabled. Skipping."
332 fi
333
334 # TODO: think about includes/zhtable/ support
335 }
336
337 src_install() {
338 webapp_src_preinst
339
340 # copy the app's main files excluding math support, docs, and tests
341 local DIRS=(
342 "bin"
343 "config"
344 "extensions"
345 "images"
346 "includes"
347 "includes/api"
348 "includes/cbt"
349 "includes/normal"
350 "includes/templates"
351 "includes/zhtable"
352 "languages"
353 "languages/classes"
354 "languages/messages"
355 "locale"
356 "maintenance"
357 "maintenance/archives"
358 "maintenance/postgres"
359 "maintenance/dtrace"
360 "maintenance/mysql5"
361 "maintenance/storage"
362 "serialized"
363 "skins"
364 "skins/chick"
365 "skins/common"
366 "skins/common/images"
367 "skins/common/images/icons"
368 "skins/disabled"
369 "skins/htmldump"
370 "skins/monobook"
371 "skins/myskin"
372 "skins/simple"
373 )
374 insinto ${MY_HTDOCSDIR}
375 doins *.php *.inc *.phtml
376 for DIR in ${DIRS[*]}; do
377 dodir ${MY_HTDOCSDIR}/${DIR}
378 insinto ${MY_HTDOCSDIR}/${DIR}
379 doins ${DIR}/*
380 test -f ${DIR}/.htaccess && doins ${DIR}/.htaccess
381 done
382
383 # installing some docs
384 local DOCS=(
385 "AdminSettings.sample"
386 "COPYING"
387 "FAQ"
388 "HISTORY"
389 "INSTALL"
390 "README"
391 "RELEASE-NOTES"
392 "UPGRADE"
393 )
394 for DOC in ${DOCS[*]}; do
395 dodoc "${DOC}"
396 rm -f "${DOC}"
397 done
398 dodoc docs/*.txt
399 rm -f docs/*.txt
400
401 docinto php-memcached
402 dodoc docs/php-memcached/*
403
404 # If imagemagick is enabled then setup for image upload.
405 # We ensure the directory is prepared for writing. The post-
406 # install instructions guide the user to enable the feature.
407 if use imagemagick; then
408 webapp_serverowned ${MY_HTDOCSDIR}/images
409 fi
410
411 # If we've enabled math USE-flag, install math support.
412 # We ensure the directories are prepared for writing. The post-
413 # install instructions guide the user to enable the feature.
414 if use math; then
415 einfo "Installing math support"
416 dodir ${MY_HTDOCSDIR}/math
417 exeinto ${MY_HTDOCSDIR}/math
418 doexe math/texvc
419
420 # Docs
421 docinto math
422 dodoc math/README math/TODO
423
424 # Working directories. Server writeable.
425 dodir ${MY_HTDOCSDIR}/images/math
426 webapp_serverowned ${MY_HTDOCSDIR}/images/math
427 dodir ${MY_HTDOCSDIR}/images/tmp
428 webapp_serverowned ${MY_HTDOCSDIR}/images/tmp
429 fi
430
431 webapp_postinst_txt en ${FILESDIR}/postinstall-1.5-en.txt
432 webapp_src_install
433 }
434
435
436
437 1.1 www-apps/mediawiki/mediawiki-1.9.4.ebuild
438
439 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/mediawiki-1.9.4.ebuild?rev=1.1&view=markup
440 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/mediawiki-1.9.4.ebuild?rev=1.1&content-type=text/plain
441
442 Index: mediawiki-1.9.4.ebuild
443 ===================================================================
444 # Copyright 1999-2007 Gentoo Foundation
445 # Distributed under the terms of the GNU General Public License v2
446 # $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/mediawiki-1.9.4.ebuild,v 1.1 2007/09/17 14:49:24 wrobel Exp $
447
448 inherit webapp depend.php versionator
449
450 MY_BRANCH=$(get_version_component_range 1-2)
451
452 DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)"
453 HOMEPAGE="http://www.mediawiki.org"
454 SRC_URI="http://download.wikimedia.org/mediawiki/${MY_BRANCH}/${P/.0_/}.tar.gz"
455 RESTRICT="mirror"
456 LICENSE="GPL-2"
457 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
458 IUSE="imagemagick math mysql postgres restrict"
459
460 S="${WORKDIR}/${P/.0_/}"
461
462 DEPEND="math? ( >=dev-lang/ocaml-3.0.6 )"
463
464 RDEPEND="
465 >=dev-lang/php-5.1.4-r6
466 math? (
467 virtual/tetex
468 virtual/ghostscript
469 media-gfx/imagemagick
470 )
471 imagemagick? (
472 media-gfx/imagemagick
473 )
474 "
475
476 need_php
477
478 pkg_setup() {
479 webapp_pkg_setup
480 require_php_with_use pcre session
481 if use mysql ; then
482 require_php_with_use mysql
483 fi
484 if use postgres ; then
485 require_php_with_use postgres
486 fi
487 require_gd
488 }
489
490 src_unpack() {
491 unpack ${A}
492 cd ${S}
493 epatch ${FILESDIR}/jobindexlength-mysql.patch
494 if use restrict ; then
495 epatch ${FILESDIR}/access_restrict.patch
496 fi
497 }
498
499 src_compile() {
500 if use math; then
501 einfo "Compiling math support"
502 cd math || die
503 emake || die
504 else
505 einfo "No math support enabled. Skipping."
506 fi
507
508 # TODO: think about includes/zhtable/ support
509 }
510
511 src_install() {
512 webapp_src_preinst
513
514 # copy the app's main files excluding math support, docs, and tests
515 local DIRS=(
516 "bin"
517 "config"
518 "extensions"
519 "images"
520 "includes"
521 "includes/api"
522 "includes/cbt"
523 "includes/normal"
524 "includes/templates"
525 "includes/zhtable"
526 "languages"
527 "languages/classes"
528 "languages/messages"
529 "locale"
530 "maintenance"
531 "maintenance/archives"
532 "maintenance/postgres"
533 "maintenance/dtrace"
534 "maintenance/mysql5"
535 "maintenance/storage"
536 "serialized"
537 "skins"
538 "skins/chick"
539 "skins/common"
540 "skins/common/images"
541 "skins/common/images/icons"
542 "skins/disabled"
543 "skins/htmldump"
544 "skins/monobook"
545 "skins/myskin"
546 "skins/simple"
547 )
548 insinto ${MY_HTDOCSDIR}
549 doins *.php *.inc *.phtml
550 for DIR in ${DIRS[*]}; do
551 dodir ${MY_HTDOCSDIR}/${DIR}
552 insinto ${MY_HTDOCSDIR}/${DIR}
553 doins ${DIR}/*
554 test -f ${DIR}/.htaccess && doins ${DIR}/.htaccess
555 done
556
557 # installing some docs
558 local DOCS=(
559 "AdminSettings.sample"
560 "COPYING"
561 "FAQ"
562 "HISTORY"
563 "INSTALL"
564 "README"
565 "RELEASE-NOTES"
566 "UPGRADE"
567 )
568 for DOC in ${DOCS[*]}; do
569 dodoc "${DOC}"
570 rm -f "${DOC}"
571 done
572 dodoc docs/*.txt
573 rm -f docs/*.txt
574
575 docinto php-memcached
576 dodoc docs/php-memcached/*
577
578 # If imagemagick is enabled then setup for image upload.
579 # We ensure the directory is prepared for writing. The post-
580 # install instructions guide the user to enable the feature.
581 if use imagemagick; then
582 webapp_serverowned ${MY_HTDOCSDIR}/images
583 fi
584
585 # If we've enabled math USE-flag, install math support.
586 # We ensure the directories are prepared for writing. The post-
587 # install instructions guide the user to enable the feature.
588 if use math; then
589 einfo "Installing math support"
590 dodir ${MY_HTDOCSDIR}/math
591 exeinto ${MY_HTDOCSDIR}/math
592 doexe math/texvc
593
594 # Docs
595 docinto math
596 dodoc math/README math/TODO
597
598 # Working directories. Server writeable.
599 dodir ${MY_HTDOCSDIR}/images/math
600 webapp_serverowned ${MY_HTDOCSDIR}/images/math
601 dodir ${MY_HTDOCSDIR}/images/tmp
602 webapp_serverowned ${MY_HTDOCSDIR}/images/tmp
603 fi
604
605 webapp_postinst_txt en ${FILESDIR}/postinstall-1.5-en.txt
606 webapp_src_install
607 }
608
609
610
611 1.1 www-apps/mediawiki/mediawiki-1.11.0.ebuild
612
613 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/mediawiki-1.11.0.ebuild?rev=1.1&view=markup
614 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/mediawiki-1.11.0.ebuild?rev=1.1&content-type=text/plain
615
616 Index: mediawiki-1.11.0.ebuild
617 ===================================================================
618 # Copyright 1999-2007 Gentoo Foundation
619 # Distributed under the terms of the GNU General Public License v2
620 # $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/mediawiki-1.11.0.ebuild,v 1.1 2007/09/17 14:49:24 wrobel Exp $
621
622 inherit webapp depend.php versionator
623
624 MY_BRANCH=$(get_version_component_range 1-2)
625
626 DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)"
627 HOMEPAGE="http://www.mediawiki.org"
628 SRC_URI="http://download.wikimedia.org/mediawiki/${MY_BRANCH}/${P/.0_/}.tar.gz"
629 #SRC_URI="mirror://sourceforge/wikipedia/${P/_/}.tar.gz"
630 RESTRICT="mirror"
631 LICENSE="GPL-2"
632 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
633 IUSE="imagemagick math mysql postgres restrict"
634
635 S="${WORKDIR}/${P/_/}"
636 #S="${WORKDIR}/${P/.0_/}"
637
638 DEPEND="math? ( >=dev-lang/ocaml-3.0.6 )"
639
640 RDEPEND="
641 >=dev-lang/php-5.1.4-r6
642 math? (
643 virtual/tetex
644 virtual/ghostscript
645 media-gfx/imagemagick
646 )
647 imagemagick? (
648 media-gfx/imagemagick
649 )
650 "
651
652 need_php
653
654 pkg_setup() {
655 webapp_pkg_setup
656 require_php_with_use pcre session
657 if use mysql ; then
658 require_php_with_use mysql
659 fi
660 if use postgres ; then
661 require_php_with_use postgres
662 fi
663 require_gd
664 }
665
666 src_unpack() {
667 unpack ${A}
668 cd ${S}
669
670 # XXX: besides, is/was this patch really that required? if so, why? (trapni)
671 # epatch ${FILESDIR}/jobindexlength-mysql.patch
672
673 if use restrict ; then
674 epatch ${FILESDIR}/access_restrict.patch
675 fi
676 }
677
678 src_compile() {
679 if use math; then
680 einfo "Compiling math support"
681 cd math || die
682 emake || die
683 else
684 einfo "No math support enabled. Skipping."
685 fi
686
687 # TODO: think about includes/zhtable/ support
688 }
689
690 src_install() {
691 webapp_src_preinst
692
693 # copy the app's main files excluding math support, docs, and tests
694 local DIRS=(
695 "bin"
696 "config"
697 "extensions"
698 "images"
699 "includes"
700 "includes/api"
701 "includes/cbt"
702 "includes/media"
703 "includes/normal"
704 "includes/templates"
705 "includes/zhtable"
706 "languages"
707 "languages/classes"
708 "languages/messages"
709 "locale"
710 "maintenance"
711 "maintenance/archives"
712 "maintenance/dtrace"
713 "maintenance/language"
714 "maintenance/ora"
715 "maintenance/postgres"
716 "maintenance/postgres/archives"
717 "maintenance/storage"
718 "serialized"
719 "skins"
720 "skins/chick"
721 "skins/common"
722 "skins/common/images"
723 "skins/common/images/icons"
724 "skins/disabled"
725 "skins/htmldump"
726 "skins/monobook"
727 "skins/myskin"
728 "skins/simple"
729 )
730 insinto ${MY_HTDOCSDIR}
731 doins *.php *.inc *.phtml
732 for DIR in ${DIRS[*]}; do
733 dodir ${MY_HTDOCSDIR}/${DIR}
734 insinto ${MY_HTDOCSDIR}/${DIR}
735 doins ${DIR}/*
736 test -f ${DIR}/.htaccess && doins ${DIR}/.htaccess
737 done
738
739 # installing some docs
740 local DOCS=(
741 "AdminSettings.sample"
742 "COPYING"
743 "FAQ"
744 "HISTORY"
745 "INSTALL"
746 "README"
747 "RELEASE-NOTES"
748 "UPGRADE"
749 )
750 for DOC in ${DOCS[*]}; do
751 dodoc "${DOC}"
752 rm -f "${DOC}"
753 done
754 dodoc docs/*.txt
755 rm -f docs/*.txt
756
757 docinto php-memcached
758 dodoc docs/php-memcached/*
759
760 # If imagemagick is enabled then setup for image upload.
761 # We ensure the directory is prepared for writing. The post-
762 # install instructions guide the user to enable the feature.
763 if use imagemagick; then
764 webapp_serverowned ${MY_HTDOCSDIR}/images
765 fi
766
767 # If we've enabled math USE-flag, install math support.
768 # We ensure the directories are prepared for writing. The post-
769 # install instructions guide the user to enable the feature.
770 if use math; then
771 einfo "Installing math support"
772 dodir ${MY_HTDOCSDIR}/math
773 exeinto ${MY_HTDOCSDIR}/math
774 doexe math/texvc
775
776 # Docs
777 docinto math
778 dodoc math/README math/TODO
779
780 # Working directories. Server writeable.
781 dodir ${MY_HTDOCSDIR}/images/math
782 webapp_serverowned ${MY_HTDOCSDIR}/images/math
783 dodir ${MY_HTDOCSDIR}/images/tmp
784 webapp_serverowned ${MY_HTDOCSDIR}/images/tmp
785 fi
786
787 webapp_postinst_txt en ${FILESDIR}/postinstall-1.5-en.txt
788 webapp_src_install
789 }
790
791
792
793 --
794 gentoo-commits@g.o mailing list