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