Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/moodle/
Date: Mon, 22 Aug 2022 16:40:51
Message-Id: 1661186443.93ab003dbbf7ad020c621f54a8751063a1317f7d.blueness@gentoo
1 commit: 93ab003dbbf7ad020c621f54a8751063a1317f7d
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 22 16:40:31 2022 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 22 16:40:43 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93ab003d
7
8 www-apps/moodle: version bumps 3.9.16, 3.11.9, 4.0.3
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
12
13 www-apps/moodle/Manifest | 7 +-
14 .../{moodle-3.11.8.ebuild => moodle-3.11.9.ebuild} | 0
15 .../{moodle-3.9.15.ebuild => moodle-3.9.16.ebuild} | 0
16 www-apps/moodle/moodle-4.0.2.ebuild | 121 ---------------------
17 ...{moodle-4.0.2-r1.ebuild => moodle-4.0.3.ebuild} | 0
18 5 files changed, 3 insertions(+), 125 deletions(-)
19
20 diff --git a/www-apps/moodle/Manifest b/www-apps/moodle/Manifest
21 index 94408feab15a..11e92efda365 100644
22 --- a/www-apps/moodle/Manifest
23 +++ b/www-apps/moodle/Manifest
24 @@ -1,4 +1,3 @@
25 -DIST moodle-3.11.8.tgz 60299874 BLAKE2B 315e22a3080b90cb946074c2c53a97ddfdb13f942a41e21d8f21e8520fa7442e85ec4485b5230dbdd1e2b8a8bc69371280c32f36d5819abe4e600eed18bb0ade SHA512 b866eb08d2744ec39eed3d1cd11b98b459785a72dabb2f5069fdea3a333146646bddea5dbb7765ee67d604501253371e8a02b38a7aa5b76dd1750aa8dc4f30b2
26 -DIST moodle-3.9.15.tgz 56746257 BLAKE2B f912749d568ea20a432ca9312e4e689cd38462b6737377af01655fc7fe13b7345f34eb1651c70d6584675089694f78c66de0523dd3fcfa26228c1b5eedaafb8a SHA512 fc61f82455faa1d6fee5f3e99574c1d69c9e967e8f85dcbc06a53db4b3d57d56af37c1c4f90338d081e76e40a938902cce8787f9e14c959a1088d2b8936fd74c
27 -DIST moodle-4.0.2.tgz 61878566 BLAKE2B 6711f1a9d41b797bafd2ee7e5ceb0851bdec3c817c26af5c70cb030c7df65975bfec13306b995fe73431e77924e90cea59a64d6709f2f8f6d33e2dfbc9110f10 SHA512 f485c8b609a47de26406df5d19441da0b7762759b4b59eb06855a80495c6617f19f60d758541dba71c92a89df77f68db6e2026ee284bda8104fbfd1331eaf2a0
28 -DIST moodle-4.0.tgz 61778671 BLAKE2B 426b0977d9c78055465fd752ea20a29c0f9c715cc513d3cb377f74e58cd3b3be01cafe93e2ba77222f097f2f13594ff645b5150d31b50493556b899587798400 SHA512 a104cfcc3616cb5d97382cf387ef13d89ea73e7b0a2f71f0bbd8cabc1df5828476091f0ab0a2e3f5962f4c8bb9d3019e3f226ec808fad670c5777cc87bd3d70c
29 +DIST moodle-3.11.9.tgz 60315325 BLAKE2B c3ab1fef4b83e584fab62104063ea89d7ee44662bd694debb35c5b100678e015fd09e7a20e16681a4fc3d9b535c07dc2421dcac0cd42503f576ba5ff65b2a641 SHA512 fc20d5428767f742e2ac8b2fa1f187518caca3c402c7ef14cabe6272cb3fa0bf3d17ec898120f58b0127676e13b73487117cca5bf22a97522793417bebf31f1a
30 +DIST moodle-3.9.16.tgz 56754668 BLAKE2B 63a0ec7d7225fbb7875be8590123c95da98661f05a6a8757c6e441596c148deeea39898c8ec16ce889a1c427ae3d9ec53b222bce7c364cdc04c2c286ef278de1 SHA512 0470f773fd36308ce9134e674d21c4e024764f41cb0daae230a565b9b1d783c7074b382f60a27ed75b36964cba7928806a1acd18ad0fdf215284a01142f71a4e
31 +DIST moodle-4.0.3.tgz 61902060 BLAKE2B 860dbbb097a44c17c9e2c9df629ecd8ca8db97e9f858e1598a9fca8a7c928b1a7465eaf788ae086f940bab6f0858c9bee0ec2c453dfece5ceafc788cab972b28 SHA512 108d2d3b7a7a3b5ac0fa9cccbcc28b2356be7cdfab7d43a361545904eba0897a6687758b517269fe75b37bc34334ce285fc0d761ecfc0293830c4a2f197265ef
32
33 diff --git a/www-apps/moodle/moodle-3.11.8.ebuild b/www-apps/moodle/moodle-3.11.9.ebuild
34 similarity index 100%
35 rename from www-apps/moodle/moodle-3.11.8.ebuild
36 rename to www-apps/moodle/moodle-3.11.9.ebuild
37
38 diff --git a/www-apps/moodle/moodle-3.9.15.ebuild b/www-apps/moodle/moodle-3.9.16.ebuild
39 similarity index 100%
40 rename from www-apps/moodle/moodle-3.9.15.ebuild
41 rename to www-apps/moodle/moodle-3.9.16.ebuild
42
43 diff --git a/www-apps/moodle/moodle-4.0.2.ebuild b/www-apps/moodle/moodle-4.0.2.ebuild
44 deleted file mode 100644
45 index 7712f6dc98aa..000000000000
46 --- a/www-apps/moodle/moodle-4.0.2.ebuild
47 +++ /dev/null
48 @@ -1,121 +0,0 @@
49 -# Copyright 1999-2022 Gentoo Authors
50 -# Distributed under the terms of the GNU General Public License v2
51 -
52 -EAPI="7"
53 -
54 -inherit webapp
55 -
56 -DESCRIPTION="The Moodle Course Management System"
57 -HOMEPAGE="https://moodle.org"
58 -
59 -#MY_BRANCH="stable$(ver_cut 1)$(ver_cut 2)"
60 -#SRC_URI="https://download.moodle.org/downlaod.php/direct/${MY_BRANCH}/${P}.tgz"
61 -SRC_URI="https://download.moodle.org/download.php/direct/stable400/moodle-4.0.tgz"
62 -S="${WORKDIR}/${PN}"
63 -
64 -LICENSE="GPL-3+"
65 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
66 -#SLOT empty due to webapp
67 -
68 -DB_FLAGS="mysqli?,mssql?,postgres?"
69 -DB_TYPES=${DB_FLAGS//\?/}
70 -DB_TYPES=${DB_TYPES//,/ }
71 -
72 -AUTHENTICATION_FLAGS="imap?,ldap?,odbc?"
73 -AUTHENTICATION_MODES=${AUTHENTICATION_FLAGS//\?/}
74 -AUTHENTICATION_MODES=${AUTHENTICATION_MODES//,/ }
75 -
76 -PHP_REQUIRED_FLAGS="ctype,curl,iconv,json(+),session,simplexml,xml,zip"
77 -PHP_OPTIONAL_FLAGS="gd,intl,soap,ssl,tokenizer,xmlrpc"
78 -PHP_FLAGS="${PHP_REQUIRED_FLAGS},${PHP_OPTIONAL_FLAGS}"
79 -
80 -IUSE="${DB_TYPES} ${AUTHENTICATION_MODES} vhosts"
81 -
82 -# No forced dependency on
83 -# mssql? - lives on a windows server
84 -# mysql? ( virtual/mysql )
85 -# postgres? ( dev-db/postgresql-server-9* )
86 -# which may live on another server. These USE flags affect the configuration
87 -# file and the dependency on php. However other dbs are possible. See config.php
88 -# and the moodle documentation for other possibilities.
89 -DEPEND=""
90 -RDEPEND="
91 - >=dev-lang/php-7.3[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS}]
92 - virtual/httpd-php
93 - virtual/cron"
94 -
95 -pkg_setup() {
96 - webapp_pkg_setup
97 -
98 - # How many dbs were selected? If one and only one, which one is it?
99 - MYDB=""
100 - DB_COUNT=0
101 - for db in ${DB_TYPES}; do
102 - if use ${db}; then
103 - MYDB=${db}
104 - DB_COUNT=$(($DB_COUNT+1))
105 - fi
106 - done
107 -
108 - if [[ ${DB_COUNT} -eq 0 ]]; then
109 - eerror
110 - eerror "No database selected in your USE flags,"
111 - eerror "You must select at least one."
112 - eerror
113 - die
114 - fi
115 -
116 - if [[ ${DB_COUNT} -gt 1 ]]; then
117 - MYDB=""
118 - ewarn
119 - ewarn "Multiple databases selected in your USE flags,"
120 - ewarn "You will have to choose your database manually."
121 - ewarn
122 - fi
123 -}
124 -
125 -src_prepare() {
126 - rm COPYING.txt
127 - cp "${FILESDIR}"/config-r1.php config.php
128 -
129 - # Moodle expect pgsql, not postgres
130 - MYDB=${MYDB/postgres/pgsql}
131 -
132 - if [[ ${DB_COUNT} -eq 1 ]] ; then
133 - sed -i -e "s|mydb|${MYDB}|" config.php
134 - fi
135 -
136 - eapply_user
137 -}
138 -
139 -src_install() {
140 - webapp_src_preinst
141 -
142 - local MOODLEDATA="${MY_HOSTROOTDIR}"/moodle
143 - dodir ${MOODLEDATA}
144 - webapp_serverowned -R "${MOODLEDATA}"
145 -
146 - local MOODLEROOT="${MY_HTDOCSDIR}"
147 - insinto ${MOODLEROOT}
148 - doins -r *
149 -
150 - webapp_configfile "${MOODLEROOT}"/config.php
151 -
152 - if [[ ${DB_COUNT} -eq 1 ]]; then
153 - webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
154 - else
155 - webapp_postinst_txt en "${FILESDIR}"/postinstall-nodb-en.txt
156 - fi
157 -
158 - webapp_src_install
159 -}
160 -
161 -pkg_postinst() {
162 - einfo
163 - einfo
164 - einfo "To see the post install instructions, do"
165 - einfo
166 - einfo " webapp-config --show-postinst ${PN} ${PVR}"
167 - einfo
168 - einfo
169 -}
170
171 diff --git a/www-apps/moodle/moodle-4.0.2-r1.ebuild b/www-apps/moodle/moodle-4.0.3.ebuild
172 similarity index 100%
173 rename from www-apps/moodle/moodle-4.0.2-r1.ebuild
174 rename to www-apps/moodle/moodle-4.0.3.ebuild