1 |
commit: cfdd47749fcfed9d3fd5b20ebc9f00c975303cee |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 30 13:31:13 2023 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 30 13:32:40 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfdd4774 |
7 |
|
8 |
www-apps/moodle: drop 3.9.17 |
9 |
|
10 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
11 |
|
12 |
www-apps/moodle/Manifest | 1 - |
13 |
www-apps/moodle/moodle-3.9.17.ebuild | 120 ----------------------------------- |
14 |
2 files changed, 121 deletions(-) |
15 |
|
16 |
diff --git a/www-apps/moodle/Manifest b/www-apps/moodle/Manifest |
17 |
index 1abc7bf5aacf..401051f514bb 100644 |
18 |
--- a/www-apps/moodle/Manifest |
19 |
+++ b/www-apps/moodle/Manifest |
20 |
@@ -1,3 +1,2 @@ |
21 |
DIST moodle-3.11.10.tgz 60320974 BLAKE2B 32de17a625742bc33e75d662c550682a45099b7af1e86411eecc0d8a745dbfeef2361eca3cea2d048e21dd75af40e9143534ab09db24162089f2ad404b4b54a4 SHA512 10c1e450dee96a1261b25882238381930297aa4e4f9a993e3932908ed2356d65facb5e06500dbd98c83a4022514c0ad1ad6305911241412985758fa29b5dd7a8 |
22 |
-DIST moodle-3.9.17.tgz 56753985 BLAKE2B 695ba04f2d2158c3528e0ffdbe09b6c7237a8a79d65a4bf673d6d677d18c8731a1034c403e1f2315922d3b4090645dcfc6df4b857a1e8352d89037e9497df4c2 SHA512 42f23bc97e7e78668a046b11a72b346d1188d92340ade0cb55ea6a391d8174f443d2b89d646c67a778b9dff33dcac8cf5b2b0a3dead84bc6cdecdaa3bdc83143 |
23 |
DIST moodle-4.0.4.tgz 61899291 BLAKE2B 82c18a8c89e7eb09a942f236640f49c414310c138d7cf2a9951c9759bea67f943f53257cefd5d693ec58a6af1e8eb6ae57a864d7772ea35a7592111d7be67cb0 SHA512 4284c05946dd07e43dbc7c584d7b3a69f62cfebf3cf6b2d049c6dea72ce184aaa0b4e6efb49817c8967ac8ff9dbce0ab2cf5fb2e96033d4368ed617ee258ffd8 |
24 |
|
25 |
diff --git a/www-apps/moodle/moodle-3.9.17.ebuild b/www-apps/moodle/moodle-3.9.17.ebuild |
26 |
deleted file mode 100644 |
27 |
index 6663660f3cdc..000000000000 |
28 |
--- a/www-apps/moodle/moodle-3.9.17.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,120 +0,0 @@ |
31 |
-# Copyright 1999-2022 Gentoo Authors |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
- |
34 |
-EAPI="7" |
35 |
- |
36 |
-inherit webapp |
37 |
- |
38 |
-MY_BRANCH="stable$(ver_cut 1)$(ver_cut 2)" |
39 |
- |
40 |
-DESCRIPTION="The Moodle Course Management System" |
41 |
-HOMEPAGE="https://moodle.org" |
42 |
-SRC_URI="https://download.moodle.org/${MY_BRANCH}/${P}.tgz" |
43 |
-S="${WORKDIR}/${PN}" |
44 |
- |
45 |
-LICENSE="GPL-3+" |
46 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
47 |
-#SLOT empty due to webapp |
48 |
- |
49 |
-DB_FLAGS="mysqli?,mssql?,postgres?" |
50 |
-DB_TYPES=${DB_FLAGS//\?/} |
51 |
-DB_TYPES=${DB_TYPES//,/ } |
52 |
- |
53 |
-AUTHENTICATION_FLAGS="imap?,ldap?,odbc?" |
54 |
-AUTHENTICATION_MODES=${AUTHENTICATION_FLAGS//\?/} |
55 |
-AUTHENTICATION_MODES=${AUTHENTICATION_MODES//,/ } |
56 |
- |
57 |
-PHP_REQUIRED_FLAGS="ctype,curl,iconv,json(+),session,simplexml,xml,zip" |
58 |
-PHP_OPTIONAL_FLAGS="gd,intl,soap,ssl,tokenizer,xmlrpc" |
59 |
-PHP_FLAGS="${PHP_REQUIRED_FLAGS},${PHP_OPTIONAL_FLAGS}" |
60 |
- |
61 |
-IUSE="${DB_TYPES} ${AUTHENTICATION_MODES} vhosts" |
62 |
- |
63 |
-# No forced dependency on |
64 |
-# mssql? - lives on a windows server |
65 |
-# mysql? ( virtual/mysql ) |
66 |
-# postgres? ( dev-db/postgresql-server-9* ) |
67 |
-# which may live on another server. These USE flags affect the configuration |
68 |
-# file and the dependency on php. However other dbs are possible. See config.php |
69 |
-# and the moodle documentation for other possibilities. |
70 |
-DEPEND="" |
71 |
-RDEPEND=" |
72 |
- dev-lang/php:7.4[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS}] |
73 |
- virtual/httpd-php |
74 |
- virtual/cron" |
75 |
- |
76 |
-pkg_setup() { |
77 |
- webapp_pkg_setup |
78 |
- |
79 |
- # How many dbs were selected? If one and only one, which one is it? |
80 |
- MYDB="" |
81 |
- DB_COUNT=0 |
82 |
- for db in ${DB_TYPES}; do |
83 |
- if use ${db}; then |
84 |
- MYDB=${db} |
85 |
- DB_COUNT=$(($DB_COUNT+1)) |
86 |
- fi |
87 |
- done |
88 |
- |
89 |
- if [[ ${DB_COUNT} -eq 0 ]]; then |
90 |
- eerror |
91 |
- eerror "No database selected in your USE flags," |
92 |
- eerror "You must select at least one." |
93 |
- eerror |
94 |
- die |
95 |
- fi |
96 |
- |
97 |
- if [[ ${DB_COUNT} -gt 1 ]]; then |
98 |
- MYDB="" |
99 |
- ewarn |
100 |
- ewarn "Multiple databases selected in your USE flags," |
101 |
- ewarn "You will have to choose your database manually." |
102 |
- ewarn |
103 |
- fi |
104 |
-} |
105 |
- |
106 |
-src_prepare() { |
107 |
- rm COPYING.txt |
108 |
- cp "${FILESDIR}"/config-r1.php config.php |
109 |
- |
110 |
- # Moodle expect pgsql, not postgres |
111 |
- MYDB=${MYDB/postgres/pgsql} |
112 |
- |
113 |
- if [[ ${DB_COUNT} -eq 1 ]] ; then |
114 |
- sed -i -e "s|mydb|${MYDB}|" config.php |
115 |
- fi |
116 |
- |
117 |
- eapply_user |
118 |
-} |
119 |
- |
120 |
-src_install() { |
121 |
- webapp_src_preinst |
122 |
- |
123 |
- local MOODLEDATA="${MY_HOSTROOTDIR}"/moodle |
124 |
- dodir ${MOODLEDATA} |
125 |
- webapp_serverowned -R "${MOODLEDATA}" |
126 |
- |
127 |
- local MOODLEROOT="${MY_HTDOCSDIR}" |
128 |
- insinto ${MOODLEROOT} |
129 |
- doins -r * |
130 |
- |
131 |
- webapp_configfile "${MOODLEROOT}"/config.php |
132 |
- |
133 |
- if [[ ${DB_COUNT} -eq 1 ]]; then |
134 |
- webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt |
135 |
- else |
136 |
- webapp_postinst_txt en "${FILESDIR}"/postinstall-nodb-en.txt |
137 |
- fi |
138 |
- |
139 |
- webapp_src_install |
140 |
-} |
141 |
- |
142 |
-pkg_postinst() { |
143 |
- einfo |
144 |
- einfo |
145 |
- einfo "To see the post install instructions, do" |
146 |
- einfo |
147 |
- einfo " webapp-config --show-postinst ${PN} ${PVR}" |
148 |
- einfo |
149 |
- einfo |
150 |
-} |