1 |
a3li 09/08/01 13:09:36 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mediawiki-1.14.1.ebuild |
5 |
Log: |
6 |
Non-maintainer commit: Version bump for security bug 279189. |
7 |
(Portage version: 2.2_rc33/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.123 www-apps/mediawiki/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/ChangeLog?rev=1.123&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/ChangeLog?rev=1.123&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/ChangeLog?r1=1.122&r2=1.123 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/www-apps/mediawiki/ChangeLog,v |
19 |
retrieving revision 1.122 |
20 |
retrieving revision 1.123 |
21 |
diff -u -r1.122 -r1.123 |
22 |
--- ChangeLog 9 May 2009 15:58:07 -0000 1.122 |
23 |
+++ ChangeLog 1 Aug 2009 13:09:36 -0000 1.123 |
24 |
@@ -1,6 +1,11 @@ |
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.122 2009/05/09 15:58:07 armin76 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/ChangeLog,v 1.123 2009/08/01 13:09:36 a3li Exp $ |
29 |
+ |
30 |
+*mediawiki-1.14.1 (01 Aug 2009) |
31 |
+ |
32 |
+ 01 Aug 2009; Alex Legler <a3li@g.o> +mediawiki-1.14.1.ebuild: |
33 |
+ Non-maintainer commit: Version bump for security bug 279189. |
34 |
|
35 |
09 May 2009; Raúl Porcel <armin76@g.o> mediawiki-1.13.5.ebuild: |
36 |
sparc stable wrt #261128 |
37 |
|
38 |
|
39 |
|
40 |
1.1 www-apps/mediawiki/mediawiki-1.14.1.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/mediawiki-1.14.1.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/mediawiki-1.14.1.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: mediawiki-1.14.1.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2009 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.14.1.ebuild,v 1.1 2009/08/01 13:09:36 a3li 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="~alpha ~amd64 ~ppc ~sparc ~x86" |
62 |
IUSE="imagemagick math mysql postgres +ocamlopt" |
63 |
|
64 |
DEPEND="math? ( >=dev-lang/ocaml-3.0.6 )" |
65 |
RDEPEND="${DEPEND} |
66 |
math? ( |
67 |
app-text/dvipng |
68 |
virtual/tex-base |
69 |
virtual/ghostscript |
70 |
media-gfx/imagemagick |
71 |
) |
72 |
imagemagick? ( media-gfx/imagemagick )" |
73 |
|
74 |
RESTRICT="test" |
75 |
|
76 |
need_httpd_cgi |
77 |
need_php_httpd |
78 |
|
79 |
pkg_setup() { |
80 |
webapp_pkg_setup |
81 |
local flags="pcre session spl xml" |
82 |
use mysql && flags="${flags} mysql" |
83 |
use postgres && flags="${flags} postgres" |
84 |
if ! PHPCHECKNODIE="yes" require_php_with_use ${flags} || \ |
85 |
! 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 |
# see Bug 204812 |
90 |
if use ocamlopt && use math && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then |
91 |
eerror "In order to build ${PN} with native code support from ocaml" |
92 |
eerror "You first need to have a native code ocaml compiler." |
93 |
eerror "You need to install dev-lang/ocaml with ocamlopt useflag on." |
94 |
die "Please install ocaml with ocamlopt useflag" |
95 |
fi |
96 |
} |
97 |
|
98 |
src_compile() { |
99 |
if use math; then |
100 |
einfo "Compiling math support" |
101 |
cd math || die |
102 |
if ! use ocamlopt; then |
103 |
sed -e "s/ocamlopt/ocamlc/" \ |
104 |
-e "s/cmxa/cma/" \ |
105 |
-e "s/cmx/cmo/g" -i Makefile || die |
106 |
fi |
107 |
emake || die |
108 |
else |
109 |
einfo "No math support enabled. Skipping." |
110 |
fi |
111 |
|
112 |
# TODO: 1. think about includes/zhtable/ support |
113 |
# 2. generate docs (?): echo '0' | php mwdocgen.php |
114 |
} |
115 |
|
116 |
src_install() { |
117 |
webapp_src_preinst |
118 |
|
119 |
# First we install math, docs and then copy everything left into htdocs dir |
120 |
# to avoid bugs like #236411. |
121 |
|
122 |
# If we've enabled math USE-flag, install math support. |
123 |
# We ensure the directories are prepared for writing. The post- |
124 |
# install instructions guide the user to enable the feature. |
125 |
if use math; then |
126 |
einfo "Installing math support" |
127 |
exeinto "${MY_HTDOCSDIR}"/math |
128 |
doexe math/texvc || die "Failed to create math support executable." |
129 |
|
130 |
docinto math |
131 |
dodoc math/{README,TODO} |
132 |
docinto "" |
133 |
|
134 |
# Working directories. Server writeable. |
135 |
dodir "${MY_HTDOCSDIR}"/images/math |
136 |
webapp_serverowned "${MY_HTDOCSDIR}"/images/math |
137 |
dodir "${MY_HTDOCSDIR}"/images/tmp |
138 |
webapp_serverowned "${MY_HTDOCSDIR}"/images/tmp |
139 |
fi |
140 |
|
141 |
local DOCS="FAQ HISTORY INSTALL README RELEASE-NOTES UPGRADE" |
142 |
dodoc ${DOCS} docs/*.txt |
143 |
docinto php-memcached |
144 |
dodoc docs/php-memcached/* |
145 |
|
146 |
# Clean everything not used at the site... |
147 |
rm -rf ${DOCS} COPYING tests math t docs |
148 |
find . -name Makefile -delete |
149 |
# and install |
150 |
insinto "${MY_HTDOCSDIR}" |
151 |
doins -r . |
152 |
|
153 |
# If imagemagick is enabled then setup for image upload. |
154 |
# We ensure the directory is prepared for writing. |
155 |
if use imagemagick; then |
156 |
webapp_serverowned "${MY_HTDOCSDIR}"/images |
157 |
fi |
158 |
|
159 |
webapp_postinst_txt en "${FILESDIR}/postinstall-1.13-en.txt" |
160 |
webapp_postupgrade_txt en "${FILESDIR}/postupgrade-1.13-en.txt" |
161 |
webapp_src_install |
162 |
} |
163 |
|
164 |
pkg_preinst() { |
165 |
prev_instal="false" |
166 |
if has_version ${CATEGORY}/${PN}; then |
167 |
prev_instal="true" |
168 |
fi |
169 |
} |
170 |
|
171 |
pkg_postinst() { |
172 |
webapp_pkg_postinst |
173 |
if ${prev_instal}; then |
174 |
einfo |
175 |
elog "=== Consult the release notes ===" |
176 |
elog "Before doing anything, stop and consult the release notes" |
177 |
elog "/usr/share/doc/${PF}/RELEASE-NOTES.bz2" |
178 |
elog |
179 |
elog "These detail bug fixes, new features and functionality, and any" |
180 |
elog "particular points that may need to be noted during the upgrade procedure." |
181 |
einfo |
182 |
ewarn "Back up existing files and the database before upgrade." |
183 |
ewarn "http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki" |
184 |
ewarn "provides an overview of the backup process." |
185 |
einfo |
186 |
fi |
187 |
} |