From 6d9ae4698f3cbfcd4a22c23a436a069c24c593bf Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Sat, 12 Mar 2016 06:45:56 -0500 Subject: www-apps/moodle: version bump to 3.0.3, remove older 3.0 Package-Manager: portage-2.2.26 --- www-apps/moodle/Manifest | 2 +- www-apps/moodle/moodle-3.0.2.ebuild | 128 ------------------------------------ www-apps/moodle/moodle-3.0.3.ebuild | 128 ++++++++++++++++++++++++++++++++++++ 3 files changed, 129 insertions(+), 129 deletions(-) delete mode 100644 www-apps/moodle/moodle-3.0.2.ebuild create mode 100644 www-apps/moodle/moodle-3.0.3.ebuild (limited to 'www-apps') diff --git a/www-apps/moodle/Manifest b/www-apps/moodle/Manifest index e463f13c081d..3d0023b815e6 100644 --- a/www-apps/moodle/Manifest +++ b/www-apps/moodle/Manifest @@ -1,4 +1,4 @@ DIST moodle-2.7.13.tgz 35003234 SHA256 397c04f5365d94490498c71cc7289203050a693b0aeed5bc3db8c45f016faafb SHA512 b9b52d28d9c87aef0d87f2f97b421c68ff8b2b00ce18dccf5eefcda8874eb29e93e6635835bc730d923a56c31bef233043c7588e401c96ad70f40891a41bdb0c WHIRLPOOL c4a937c5ebb04bc23a621bfe584c887980d9630ab51d7caa3315a27a07842d66c3990d78c25d0e88d2bbf5b69e156e2c5a25aaeade5fa9ded5d964f7dcd8f9e6 DIST moodle-2.8.11.tgz 35999389 SHA256 ed9e2b7d16ad3571b796d47cc22024bb794021b3da5d396d1216a217c59225c7 SHA512 f431d30d317807477c1ed7aa3f5b9916b6449634036bd1cc1a55bf391526253f6be04b1b9e8342b5d5acc3a38850ded99873b71eec5474b98a87d70b52533714 WHIRLPOOL 813882ab67ef47b773b94c311134223925dfda284197807c7746abf20adfb099c0a82675294a5ebe47d94cda4a971266ab323685f41ed841769e2ca6ee0d8a08 DIST moodle-2.9.5.tgz 36560684 SHA256 af84e1a893737330ab75fa8985e14b78214f0f98e02091017a5494ef2c7683fc SHA512 621206668aaf5cb103e494c110366beada549049ee87084eb770f0538b80d90e622959968b6dab0dcde9c320d34c083b4d7ef2379765d252919f651f33591777 WHIRLPOOL 22cb87c13d6f746bcf4d0409a42bed4823511c68eac17b309cfb60923d3cda9496d4fa0bdad312d33524211c9e6dc67e737fd4baf89864b3dbecab0dc52581b0 -DIST moodle-3.0.2.tgz 38045086 SHA256 6f6eb95f0e354dc519067538ce60c54151b998efed6f981084ec929266d1b149 SHA512 1c37bcb3f7a6b861c85a22c64a09bcbb2d0dddf8e8dabc63c616034bfd98dc4780222c7d31ab65d19a16f8ab471ba9d25d4bce3b3b04875e12fdde8404bc1aee WHIRLPOOL 142cc7404ecaec943f5a5cae0e180d2867bbdf248194bc867ed7398b763f38c9898ec60313573276b5407b3c401a243f97e119ed5d8e65ac60ff7ce3bf8e29a2 +DIST moodle-3.0.3.tgz 38094358 SHA256 b2a3636d51852327f5234b9a1c5fdef9cafdf4c7b4286b3debd4dad43c277045 SHA512 5c2b632a4b1aa2b654f380ff2caef2f371d5a59c3d62f7d28a1ef2b14eef9ca337d2bc998f1400c1543f3a36b71acb579054d43c2d0feca1b4e03237f4a153b0 WHIRLPOOL 5ae6763455e898e4d6268402f867d67cd61bd561a76e55dc9b914ba3700825dec36d8e82d6f209d7dc8fb8bfa14cf08329f6bc00165e44cbc644f9cfe032a88e diff --git a/www-apps/moodle/moodle-3.0.2.ebuild b/www-apps/moodle/moodle-3.0.2.ebuild deleted file mode 100644 index ccdb5ad52f4e..000000000000 --- a/www-apps/moodle/moodle-3.0.2.ebuild +++ /dev/null @@ -1,128 +0,0 @@ -# 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 -} diff --git a/www-apps/moodle/moodle-3.0.3.ebuild b/www-apps/moodle/moodle-3.0.3.ebuild new file mode 100644 index 000000000000..ccdb5ad52f4e --- /dev/null +++ b/www-apps/moodle/moodle-3.0.3.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 +} -- cgit v1.2.3-65-gdbad