summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2020-11-09 12:20:46 -0500
committerAnthony G. Basile <blueness@gentoo.org>2020-11-09 12:20:46 -0500
commit6f61cbd56f971ec66c91079040be0cd8774fa011 (patch)
tree7b95c761cb278998f475ae496bb6855abe677364 /www-apps/moodle
parentdev-perl/PDF-Builder: new package, version 3.19.0 (diff)
downloadgentoo-6f61cbd56f971ec66c91079040be0cd8774fa011.tar.gz
gentoo-6f61cbd56f971ec66c91079040be0cd8774fa011.tar.bz2
gentoo-6f61cbd56f971ec66c91079040be0cd8774fa011.zip
www-apps/moodle: version bumps to 3.5.15, 3.7.9, 3.8.6, 3.9.3, 3.10
Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'www-apps/moodle')
-rw-r--r--www-apps/moodle/Manifest9
-rw-r--r--www-apps/moodle/moodle-3.10.ebuild (renamed from www-apps/moodle/moodle-3.9.2.ebuild)0
-rw-r--r--www-apps/moodle/moodle-3.5.15.ebuild (renamed from www-apps/moodle/moodle-3.5.14.ebuild)0
-rw-r--r--www-apps/moodle/moodle-3.7.9.ebuild (renamed from www-apps/moodle/moodle-3.7.8.ebuild)0
-rw-r--r--www-apps/moodle/moodle-3.8.6.ebuild (renamed from www-apps/moodle/moodle-3.8.5.ebuild)0
-rw-r--r--www-apps/moodle/moodle-3.9.3.ebuild120
6 files changed, 125 insertions, 4 deletions
diff --git a/www-apps/moodle/Manifest b/www-apps/moodle/Manifest
index 0ee6b4cd2baa..f23234535494 100644
--- a/www-apps/moodle/Manifest
+++ b/www-apps/moodle/Manifest
@@ -1,4 +1,5 @@
-DIST moodle-3.5.14.tgz 46781703 BLAKE2B 3f6931c93507c33ed96d19a02a4b221ebe88b1c7d71d8c4780784c58888683c8753600fecf2e9c71f9b9dbdcdfa5163acff8c116a161d6f0812547caf00f5860 SHA512 669dd2a5477a81f1a3af35ec25162e9c9666600220c21c070b509ed8d33ece9dc0ced23050058d90901dbaeed53904ea0c512733ff040d6b710b71d0d478c9df
-DIST moodle-3.7.8.tgz 45869720 BLAKE2B 3f7f7fb45aa8f3fee53905f812166a99f8781e571cdd325c96c084e40141c3170949a32f865cbb6de628c8f10df9bb78c81a1151804b0da79d93fe70b19ed79d SHA512 4790ddf7d5775d5051e31655aa244de7eb2df6e0248d667ec14e08ebe190323bfffdf41a3aff8171bc4229925a32a7400471c2d89fdd1344751f285b2a00c588
-DIST moodle-3.8.5.tgz 53282545 BLAKE2B 8402f5fc7a7a2e5e4d890ac6853d7bb87550cce4fcc502cab9ab404111987f9048662da9be79d6afb8089c0dc8bd300e938a46612cf69304ea37b39dedc4309d SHA512 fa2ccb2aa00a19911f290ed8df87af7a8439807cecf054a5cf87e9c860ace05ed2c484be091ce44cdb558c36631a0f03a87d7101c015a209e3ebbd5c70217e62
-DIST moodle-3.9.2.tgz 57013075 BLAKE2B 465244f19c5574170c7bc830e5380ed76e59ba7f322f72847594797196af391a49167f9e5fc8341dea086af00fab8f41f857c93497d54b8b25fe7fc90b2f24ed SHA512 76b6753d806bd771f5531a8adc669e36a00b71d41e3fee3eb165cd74a44de8ed027d57fbdaea67f0d9c88fdf14aac9e3367d39416845da68ccf7cebecb70bc5a
+DIST moodle-3.10.tgz 57423153 BLAKE2B fe59ef50e28a0170ff7a158d0ab52d93e30e4739a6af61cc2c3f6c93e763c459ebef8e6bda138af2ac2c6000d7ed6ea718821c01d2417b7c55d9c1faaeff2afa SHA512 f0a55c5ed3636943a5193cadc3755cfd509619b1f85c003dffa6387c131f0579c02b40e825932b313d649d5e1e557f8e63569b5b51dada59f8aed5eac0474500
+DIST moodle-3.5.15.tgz 46781368 BLAKE2B 5d47fc9526122314a490ef9728e8b1c8fddc233539de406d8077d59e7c14c6920d887fc074c94f9f5ffe6d66df68a325d03ab652cf1b39dc4870e64a7a638de1 SHA512 283f2f059181c3ba79799cb0b474bf9c5b876c528f1779b72b86a4b4087bfa73afc875dca5f454d527d5b3f0bfb3cc59531b59830f60e426bd9ef7bc65302698
+DIST moodle-3.7.9.tgz 45879636 BLAKE2B d07f080ed7333c575a04c813c0ffe4fce26ded2f1df267fdf5a1c5b9b787859d9d0c8d688dc435dd51f9850335528edb15a07b5a37200acca097f15c522e94df SHA512 22452ea2b497aeedba6be739f573c8ca1d4dec3aca401f1ce6aac3fa96411f94fc72aeef895a5c35b97112fb6dd1d836b421fa26740a3dcb6936ae88d4267b9f
+DIST moodle-3.8.6.tgz 53308269 BLAKE2B 20e722bbcd1f4575fa4450b6d7cefd1d882322776975f47940f49300f6c6a4bb9b80dae9e936207c5168a8847ae5d77e535d722aed07b68c1c29bad472cc6b74 SHA512 c3e63d6872fc476391747af03f25f0153a51dcc8a8a81d0330bd368d8bef9703dac700bf975a1891e701faed28227dd4d26a5d61255ca4b5bb349f91db66f20e
+DIST moodle-3.9.3.tgz 57048773 BLAKE2B 21721718ae19c42c61ad4f0d971887e4bf545b88126ab12570d3a9b54e33821b0a99708adcbed78d49ed324d8525a2410db8988b614f76513b61067cb9e4ecc2 SHA512 830e81f28e54c8ebbb4528fe113c1b1b345bb47c80abc725b6afd8111d92315d5af4c82e4241d235bdd22a1b9324b1e63cc3a66bdfa352a768c4604adbec4bdc
diff --git a/www-apps/moodle/moodle-3.9.2.ebuild b/www-apps/moodle/moodle-3.10.ebuild
index 1012b291cbc9..1012b291cbc9 100644
--- a/www-apps/moodle/moodle-3.9.2.ebuild
+++ b/www-apps/moodle/moodle-3.10.ebuild
diff --git a/www-apps/moodle/moodle-3.5.14.ebuild b/www-apps/moodle/moodle-3.5.15.ebuild
index 8b94917f96cc..8b94917f96cc 100644
--- a/www-apps/moodle/moodle-3.5.14.ebuild
+++ b/www-apps/moodle/moodle-3.5.15.ebuild
diff --git a/www-apps/moodle/moodle-3.7.8.ebuild b/www-apps/moodle/moodle-3.7.9.ebuild
index 53ac6f44ea4e..53ac6f44ea4e 100644
--- a/www-apps/moodle/moodle-3.7.8.ebuild
+++ b/www-apps/moodle/moodle-3.7.9.ebuild
diff --git a/www-apps/moodle/moodle-3.8.5.ebuild b/www-apps/moodle/moodle-3.8.6.ebuild
index 53ac6f44ea4e..53ac6f44ea4e 100644
--- a/www-apps/moodle/moodle-3.8.5.ebuild
+++ b/www-apps/moodle/moodle-3.8.6.ebuild
diff --git a/www-apps/moodle/moodle-3.9.3.ebuild b/www-apps/moodle/moodle-3.9.3.ebuild
new file mode 100644
index 000000000000..1012b291cbc9
--- /dev/null
+++ b/www-apps/moodle/moodle-3.9.3.ebuild
@@ -0,0 +1,120 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit webapp
+
+MY_BRANCH="stable$(ver_cut 1)$(ver_cut 2)"
+
+DESCRIPTION="The Moodle Course Management System"
+HOMEPAGE="https://moodle.org"
+SRC_URI="https://download.moodle.org/${MY_BRANCH}/${P}.tgz"
+S="${WORKDIR}/${PN}"
+
+LICENSE="GPL-3+"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+#SLOT empty due to webapp
+
+DB_FLAGS="mysqli?,mssql?,postgres?"
+DB_TYPES=${DB_FLAGS//\?/}
+DB_TYPES=${DB_TYPES//,/ }
+
+AUTHENTICATION_FLAGS="imap?,ldap?,odbc?"
+AUTHENTICATION_MODES=${AUTHENTICATION_FLAGS//\?/}
+AUTHENTICATION_MODES=${AUTHENTICATION_MODES//,/ }
+
+PHP_REQUIRED_FLAGS="ctype,curl,iconv,json,session,simplexml,xml,zip"
+PHP_OPTIONAL_FLAGS="gd,intl,soap,ssl,tokenizer,xmlrpc"
+PHP_FLAGS="${PHP_REQUIRED_FLAGS},${PHP_OPTIONAL_FLAGS}"
+
+IUSE="${DB_TYPES} ${AUTHENTICATION_MODES} vhosts"
+
+# No forced dependency on
+# mssql? - lives on a windows server
+# mysql? ( virtual/mysql )
+# postgres? ( dev-db/postgresql-server-9* )
+# which may live on another server. These USE flags affect the configuration
+# file and the dependency on php. However other dbs are possible. See config.php
+# and the moodle documentation for other possibilities.
+DEPEND=""
+RDEPEND="
+ >=dev-lang/php-7.2[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS}]
+ virtual/httpd-php
+ virtual/cron"
+
+pkg_setup() {
+ webapp_pkg_setup
+
+ # How many dbs were selected? If one and only one, which one is it?
+ MYDB=""
+ DB_COUNT=0
+ for db in ${DB_TYPES}; do
+ if use ${db}; then
+ MYDB=${db}
+ DB_COUNT=$(($DB_COUNT+1))
+ fi
+ done
+
+ if [[ ${DB_COUNT} -eq 0 ]]; then
+ eerror
+ eerror "No database selected in your USE flags,"
+ eerror "You must select at least one."
+ eerror
+ die
+ fi
+
+ if [[ ${DB_COUNT} -gt 1 ]]; then
+ MYDB=""
+ ewarn
+ ewarn "Multiple databases selected in your USE flags,"
+ ewarn "You will have to choose your database manually."
+ ewarn
+ fi
+}
+
+src_prepare() {
+ rm COPYING.txt
+ cp "${FILESDIR}"/config-r1.php config.php
+
+ # Moodle expect pgsql, not postgres
+ MYDB=${MYDB/postgres/pgsql}
+
+ if [[ ${DB_COUNT} -eq 1 ]] ; then
+ sed -i -e "s|mydb|${MYDB}|" config.php
+ fi
+
+ eapply_user
+}
+
+src_install() {
+ webapp_src_preinst
+
+ local MOODLEDATA="${MY_HOSTROOTDIR}"/moodle
+ dodir ${MOODLEDATA}
+ webapp_serverowned -R "${MOODLEDATA}"
+
+ local MOODLEROOT="${MY_HTDOCSDIR}"
+ insinto ${MOODLEROOT}
+ doins -r *
+
+ webapp_configfile "${MOODLEROOT}"/config.php
+
+ if [[ ${DB_COUNT} -eq 1 ]]; then
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
+ else
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-nodb-en.txt
+ fi
+
+ webapp_src_install
+}
+
+pkg_postinst() {
+ einfo
+ einfo
+ einfo "To see the post install instructions, do"
+ einfo
+ einfo " webapp-config --show-postinst ${PN} ${PVR}"
+ einfo
+ einfo
+}