summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2016-01-09 06:52:52 -0500
committerAnthony G. Basile <blueness@gentoo.org>2016-01-09 06:53:16 -0500
commit5bd290ae532a7d225cd92a408bdbdc2191530e59 (patch)
tree5c94d56ba7843c42601e8b662ecbe2b4b2239ed4 /www-apps
parentnet-misc/tigervnc: Fix byte order issues (bug #567568). (diff)
downloadgentoo-5bd290ae532a7d225cd92a408bdbdc2191530e59.tar.gz
gentoo-5bd290ae532a7d225cd92a408bdbdc2191530e59.tar.bz2
gentoo-5bd290ae532a7d225cd92a408bdbdc2191530e59.zip
www-apps/moodle: version bumps 2.7.12, 2.8.10, 2.9.4, 3.0.1
Package-Manager: portage-2.2.26
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/moodle/Manifest7
-rw-r--r--www-apps/moodle/moodle-2.7.12.ebuild (renamed from www-apps/moodle/moodle-2.7.11.ebuild)2
-rw-r--r--www-apps/moodle/moodle-2.8.10.ebuild (renamed from www-apps/moodle/moodle-2.8.9.ebuild)2
-rw-r--r--www-apps/moodle/moodle-2.9.4.ebuild (renamed from www-apps/moodle/moodle-2.9.3.ebuild)2
-rw-r--r--www-apps/moodle/moodle-3.0.1.ebuild128
5 files changed, 135 insertions, 6 deletions
diff --git a/www-apps/moodle/Manifest b/www-apps/moodle/Manifest
index 9b3ac9aca0c9..9e52c613cdb4 100644
--- a/www-apps/moodle/Manifest
+++ b/www-apps/moodle/Manifest
@@ -1,3 +1,4 @@
-DIST moodle-2.7.11.tgz 34998741 SHA256 8e7daf0d492dc78cbc3a50651b67b22c836329d696c5453bf0839c3fdd8b5838 SHA512 1fb085bc7e64be22479df568e73496d01042e1197b8d2d5f42a40341a0ec48b5127c1f18b96cb65af09dd8d7314cec35ad25372041399e2e436cb17ec3838101 WHIRLPOOL 27d64a1d65dc804bc8b5080782fbbd397aa4891fd3013964744bc64a1c9cd024ae5712f258554a42fa6f975a0310a514c6ea3b01f3f290d5e3fcd12ff3833130
-DIST moodle-2.8.9.tgz 35992485 SHA256 09fca589cdf4b63052e5319931e8c42ca2e0e53d5eeb12cab852ef84bb50f034 SHA512 6357d3902657056f2da685fb0ac230511c04f2ed54ceb380e637c06ee37e0c6765221aacebdc8c8901c6b646a0043d5c23ed91fd87eda2ebce0cc6128102e515 WHIRLPOOL f2631ba8f4aa01ec052f90ec8f9df37e93287493e0c11194a76422115ceb0a11631afb8d46402906c423a8d5667b0cbf23ee63a5fe112f232075d3788604fb52
-DIST moodle-2.9.3.tgz 36476693 SHA256 48f59bd77df53fb5f608da492f09c21eb7c8994c3ddce39fa7a9fd8e3e0e8f46 SHA512 fe98155f8ad3ddeab571aa6ecf71bb9f44e87801a3de8cca64b5341ed1a13f21d843804187016951dd105f1eec6ea25a95d53a405c3def5a5ac6ac738d14e0d7 WHIRLPOOL c64b2cb7033db84c4e0f7a9479b6bf74b2c615a8382168cb93f75825dc6c3b3760a8abfc0d99261a5c1e528b64a42113b8c9c19c20a68684eb50bd0072514c30
+DIST moodle-2.7.12.tgz 35001038 SHA256 198b67819c96811f5d335c8991678bc4b9eccb51897e808c9c328e4ecb867024 SHA512 f2da0a807b0d8d5614bb80c9aa355bdfecbdb2e36bb4658eaed4ab75c6f98d19bee74e4431731d7d6e61311dd17db851c7787d02f9c3ccf06805150762375e84 WHIRLPOOL 7a2798be6bdb52d36c576442e5f23979bc97bce3f82c093ddfab3e35fa18ca82194d460ed345fc9f8e2928cb77b6a10ae5f804ec2dd392eec2b94ac8d180e02d
+DIST moodle-2.8.10.tgz 35989148 SHA256 e213cf8e3290d00470a8e5174b854fa8b4992da553416d74629cdd1810287930 SHA512 8c72a7d31b4fc1cb9e3c9bf8f02e4dc0bf9d51b6ada2021acb98ea3949282d6385fc027f7922b0afb8e006450f39faa80f2b1a3b389cc74780b4045e67c344d1 WHIRLPOOL 1b88727b42f19243a9b5a998a4368d35bc33959c6c447342160c1e772629782e2fc46e59dbec4cdc29eec2f51f777ab81e2b5ba33cabe4a3cab99d412f8b9403
+DIST moodle-2.9.4.tgz 36513561 SHA256 f4e087e34fc34207a74d85758e8d064a667d9b2ae17ee8c055e94e9172ae67f9 SHA512 f63bdc8a9984a53911383a784d6d7b61c94c4686a1db3e62d734245e981ba4d2b52bf44a74893a39dd0bc8708deb2f0f829d9488a8ccd0a89ed75c3c74913611 WHIRLPOOL 3ece0728df140e206ee13137b3befc78467fc9446807b79112fade0129c8d57a4504ec83389074c85ccac7d6d6fa6c87833531157d9c329cc8032400685c4da2
+DIST moodle-3.0.1.tgz 38019687 SHA256 3570ea84acd02d33b31cc013b700cbc14a69426302104fdb6826a240fe86b704 SHA512 09bacd3012eb2d8e97a183c184dab10dd8c98f11938aea54e30646dc8de64892c73f5694e32ae284ce8b9fd60d28671c6c8a6efb2a2f1a8f915f058ee1e64afd WHIRLPOOL bc0ee738319fa0f369f3aae97ba5f20d497a70487f52ef125ffc55375ad3c25a790a5baa0017d426b023632fd33a196dea79de875d1bd613f76db0a071c3de5a
diff --git a/www-apps/moodle/moodle-2.7.11.ebuild b/www-apps/moodle/moodle-2.7.12.ebuild
index 969d4d538dab..21a783e9c5ba 100644
--- a/www-apps/moodle/moodle-2.7.11.ebuild
+++ b/www-apps/moodle/moodle-2.7.12.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
diff --git a/www-apps/moodle/moodle-2.8.9.ebuild b/www-apps/moodle/moodle-2.8.10.ebuild
index 2ca271047681..ccdb5ad52f4e 100644
--- a/www-apps/moodle/moodle-2.8.9.ebuild
+++ b/www-apps/moodle/moodle-2.8.10.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
diff --git a/www-apps/moodle/moodle-2.9.3.ebuild b/www-apps/moodle/moodle-2.9.4.ebuild
index 2ca271047681..ccdb5ad52f4e 100644
--- a/www-apps/moodle/moodle-2.9.3.ebuild
+++ b/www-apps/moodle/moodle-2.9.4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
diff --git a/www-apps/moodle/moodle-3.0.1.ebuild b/www-apps/moodle/moodle-3.0.1.ebuild
new file mode 100644
index 000000000000..ccdb5ad52f4e
--- /dev/null
+++ b/www-apps/moodle/moodle-3.0.1.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit versionator webapp
+
+AVC=( $(get_version_components) )
+MY_BRANCH="stable${AVC[0]}${AVC[1]}"
+
+DESCRIPTION="The Moodle Course Management System"
+HOMEPAGE="http://moodle.org"
+SRC_URI="http://download.moodle.org/${MY_BRANCH}/${P}.tgz"
+S="${WORKDIR}/${PN}"
+
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~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"
+REQUIRED_USE="|| ( ${DB_TYPES} )"
+
+# 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-5.4.4[${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
+
+ # REQUIRED_USE above guarantees that ${DB_COUNT} cannot be zero
+ #if [[ ${DB_COUNT} -eq 0 ]]; then
+ # eerror
+ # eerror "\033[1;31m**************************************************\033[00m"
+ # eerror "No database selected in your USE flags,"
+ # eerror "You must select at least one."
+ # eerror "\033[1;31m**************************************************\033[00m"
+ # eerror
+ # die
+ #fi
+
+ if [[ ${DB_COUNT} -gt 1 ]]; then
+ MYDB=""
+ ewarn
+ ewarn "\033[1;33m**************************************************\033[00m"
+ ewarn "Multiple databases selected in your USE flags,"
+ ewarn "You will have to choose your database manually."
+ ewarn "\033[1;33m**************************************************\033[00m"
+ 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
+}
+
+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 "\033[1;32m**************************************************\033[00m"
+ einfo
+ einfo "To see the post install instructions, do"
+ einfo
+ einfo " webapp-config --show-postinst ${PN} ${PVR}"
+ einfo
+ einfo "\033[1;32m**************************************************\033[00m"
+ einfo
+}