1 |
hollow 08/03/03 13:27:49 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mediawiki-1.11.2.ebuild |
5 |
Log: |
6 |
version bump wrt security #212170 |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.99 www-apps/mediawiki/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/ChangeLog?rev=1.99&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/ChangeLog?rev=1.99&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/ChangeLog?r1=1.98&r2=1.99 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/www-apps/mediawiki/ChangeLog,v |
19 |
retrieving revision 1.98 |
20 |
retrieving revision 1.99 |
21 |
diff -u -r1.98 -r1.99 |
22 |
--- ChangeLog 26 Feb 2008 07:11:16 -0000 1.98 |
23 |
+++ ChangeLog 3 Mar 2008 13:27:49 -0000 1.99 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for www-apps/mediawiki |
26 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/ChangeLog,v 1.98 2008/02/26 07:11:16 wrobel Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/ChangeLog,v 1.99 2008/03/03 13:27:49 hollow Exp $ |
29 |
+ |
30 |
+*mediawiki-1.11.2 (03 Mar 2008) |
31 |
+ |
32 |
+ 03 Mar 2008; Benedikt Böhm <hollow@g.o> +mediawiki-1.11.2.ebuild: |
33 |
+ version bump wrt security #212170 |
34 |
|
35 |
26 Feb 2008; Gunnar Wrobel <wrobel@g.o> |
36 |
-files/postinstall-1.5-en.txt, -mediawiki-1.8.5.ebuild, |
37 |
|
38 |
|
39 |
|
40 |
1.1 www-apps/mediawiki/mediawiki-1.11.2.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/mediawiki-1.11.2.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/mediawiki-1.11.2.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: mediawiki-1.11.2.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2008 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/mediawiki-1.11.2.ebuild,v 1.1 2008/03/03 13:27:49 hollow Exp $ |
50 |
|
51 |
EAPI="1" |
52 |
inherit webapp depend.php versionator eutils |
53 |
|
54 |
MY_BRANCH=$(get_version_component_range 1-2) |
55 |
|
56 |
DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)" |
57 |
HOMEPAGE="http://www.mediawiki.org" |
58 |
SRC_URI="http://download.wikimedia.org/mediawiki/${MY_BRANCH}/${P}.tar.gz" |
59 |
|
60 |
LICENSE="GPL-2" |
61 |
KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
62 |
IUSE="imagemagick math mysql postgres restrict +ocamlopt" |
63 |
|
64 |
DEPEND="math? ( >=dev-lang/ocaml-3.0.6 )" |
65 |
RDEPEND="${DEPEND} |
66 |
math? ( virtual/tetex |
67 |
virtual/ghostscript |
68 |
media-gfx/imagemagick ) |
69 |
imagemagick? ( media-gfx/imagemagick )" |
70 |
|
71 |
RESTRICT="test" |
72 |
|
73 |
need_httpd_cgi |
74 |
need_php_httpd |
75 |
|
76 |
pkg_setup() { |
77 |
webapp_pkg_setup |
78 |
local flags="pcre session xml" |
79 |
use mysql && flags="${flags} mysql" |
80 |
use postgres && flags="${flags} postgres" |
81 |
if ! PHPCHECKNODIE="yes" require_php_with_use ${flags} || \ |
82 |
! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ; then |
83 |
die "Re-install ${PHP_PKG} with ${flags} and either gd or gd-external" |
84 |
fi |
85 |
|
86 |
# see Bug 204812 |
87 |
if use ocamlopt && use math && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then |
88 |
eerror "In order to build ${PN} with native code support from ocaml" |
89 |
eerror "You first need to have a native code ocaml compiler." |
90 |
eerror "You need to install dev-lang/ocaml with ocamlopt useflag on." |
91 |
die "Please install ocaml with ocamlopt useflag" |
92 |
fi |
93 |
} |
94 |
|
95 |
src_unpack() { |
96 |
unpack ${A} |
97 |
cd "${S}" |
98 |
|
99 |
# XXX: besides, is/was this patch really that required? if so, why? (trapni) |
100 |
# epatch ${FILESDIR}/jobindexlength-mysql.patch |
101 |
|
102 |
if use restrict ; then |
103 |
epatch "${FILESDIR}/access_restrict.patch" |
104 |
fi |
105 |
} |
106 |
|
107 |
src_compile() { |
108 |
if use math; then |
109 |
einfo "Compiling math support" |
110 |
cd math || die |
111 |
if ! use ocamlopt; then |
112 |
sed -i -e "s/ocamlopt/ocamlc/" Makefile |
113 |
sed -i -e "s/cmxa/cma/" Makefile |
114 |
sed -i -e "s/cmx/cmo/g" Makefile |
115 |
fi |
116 |
emake || die |
117 |
else |
118 |
einfo "No math support enabled. Skipping." |
119 |
fi |
120 |
|
121 |
# TODO: think about includes/zhtable/ support |
122 |
} |
123 |
|
124 |
src_install() { |
125 |
webapp_src_preinst |
126 |
|
127 |
# copy the app's main files excluding math support, docs, and tests |
128 |
local DIRS=( |
129 |
"bin" |
130 |
"config" |
131 |
"extensions" |
132 |
"images" |
133 |
"includes" |
134 |
"includes/api" |
135 |
"includes/cbt" |
136 |
"includes/filerepo" |
137 |
"includes/media" |
138 |
"includes/normal" |
139 |
"includes/templates" |
140 |
"includes/zhtable" |
141 |
"languages" |
142 |
"languages/classes" |
143 |
"languages/messages" |
144 |
"locale" |
145 |
"maintenance" |
146 |
"maintenance/archives" |
147 |
"maintenance/dtrace" |
148 |
"maintenance/language" |
149 |
"maintenance/ora" |
150 |
"maintenance/postgres" |
151 |
"maintenance/postgres/archives" |
152 |
"maintenance/storage" |
153 |
"serialized" |
154 |
"skins" |
155 |
"skins/chick" |
156 |
"skins/common" |
157 |
"skins/common/images" |
158 |
"skins/common/images/icons" |
159 |
"skins/disabled" |
160 |
"skins/htmldump" |
161 |
"skins/monobook" |
162 |
"skins/myskin" |
163 |
"skins/simple" |
164 |
) |
165 |
|
166 |
insinto ${MY_HTDOCSDIR} |
167 |
doins *.php *.inc *.phtml |
168 |
for DIR in ${DIRS[*]}; do |
169 |
insinto ${MY_HTDOCSDIR}/${DIR} |
170 |
doins ${DIR}/* |
171 |
[[ -f ${DIR}/.htaccess ]] && doins ${DIR}/.htaccess |
172 |
done |
173 |
|
174 |
# installing some docs |
175 |
local DOCS="AdminSettings.sample FAQ HISTORY INSTALL README RELEASE-NOTES UPGRADE" |
176 |
dodoc ${DOCS} docs/*.txt |
177 |
rm -f ${DOCS} COPYING docs/*.txt |
178 |
|
179 |
docinto php-memcached |
180 |
dodoc docs/php-memcached/* |
181 |
|
182 |
# If imagemagick is enabled then setup for image upload. |
183 |
# We ensure the directory is prepared for writing. The post- |
184 |
# install instructions guide the user to enable the feature. |
185 |
if use imagemagick; then |
186 |
webapp_serverowned ${MY_HTDOCSDIR}/images |
187 |
fi |
188 |
|
189 |
# If we've enabled math USE-flag, install math support. |
190 |
# We ensure the directories are prepared for writing. The post- |
191 |
# install instructions guide the user to enable the feature. |
192 |
if use math; then |
193 |
einfo "Installing math support" |
194 |
exeinto ${MY_HTDOCSDIR}/math |
195 |
doexe math/texvc |
196 |
|
197 |
# Docs |
198 |
docinto math |
199 |
dodoc math/{README,TODO} |
200 |
|
201 |
# Working directories. Server writeable. |
202 |
dodir ${MY_HTDOCSDIR}/images/math |
203 |
webapp_serverowned ${MY_HTDOCSDIR}/images/math |
204 |
dodir ${MY_HTDOCSDIR}/images/tmp |
205 |
webapp_serverowned ${MY_HTDOCSDIR}/images/tmp |
206 |
fi |
207 |
|
208 |
webapp_postinst_txt en "${FILESDIR}/postinstall-1.11-en.txt" |
209 |
webapp_src_install |
210 |
} |
211 |
|
212 |
|
213 |
|
214 |
-- |
215 |
gentoo-commits@l.g.o mailing list |