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