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