1 |
blueness 15/02/01 22:09:43 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: moodle-2.8.3.ebuild moodle-2.6.8.ebuild |
5 |
moodle-2.7.5.ebuild |
6 |
Removed: moodle-2.7.4.ebuild moodle-2.6.7.ebuild |
7 |
moodle-2.8.2.ebuild |
8 |
Log: |
9 |
Version bumps |
10 |
|
11 |
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA) |
12 |
|
13 |
Revision Changes Path |
14 |
1.66 www-apps/moodle/ChangeLog |
15 |
|
16 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/moodle/ChangeLog?rev=1.66&view=markup |
17 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/moodle/ChangeLog?rev=1.66&content-type=text/plain |
18 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/moodle/ChangeLog?r1=1.65&r2=1.66 |
19 |
|
20 |
Index: ChangeLog |
21 |
=================================================================== |
22 |
RCS file: /var/cvsroot/gentoo-x86/www-apps/moodle/ChangeLog,v |
23 |
retrieving revision 1.65 |
24 |
retrieving revision 1.66 |
25 |
diff -u -r1.65 -r1.66 |
26 |
--- ChangeLog 11 Jan 2015 14:05:43 -0000 1.65 |
27 |
+++ ChangeLog 1 Feb 2015 22:09:43 -0000 1.66 |
28 |
@@ -1,6 +1,15 @@ |
29 |
# ChangeLog for www-apps/moodle |
30 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
31 |
-# $Header: /var/cvsroot/gentoo-x86/www-apps/moodle/ChangeLog,v 1.65 2015/01/11 14:05:43 blueness Exp $ |
32 |
+# $Header: /var/cvsroot/gentoo-x86/www-apps/moodle/ChangeLog,v 1.66 2015/02/01 22:09:43 blueness Exp $ |
33 |
+ |
34 |
+*moodle-2.6.8 (01 Feb 2015) |
35 |
+*moodle-2.7.5 (01 Feb 2015) |
36 |
+*moodle-2.8.3 (01 Feb 2015) |
37 |
+ |
38 |
+ 01 Feb 2015; Anthony G. Basile <blueness@g.o> +moodle-2.6.8.ebuild, |
39 |
+ +moodle-2.7.5.ebuild, +moodle-2.8.3.ebuild, -moodle-2.6.7.ebuild, |
40 |
+ -moodle-2.7.4.ebuild, -moodle-2.8.2.ebuild: |
41 |
+ Version bumps |
42 |
|
43 |
*moodle-2.8.2 (11 Jan 2015) |
44 |
*moodle-2.7.4 (11 Jan 2015) |
45 |
|
46 |
|
47 |
|
48 |
1.1 www-apps/moodle/moodle-2.8.3.ebuild |
49 |
|
50 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/moodle/moodle-2.8.3.ebuild?rev=1.1&view=markup |
51 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/moodle/moodle-2.8.3.ebuild?rev=1.1&content-type=text/plain |
52 |
|
53 |
Index: moodle-2.8.3.ebuild |
54 |
=================================================================== |
55 |
# Copyright 1999-2015 Gentoo Foundation |
56 |
# Distributed under the terms of the GNU General Public License v2 |
57 |
# $Header: /var/cvsroot/gentoo-x86/www-apps/moodle/moodle-2.8.3.ebuild,v 1.1 2015/02/01 22:09:43 blueness Exp $ |
58 |
|
59 |
EAPI="5" |
60 |
|
61 |
inherit versionator webapp |
62 |
|
63 |
AVC=( $(get_version_components) ) |
64 |
MY_BRANCH="stable${AVC[0]}${AVC[1]}" |
65 |
|
66 |
DESCRIPTION="The Moodle Course Management System" |
67 |
HOMEPAGE="http://moodle.org" |
68 |
SRC_URI="http://download.moodle.org/${MY_BRANCH}/${P}.tgz" |
69 |
S="${WORKDIR}/${PN}" |
70 |
|
71 |
LICENSE="GPL-2" |
72 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
73 |
#SLOT empty due to webapp |
74 |
|
75 |
DB_FLAGS="mysqli?,mssql?,postgres?" |
76 |
DB_TYPES=${DB_FLAGS//\?/} |
77 |
DB_TYPES=${DB_TYPES//,/ } |
78 |
|
79 |
AUTHENTICATION_FLAGS="imap?,ldap?,odbc?" |
80 |
AUTHENTICATION_MODES=${AUTHENTICATION_FLAGS//\?/} |
81 |
AUTHENTICATION_MODES=${AUTHENTICATION_MODES//,/ } |
82 |
|
83 |
PHP_REQUIRED_FLAGS="ctype,curl,iconv,json,session,simplexml,xml,zip" |
84 |
PHP_OPTIONAL_FLAGS="gd,intl,soap,ssl,tokenizer,xmlrpc" |
85 |
PHP_FLAGS="${PHP_REQUIRED_FLAGS},${PHP_OPTIONAL_FLAGS}" |
86 |
|
87 |
IUSE="${DB_TYPES} ${AUTHENTICATION_MODES} vhosts" |
88 |
REQUIRED_USE="|| ( ${DB_TYPES} )" |
89 |
|
90 |
# No forced dependency on |
91 |
# mssql? - lives on a windows server |
92 |
# mysql? ( virtual/mysql ) |
93 |
# postgres? ( dev-db/postgresql-server-9* ) |
94 |
# which may live on another server. These USE flags affect the configuration |
95 |
# file and the dependency on php. However other dbs are possible. See config.php |
96 |
# and the moodle documentation for other possibilities. |
97 |
DEPEND="" |
98 |
RDEPEND=" |
99 |
>=dev-lang/php-5.4.4[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS}] |
100 |
virtual/httpd-php |
101 |
virtual/cron" |
102 |
|
103 |
pkg_setup() { |
104 |
webapp_pkg_setup |
105 |
|
106 |
# How many dbs were selected? If one and only one, which one is it? |
107 |
MYDB="" |
108 |
DB_COUNT=0 |
109 |
for db in ${DB_TYPES}; do |
110 |
if use ${db}; then |
111 |
MYDB=${db} |
112 |
DB_COUNT=$(($DB_COUNT+1)) |
113 |
fi |
114 |
done |
115 |
|
116 |
# REQUIRED_USE above guarantees that ${DB_COUNT} cannot be zero |
117 |
#if [[ ${DB_COUNT} -eq 0 ]]; then |
118 |
# eerror |
119 |
# eerror "\033[1;31m**************************************************\033[00m" |
120 |
# eerror "No database selected in your USE flags," |
121 |
# eerror "You must select at least one." |
122 |
# eerror "\033[1;31m**************************************************\033[00m" |
123 |
# eerror |
124 |
# die |
125 |
#fi |
126 |
|
127 |
if [[ ${DB_COUNT} -gt 1 ]]; then |
128 |
MYDB="" |
129 |
ewarn |
130 |
ewarn "\033[1;33m**************************************************\033[00m" |
131 |
ewarn "Multiple databases selected in your USE flags," |
132 |
ewarn "You will have to choose your database manually." |
133 |
ewarn "\033[1;33m**************************************************\033[00m" |
134 |
ewarn |
135 |
fi |
136 |
} |
137 |
|
138 |
src_prepare() { |
139 |
rm COPYING.txt |
140 |
cp "${FILESDIR}"/config-r1.php config.php |
141 |
|
142 |
# Moodle expect pgsql, not postgres |
143 |
MYDB=${MYDB/postgres/pgsql} |
144 |
|
145 |
if [[ ${DB_COUNT} -eq 1 ]] ; then |
146 |
sed -i -e "s|mydb|${MYDB}|" config.php |
147 |
fi |
148 |
} |
149 |
|
150 |
src_install() { |
151 |
webapp_src_preinst |
152 |
|
153 |
local MOODLEDATA="${MY_HOSTROOTDIR}"/moodle |
154 |
dodir ${MOODLEDATA} |
155 |
webapp_serverowned -R "${MOODLEDATA}" |
156 |
|
157 |
local MOODLEROOT="${MY_HTDOCSDIR}" |
158 |
insinto ${MOODLEROOT} |
159 |
doins -r * |
160 |
|
161 |
webapp_configfile "${MOODLEROOT}"/config.php |
162 |
|
163 |
if [[ ${DB_COUNT} -eq 1 ]]; then |
164 |
webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt |
165 |
else |
166 |
webapp_postinst_txt en "${FILESDIR}"/postinstall-nodb-en.txt |
167 |
fi |
168 |
|
169 |
webapp_src_install |
170 |
} |
171 |
|
172 |
pkg_postinst() { |
173 |
einfo |
174 |
einfo "\033[1;32m**************************************************\033[00m" |
175 |
einfo |
176 |
einfo "To see the post install instructions, do" |
177 |
einfo |
178 |
einfo " webapp-config --show-postinst ${PN} ${PVR}" |
179 |
einfo |
180 |
einfo "\033[1;32m**************************************************\033[00m" |
181 |
einfo |
182 |
} |
183 |
|
184 |
|
185 |
|
186 |
1.1 www-apps/moodle/moodle-2.6.8.ebuild |
187 |
|
188 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/moodle/moodle-2.6.8.ebuild?rev=1.1&view=markup |
189 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/moodle/moodle-2.6.8.ebuild?rev=1.1&content-type=text/plain |
190 |
|
191 |
Index: moodle-2.6.8.ebuild |
192 |
=================================================================== |
193 |
# Copyright 1999-2015 Gentoo Foundation |
194 |
# Distributed under the terms of the GNU General Public License v2 |
195 |
# $Header: /var/cvsroot/gentoo-x86/www-apps/moodle/moodle-2.6.8.ebuild,v 1.1 2015/02/01 22:09:43 blueness Exp $ |
196 |
|
197 |
EAPI="5" |
198 |
|
199 |
inherit versionator webapp |
200 |
|
201 |
AVC=( $(get_version_components) ) |
202 |
MY_BRANCH="stable${AVC[0]}${AVC[1]}" |
203 |
|
204 |
DESCRIPTION="The Moodle Course Management System" |
205 |
HOMEPAGE="http://moodle.org" |
206 |
SRC_URI="http://download.moodle.org/${MY_BRANCH}/${P}.tgz" |
207 |
S="${WORKDIR}/${PN}" |
208 |
|
209 |
LICENSE="GPL-2" |
210 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
211 |
#SLOT empty due to webapp |
212 |
|
213 |
DB_FLAGS="mysqli?,postgres?" |
214 |
DB_TYPES=${DB_FLAGS//\?/} |
215 |
DB_TYPES=${DB_TYPES//,/ } |
216 |
|
217 |
AUTHENTICATION_FLAGS="imap?,ldap?,odbc?" |
218 |
AUTHENTICATION_MODES=${AUTHENTICATION_FLAGS//\?/} |
219 |
AUTHENTICATION_MODES=${AUTHENTICATION_MODES//,/ } |
220 |
|
221 |
PHP_REQUIRED_FLAGS="ctype,curl,iconv,json,session,simplexml,xml,zip" |
222 |
PHP_OPTIONAL_FLAGS="gd,intl,soap,ssl,tokenizer,xmlrpc" |
223 |
PHP_FLAGS="${PHP_REQUIRED_FLAGS},${PHP_OPTIONAL_FLAGS}" |
224 |
|
225 |
IUSE="${DB_TYPES} ${AUTHENTICATION_MODES} vhosts" |
226 |
REQUIRED_USE="|| ( ${DB_TYPES} )" |
227 |
|
228 |
# No forced dependency on |
229 |
# mysql? ( virtual/mysql ) |
230 |
# postgres? ( dev-db/postgresql-server-7* ) |
231 |
# which may live on another server |
232 |
DEPEND="" |
233 |
RDEPEND=" |
234 |
>=dev-lang/php-5.3.3[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS}] |
235 |
virtual/httpd-php |
236 |
virtual/cron" |
237 |
|
238 |
pkg_setup() { |
239 |
webapp_pkg_setup |
240 |
|
241 |
# How many dbs were selected? If one and only one, which one is it? |
242 |
MYDB="" |
243 |
DB_COUNT=0 |
244 |
for db in ${DB_TYPES}; do |
245 |
if use ${db}; then |
246 |
MYDB=${db} |
247 |
DB_COUNT=$(($DB_COUNT+1)) |
248 |
fi |
249 |
done |
250 |
|
251 |
# REQUIRED_USE above guarantees that ${DB_COUNT} cannot be zero |
252 |
#if [[ ${DB_COUNT} -eq 0 ]]; then |
253 |
# eerror |
254 |
# eerror "\033[1;31m**************************************************\033[00m" |
255 |
# eerror "No database selected in your USE flags," |
256 |
# eerror "You must select at least one." |
257 |
# eerror "\033[1;31m**************************************************\033[00m" |
258 |
# eerror |
259 |
# die |
260 |
#fi |
261 |
|
262 |
if [[ ${DB_COUNT} -gt 1 ]]; then |
263 |
MYDB="" |
264 |
ewarn |
265 |
ewarn "\033[1;33m**************************************************\033[00m" |
266 |
ewarn "Multiple databases selected in your USE flags," |
267 |
ewarn "You will have to choose your database manually." |
268 |
ewarn "\033[1;33m**************************************************\033[00m" |
269 |
ewarn |
270 |
fi |
271 |
} |
272 |
|
273 |
src_prepare() { |
274 |
rm COPYING.txt |
275 |
cp "${FILESDIR}"/config.php . |
276 |
|
277 |
# Moodle expect postgres7, not postgres |
278 |
MYDB=${MYDB/postgres/postgres7} |
279 |
|
280 |
# Moodle expects mysql, not mysqli |
281 |
MYDB=${MYDB/mysqli/mysql} |
282 |
|
283 |
if [[ ${DB_COUNT} -eq 1 ]] ; then |
284 |
sed -i -e "s|mydb|${MYDB}|" config.php |
285 |
fi |
286 |
} |
287 |
|
288 |
src_install() { |
289 |
webapp_src_preinst |
290 |
|
291 |
local MOODLEDATA="${MY_HOSTROOTDIR}"/moodle |
292 |
dodir ${MOODLEDATA} |
293 |
webapp_serverowned -R "${MOODLEDATA}" |
294 |
|
295 |
local MOODLEROOT="${MY_HTDOCSDIR}" |
296 |
insinto ${MOODLEROOT} |
297 |
doins -r * |
298 |
|
299 |
webapp_configfile "${MOODLEROOT}"/config.php |
300 |
|
301 |
if [[ ${DB_COUNT} -eq 1 ]]; then |
302 |
webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt |
303 |
else |
304 |
webapp_postinst_txt en "${FILESDIR}"/postinstall-nodb-en.txt |
305 |
fi |
306 |
|
307 |
webapp_src_install |
308 |
} |
309 |
|
310 |
pkg_postinst() { |
311 |
einfo |
312 |
einfo "\033[1;32m**************************************************\033[00m" |
313 |
einfo |
314 |
einfo "To see the post install instructions, do" |
315 |
einfo |
316 |
einfo " webapp-config --show-postinst ${PN} ${PVR}" |
317 |
einfo |
318 |
einfo "\033[1;32m**************************************************\033[00m" |
319 |
einfo |
320 |
} |
321 |
|
322 |
|
323 |
|
324 |
1.1 www-apps/moodle/moodle-2.7.5.ebuild |
325 |
|
326 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/moodle/moodle-2.7.5.ebuild?rev=1.1&view=markup |
327 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/moodle/moodle-2.7.5.ebuild?rev=1.1&content-type=text/plain |
328 |
|
329 |
Index: moodle-2.7.5.ebuild |
330 |
=================================================================== |
331 |
# Copyright 1999-2015 Gentoo Foundation |
332 |
# Distributed under the terms of the GNU General Public License v2 |
333 |
# $Header: /var/cvsroot/gentoo-x86/www-apps/moodle/moodle-2.7.5.ebuild,v 1.1 2015/02/01 22:09:43 blueness Exp $ |
334 |
|
335 |
EAPI="5" |
336 |
|
337 |
inherit versionator webapp |
338 |
|
339 |
AVC=( $(get_version_components) ) |
340 |
MY_BRANCH="stable${AVC[0]}${AVC[1]}" |
341 |
|
342 |
DESCRIPTION="The Moodle Course Management System" |
343 |
HOMEPAGE="http://moodle.org" |
344 |
SRC_URI="http://download.moodle.org/${MY_BRANCH}/${P}.tgz" |
345 |
S="${WORKDIR}/${PN}" |
346 |
|
347 |
LICENSE="GPL-2" |
348 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
349 |
#SLOT empty due to webapp |
350 |
|
351 |
DB_FLAGS="mysqli?,postgres?" |
352 |
DB_TYPES=${DB_FLAGS//\?/} |
353 |
DB_TYPES=${DB_TYPES//,/ } |
354 |
|
355 |
AUTHENTICATION_FLAGS="imap?,ldap?,odbc?" |
356 |
AUTHENTICATION_MODES=${AUTHENTICATION_FLAGS//\?/} |
357 |
AUTHENTICATION_MODES=${AUTHENTICATION_MODES//,/ } |
358 |
|
359 |
PHP_REQUIRED_FLAGS="ctype,curl,iconv,json,session,simplexml,xml,zip" |
360 |
PHP_OPTIONAL_FLAGS="gd,intl,soap,ssl,tokenizer,xmlrpc" |
361 |
PHP_FLAGS="${PHP_REQUIRED_FLAGS},${PHP_OPTIONAL_FLAGS}" |
362 |
|
363 |
IUSE="${DB_TYPES} ${AUTHENTICATION_MODES} vhosts" |
364 |
REQUIRED_USE="|| ( ${DB_TYPES} )" |
365 |
|
366 |
# No forced dependency on |
367 |
# mysql? ( virtual/mysql ) |
368 |
# postgres? ( dev-db/postgresql-server-7* ) |
369 |
# which may live on another server |
370 |
DEPEND="" |
371 |
RDEPEND=" |
372 |
>=dev-lang/php-5.4.4[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS}] |
373 |
virtual/httpd-php |
374 |
virtual/cron" |
375 |
|
376 |
pkg_setup() { |
377 |
webapp_pkg_setup |
378 |
|
379 |
# How many dbs were selected? If one and only one, which one is it? |
380 |
MYDB="" |
381 |
DB_COUNT=0 |
382 |
for db in ${DB_TYPES}; do |
383 |
if use ${db}; then |
384 |
MYDB=${db} |
385 |
DB_COUNT=$(($DB_COUNT+1)) |
386 |
fi |
387 |
done |
388 |
|
389 |
# REQUIRED_USE above guarantees that ${DB_COUNT} cannot be zero |
390 |
#if [[ ${DB_COUNT} -eq 0 ]]; then |
391 |
# eerror |
392 |
# eerror "\033[1;31m**************************************************\033[00m" |
393 |
# eerror "No database selected in your USE flags," |
394 |
# eerror "You must select at least one." |
395 |
# eerror "\033[1;31m**************************************************\033[00m" |
396 |
# eerror |
397 |
# die |
398 |
#fi |
399 |
|
400 |
if [[ ${DB_COUNT} -gt 1 ]]; then |
401 |
MYDB="" |
402 |
ewarn |
403 |
ewarn "\033[1;33m**************************************************\033[00m" |
404 |
ewarn "Multiple databases selected in your USE flags," |
405 |
ewarn "You will have to choose your database manually." |
406 |
ewarn "\033[1;33m**************************************************\033[00m" |
407 |
ewarn |
408 |
fi |
409 |
} |
410 |
|
411 |
src_prepare() { |
412 |
rm COPYING.txt |
413 |
cp "${FILESDIR}"/config.php . |
414 |
|
415 |
# Moodle expect postgres7, not postgres |
416 |
MYDB=${MYDB/postgres/postgres7} |
417 |
|
418 |
# Moodle expects mysql, not mysqli |
419 |
MYDB=${MYDB/mysqli/mysql} |
420 |
|
421 |
if [[ ${DB_COUNT} -eq 1 ]] ; then |
422 |
sed -i -e "s|mydb|${MYDB}|" config.php |
423 |
fi |
424 |
} |
425 |
|
426 |
src_install() { |
427 |
webapp_src_preinst |
428 |
|
429 |
local MOODLEDATA="${MY_HOSTROOTDIR}"/moodle |
430 |
dodir ${MOODLEDATA} |
431 |
webapp_serverowned -R "${MOODLEDATA}" |
432 |
|
433 |
local MOODLEROOT="${MY_HTDOCSDIR}" |
434 |
insinto ${MOODLEROOT} |
435 |
doins -r * |
436 |
|
437 |
webapp_configfile "${MOODLEROOT}"/config.php |
438 |
|
439 |
if [[ ${DB_COUNT} -eq 1 ]]; then |
440 |
webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt |
441 |
else |
442 |
webapp_postinst_txt en "${FILESDIR}"/postinstall-nodb-en.txt |
443 |
fi |
444 |
|
445 |
webapp_src_install |
446 |
} |
447 |
|
448 |
pkg_postinst() { |
449 |
einfo |
450 |
einfo "\033[1;32m**************************************************\033[00m" |
451 |
einfo |
452 |
einfo "To see the post install instructions, do" |
453 |
einfo |
454 |
einfo " webapp-config --show-postinst ${PN} ${PVR}" |
455 |
einfo |
456 |
einfo "\033[1;32m**************************************************\033[00m" |
457 |
einfo |
458 |
} |