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