summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2012-07-06 09:27:48 +0000
committerAnthony G. Basile <blueness@gentoo.org>2012-07-06 09:27:48 +0000
commitee19a9ada78e9baa7007cb8400045039fe16f210 (patch)
treeb3fc5f05f3156126c7e0c08acecc484818e80511 /www-apps/moodle
parentmarked x86 per bug 400971 (diff)
downloadhistorical-ee19a9ada78e9baa7007cb8400045039fe16f210.tar.gz
historical-ee19a9ada78e9baa7007cb8400045039fe16f210.tar.bz2
historical-ee19a9ada78e9baa7007cb8400045039fe16f210.zip
Version bump
Package-Manager: portage-2.1.10.65/cvs/Linux x86_64
Diffstat (limited to 'www-apps/moodle')
-rw-r--r--www-apps/moodle/ChangeLog13
-rw-r--r--www-apps/moodle/Manifest36
-rw-r--r--www-apps/moodle/moodle-1.9.19.ebuild122
-rw-r--r--www-apps/moodle/moodle-2.0.10.ebuild126
-rw-r--r--www-apps/moodle/moodle-2.1.7.ebuild126
-rw-r--r--www-apps/moodle/moodle-2.2.4.ebuild126
-rw-r--r--www-apps/moodle/moodle-2.3.1.ebuild126
7 files changed, 661 insertions, 14 deletions
diff --git a/www-apps/moodle/ChangeLog b/www-apps/moodle/ChangeLog
index ba401d254a4f..6692f3f54543 100644
--- a/www-apps/moodle/ChangeLog
+++ b/www-apps/moodle/ChangeLog
@@ -1,6 +1,17 @@
# ChangeLog for www-apps/moodle
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/moodle/ChangeLog,v 1.25 2012/06/26 14:55:03 blueness Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/moodle/ChangeLog,v 1.26 2012/07/06 09:27:48 blueness Exp $
+
+*moodle-2.3.1 (06 Jul 2012)
+*moodle-2.2.4 (06 Jul 2012)
+*moodle-2.1.7 (06 Jul 2012)
+*moodle-2.0.10 (06 Jul 2012)
+*moodle-1.9.19 (06 Jul 2012)
+
+ 06 Jul 2012; Anthony G. Basile <blueness@gentoo.org> +moodle-1.9.19.ebuild,
+ +moodle-2.0.10.ebuild, +moodle-2.1.7.ebuild, +moodle-2.2.4.ebuild,
+ +moodle-2.3.1.ebuild:
+ Version bump
*moodle-2.3 (26 Jun 2012)
diff --git a/www-apps/moodle/Manifest b/www-apps/moodle/Manifest
index 6fcce3307898..32210a774d17 100644
--- a/www-apps/moodle/Manifest
+++ b/www-apps/moodle/Manifest
@@ -1,25 +1,35 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
-AUX config.php 718 RMD160 9e4b97aafca65da8648466d11728c457fff439ab SHA1 d71fc86158e82f706ca2cdfe1efe2e8de62cc607 SHA256 c62a37c0d81043ee4ca7fc4d7610d19dc2df426d556eb3285d7b1fe367a44a8d
-AUX postinstall-en.txt 6524 RMD160 d3799bc5cdc283e787c1b5d08935a8d7851d0c8d SHA1 097744447c046848611bfe53d5191518465f1c6d SHA256 dad8831abc23179ebcd2c2431f11d83346c142175c59da47cf5f913c928de667
-AUX postinstall-nodb-en.txt 171 RMD160 88ff71d95c63f1b5d76e398c3566ada75954cdf4 SHA1 26748e5f24207ef5cb145e3668e1f17cdcddf699 SHA256 f39ff660a1cafbbd96ce18c46f056450ace04df5ac401eeccaf16441d54f3b6a
+AUX config.php 718 SHA256 c62a37c0d81043ee4ca7fc4d7610d19dc2df426d556eb3285d7b1fe367a44a8d SHA512 38347d3a275397074abe3cc8cd1521c7fe2deb45f4702d7a8a3e3c30ab6e2c1c51fa2c1f58d7fc99f0b72f2dcd243b8dcfdd7b3641c22c41399705aab6b59479 WHIRLPOOL 51daeca50711e6cda7ef3703be71fd59bd7abeb2bfa4b0c7b42924dea5d0cbb9d4fac478aeb13bc655d097bbed3ddb99e35e43c6b2f800cabcf916142996bbb8
+AUX postinstall-en.txt 6524 SHA256 dad8831abc23179ebcd2c2431f11d83346c142175c59da47cf5f913c928de667 SHA512 bb3e5187db6be49707801cfde15ebced065f2d4b8c1a04fef2f4ced0a67dab2440b8e79d110685056cad84647f8ebb587c697452df8e2b0eab07b015d01b92cf WHIRLPOOL 6ed4f9db76238db6e0a2afd98b8877a1de4e06311d77a6153bb9d8bbc559fd226190c7bf4a8053e35000fcb24babf154021a42d1b58ba92c3ee86bb5dfae1894
+AUX postinstall-nodb-en.txt 171 SHA256 f39ff660a1cafbbd96ce18c46f056450ace04df5ac401eeccaf16441d54f3b6a SHA512 b0cf4787351f904caf06573c5bc50275b6a11361170b4006acc24224f44efde69cfe3a9b6340d6787c5805c605dc89f07072bf992b0ee255c97fba90e5d5617e WHIRLPOOL 3f91b917e8c92866d570c0af2dabbb11eb6bdf7d4cf3e9e8984649b5c147736f267156c490ab51fcd7fda9e7b3ac2ead8259231b20e74e349fb143ed44b08616
DIST moodle-1.9.18.tgz 14052970 RMD160 c28332851657eea16b41b3826de3bde74668861d SHA1 4f3804ded0b2a00f4c1b2c80db8a8ea7d393d810 SHA256 8707e5de8925f171e410737b360a0f2f3c2a1dd36dff4109bac97101889c24a3
+DIST moodle-1.9.19.tgz 14071136 SHA256 969a7de07b1b116e3528e1c5d0bdaeeb7f00ae81d10b6451167d1eea85818d98 SHA512 55098ab1e8016f25163a0e24734a8f394e891cf7aeea61ef6ad9e73fbbaccb5187da20edbbc3290729db7bd6ed6b731ebfa620de2b40445d4ce04c0623a78c71 WHIRLPOOL 9b3db6315273cea9fc24f9f327d82ca81c69ec22e3e1f52f7ce82902b47d465dcf6ccbda11f5400480fd1598ab811f8e64093b5187a5e6d5717984141a45c2ba
+DIST moodle-2.0.10.tgz 22521921 SHA256 1b73f14c21eab866edbb9fb64e662bd25fcc2fefb630b7e3e9564bf0f95cc8f2 SHA512 cbf8b88de07e5534b98d87ff5c00becb0bb4db3e9fd7b9090792fc356ffab2c0e2c5594b77b6e632e574e37080ce40e800b754c47acc8f16ef0a5ca0d4114cf7 WHIRLPOOL 8c36ceb119333ce3a732abd446492a835343829571f13008ee3017127799a979ca95379309426150f2c3fa6afdb33c3174cf950d28c04f53d52e1b9570fdd500
DIST moodle-2.0.9.tgz 22519227 RMD160 6d6737fd653dee9a9bc4f04b9791ceb56afb470d SHA1 9c32b751728b7e4f9bfb7ff16ea4b2d865420b7b SHA256 4e543af4d0ad4b3cf1fdeb00e11769c1bc2d0c75b21a9a2dd07e4c4b1d537344
DIST moodle-2.1.6.tgz 24026036 RMD160 f216beac815e0f505d6486d54f7670f098f1366c SHA1 167fe992e6a0dcfc6495794521e076d43dd68796 SHA256 860c44ac08fb3f660008104b6d08f2b8ae81782d2ff13418ce76bfd9620372e0
+DIST moodle-2.1.7.tgz 24035837 SHA256 8de6a6ac4121b208cee7f642be77b470a5c6c0012d8a6d39a187a1d51d531a9c SHA512 657fd886f8a62d33728f68bafd136e4cba965d657b8794284616acbbb1479d28ab88a0fcfae8f848715b4f457b7140507c3e54d658c59e11cf18da39ff84ef7e WHIRLPOOL 337b42dcf9b163555e70ee8473e100ad029e861cc63ee8fbda0de0d8b95c0ccf172a0bb678d6ad2a6ae78b85103e1d143a70e4946c1559f0cb5273cdebd3ff1f
DIST moodle-2.2.3.tgz 24961469 RMD160 9ea0654160d632fa32b5b4264b10bd79bb2c3697 SHA1 be96e4b8a2d91094f49b69cf3ff8e0d478d787a8 SHA256 4a3e6a7ff0d508e5dce2ce085e99ee265847be0819604a798310d33d49555287
+DIST moodle-2.2.4.tgz 24974166 SHA256 f093fa32b20247c47d258f2f99af97a4f1ee64a86a3397265da5d5569215110f SHA512 946759fa656d397eea2e668be73591604cf3253f92d41c8717d73e9361e11bf9b8cca64b3ef7334de0308294fa2cd4d401f4ed389497d95bcb7f775a34a10ada WHIRLPOOL 8851e9ca22a5df44a6e2a2e3a03b39dd031622b53c1d714bfc90710b34b376765966551607a7bcd54979a2d4e844b6db3aae68f9744cafe6e990a383a0d49758
+DIST moodle-2.3.1.tgz 28464309 SHA256 b09a6f15fdfde1a6acf3e94e69e6e175f80e0efa217d0cd88545c375b7c28770 SHA512 261579036512a4eecbb238bd281d3579b35fdf89e3d31148d64fd26cf4eb229d5444ca3f87b10cf9804c4f5dfe145199952de1d8847995b606462e9eb5bc4258 WHIRLPOOL 0d7cb6f203f00678e572ba722df7063bfc166636ce748606f866b00df7e353cac402d4e2558bc46199711478b806dfa677ca4fd549d64d022f7162b89dc89b8a
DIST moodle-2.3.tgz 28429018 RMD160 c1bbe8ef7f8ac268cd0c42f7e719202caaea01a8 SHA1 63e15c1dcb9f9ca3c02d18c8b79f79368eed838a SHA256 abe44e2bc3d8036004af0325cd910b75d53a306f69cc6abfa06d2b2e3fece4d8
-EBUILD moodle-1.9.18.ebuild 2983 RMD160 c83166d689d7f741780d99f42d589d50841c2b3c SHA1 d7648cf72aeaeb4ea8a4ccbf041155cc879bc780 SHA256 85a105b02077a58d9a1809604c8f8df26f7c8146932d2dc8aa30c44673a109e9
-EBUILD moodle-2.0.9.ebuild 3261 RMD160 531048903b99eff6a3b9633c140c4f3a5b7b5525 SHA1 f81e69465f18c01ffba43aceee71665513ab122e SHA256 01601a8ca0b1c43355fc3c9a08ccbc5fd301d0b99fd21a7acdcfc3c239757a8b
-EBUILD moodle-2.1.6.ebuild 3261 RMD160 5c3b9d2235b6d745cfc2f1b9112e5784f72795d6 SHA1 0f37a3dada8c43026fa0609b4a12e94c9862b947 SHA256 911de265ed5c6ab78bba5305dfe5ef0056b51e9b097d73528b74177552b78896
-EBUILD moodle-2.2.3.ebuild 3261 RMD160 d902ef28cfc4b55e7164691a87772ec596c976a0 SHA1 3e673b513d72a4dc0596ecf47b21319f3b5eeec6 SHA256 70f605bc5d1213b09d468e0280eef7badbb140a66665e5f6ca6afd00c3647e8b
-EBUILD moodle-2.3.ebuild 3259 RMD160 9e2f21b967cde6277512fbfb88967bf05a8fe11e SHA1 9c2c1b25484c4c05f2cc77959b9d712f3650ec79 SHA256 cafc0d5ef82d46f6e7f44dfcd05f68f2f24bdae610fb959bd879a24570867dfb
-MISC ChangeLog 5454 RMD160 78b97b7dd053243e83b4ef7d4f42118beb82d8c9 SHA1 3a5d47b1030687de63ff60617402180968555dd0 SHA256 5909228c62b9ec3902c243bf811fc06eccf602e829968235144b55a7aa761e5e
-MISC metadata.xml 256 RMD160 7cd5a16a6eade95f71d40edbb4729baadfbc7649 SHA1 809eeef12d97ae39db024aea151a70c7363475b7 SHA256 8230894d717ea9f2e42f9c7de54671126820f89bf05ca96ec5f03842b12378e1
+EBUILD moodle-1.9.18.ebuild 2983 SHA256 85a105b02077a58d9a1809604c8f8df26f7c8146932d2dc8aa30c44673a109e9 SHA512 cd21a1c59b8413b1fe597e11e407a3893facd715f4026aee00ad1e82e38f6f59a97811a4059e62e4009231db73620a5c3bc52c956edb1de4493f860b04eb2d43 WHIRLPOOL 2568ec3461558bfbd66b7b30f68e609b414d256757eb7e05334c2330282bb319f004ff64efa24603c4ce6f8c05c9d297ff9b6cc0cec4a30c01250013a88ee369
+EBUILD moodle-1.9.19.ebuild 2983 SHA256 5e08baa11f6b7d54caf777cd0ff510da586e3d4556a784a5f445300161493240 SHA512 87339eb53be6480cbc64e4420cd6b2e6b869cf6227e0e35fd4c14337ee5616badc550775cb87ae7f9a7a6268739be34fa2c97bc11cf682462b59a1ad08ec1221 WHIRLPOOL aa3f39b4f728b07d88561d1e42e63e536aad1de74506d119ca5a74d3977e0531dc2bf709e566068712a97973dbf9b917bce8bea0f1f8b16d638a335a0f39d8fe
+EBUILD moodle-2.0.10.ebuild 3262 SHA256 d1beef57ec1d88ac34d5c446c3afe131b40b6f9a688322f4ec569b4c64dc630d SHA512 cc909e5e826e044c37086c4328eb34ee209805268a4a0ec0904c26354ecc3254de7660277c2eff529fdd3208682bb0e298fd7905fe1066f457406fa9b8d82372 WHIRLPOOL 4f5115ad26c2710e4bd047b6283b24a14d806b958ef0272334d5516131c7111c4882741ac49406b9edcdb16cf2bec8ecfba3542c588bce3d03889f99adcd336f
+EBUILD moodle-2.0.9.ebuild 3261 SHA256 01601a8ca0b1c43355fc3c9a08ccbc5fd301d0b99fd21a7acdcfc3c239757a8b SHA512 dbe8ff48a3aac53569da6ec75f978c89614d4096015bd055f9715032d8955c1325b15a6be83345a9deacba37f630040d33b84d041b1c499f71298fd3cc672f3a WHIRLPOOL 2b1b4c68c02f3427115e40277dc571d64decb0b619e3b9f3bd85a56153a322b245da8bbecb6ac2d7abdd9bea462625f36666a9e7a7f6d9f959eb5a07695e1b1e
+EBUILD moodle-2.1.6.ebuild 3261 SHA256 911de265ed5c6ab78bba5305dfe5ef0056b51e9b097d73528b74177552b78896 SHA512 e56b3659c516b42381cdb2f5c3fbefdd8bf120ce34f14fd1fd85e5c19cc325c211e9345d7c7f570fe04f41efaf13ba8921d3d4ccf63f627d4af1a072922c52a2 WHIRLPOOL 090c0d67cfe284889f5df0420a26b9b796e69eb2b36267355ce6deedbf4719c1bb46f5f9bdeaab7838e93d69d39c065e8956581dcf9bbe694adc512e0d61f46c
+EBUILD moodle-2.1.7.ebuild 3261 SHA256 7e85ad23024a9b7aee5b9017068c6f82fc1d51818c1c845e1cc85745aefd629b SHA512 4b01d6517aa29ee737a4ccfe301c5c97fa728a7bfa12c3d5133fc228fe402ce4c9b47f44ee9a7bbcb099489cce97fe902e0909fc5b098e150b1abde9a4d00f65 WHIRLPOOL cf1a9f7e0a3f4eaf620c46c523fb38fe7a2a539f4c963390802d036b4e1edc80d84cc59012c4226a5628878638de4eb5e32932f68dd8341e614f54e3895fda74
+EBUILD moodle-2.2.3.ebuild 3261 SHA256 70f605bc5d1213b09d468e0280eef7badbb140a66665e5f6ca6afd00c3647e8b SHA512 2edd87d3caee5ce70cb3c03d319cdf4de242d7d4340cead8e5a73e345b54ab44586a0dbcf40935d88a555dd5fc8c60b05501c2b0f9be44c021fbcaffd2a95092 WHIRLPOOL 0e5f0ab84ab9de4af82cd472fb49c1fca9428d9ce46f9fac63d7829edc202226b96995c84ab76d9fb1ac4e8c8d3aaf086a8857a734dc5faf4f647d9ae112852d
+EBUILD moodle-2.2.4.ebuild 3261 SHA256 8dfd72f6ab07329f419e06b0f0dc5673d03fb55007e979a3d0aa67fdca4f69a2 SHA512 cfa10e646a96ed5b7dc31fb074f503860ff42fc4e69d8983a1f6bc75544a010806a3cdd01487a8f57241260c3489bd5c95f9ed7687856e912000cf8c679128ee WHIRLPOOL 82205b42d31094d94f6d22a2313dd0d353b5d6bc6757f7d6de09204e6fbc2fd82dc98e84c7bbba1e70bfaa0e27bae8a44d62ab31510ae835eef77f31a3e1f4ec
+EBUILD moodle-2.3.1.ebuild 3261 SHA256 3ec8ae0f5b7109481bc0d6ce95c4d369d9f11e331d80041ec0f21ed13d5e3610 SHA512 2ce30cff467e1458dcd4da810974698527dbafee7af3e8a22ce8c9ce6f6dcda4ccf3ea69b5df5a65f917c70d91dbde8eb73ddf0f2b06c51e55b13dc25947efbc WHIRLPOOL 25f53876b20dc9c5156514d10d91c228f3929565d4348fb58b2589cd0cb3f927479563274aef210a42ff5db0bb54749515d263a12fbcceb9ae693bf680e3a171
+EBUILD moodle-2.3.ebuild 3259 SHA256 cafc0d5ef82d46f6e7f44dfcd05f68f2f24bdae610fb959bd879a24570867dfb SHA512 c941f14a07950ce0f157d65027e819e69fb7b92f52e4c861fd531f834ef67388883f4b84ca1bb3f052a21dea90c71f50352c1e97c88995d5619a5d59a4e90f6b WHIRLPOOL 83a59b33a8fced5082862e0c8e422838f07b0d9b2bf8c8cc96d13cc384fe0710892f50c54a207f0b7a7833065861c33cde3a565060cfd51677dbb860ec93a8c0
+MISC ChangeLog 5784 SHA256 bc7a94a4542e5a930eb7d351a4ff5bb5b819c43e53eb5b778cb241136711999e SHA512 60799896ea1f864918d4a7f2f9bc8f0513f1bb447d69c16d03c97d26164fc5e740817644e26bd7adffcad3e89cabe0b414b1f4c20a0018a2b0c664facb6e1e94 WHIRLPOOL 4079ccf0978ccfadd04f75d3102b8021b1a8a2ccae57eaba3f005675512b93a2005977cd968f4a08142a15d3aa9bc05371755c82cb0154229e443bca7c85b343
+MISC metadata.xml 256 SHA256 8230894d717ea9f2e42f9c7de54671126820f89bf05ca96ec5f03842b12378e1 SHA512 b94120ce0ef0ab704cecc6b00d1e0460fe60159b4b7d2fedeefbc9e7b0917ead1637ba2cbe598c67cb9b86d7b0874603e555333f4bba1959e228d33a4cd1b2a5 WHIRLPOOL 8269d207868c3ea1efbf1aed77209b809488b66dc46d6304401435747aa527907fd37be2887d09e116409f1dd56f235d3812a6a7898d25701131a8305a6db5c9
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iEYEAREIAAYFAk/pzVEACgkQl5yvQNBFVTWYmgCfVZbK+i/7aXjL5LDrOd6EjkH1
-ZAcAn0RnG2qkrGCohVmqBVnLoHtdyrT7
-=JL38
+iEYEAREIAAYFAk/2r6AACgkQl5yvQNBFVTVpAgCfc/M7zvKhlOi7HxFI8H7pazRf
+mSYAni7tOtVYXhuLyP7YSWW8anc4qnTf
+=GnMg
-----END PGP SIGNATURE-----
diff --git a/www-apps/moodle/moodle-1.9.19.ebuild b/www-apps/moodle/moodle-1.9.19.ebuild
new file mode 100644
index 000000000000..a1e1df8f1dbc
--- /dev/null
+++ b/www-apps/moodle/moodle-1.9.19.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/moodle/moodle-1.9.19.ebuild,v 1.1 2012/07/06 09:27:48 blueness Exp $
+
+EAPI="4"
+
+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 ~ppc ~ppc64 ~sparc ~x86"
+#SLOT empty due to webapp
+
+DBFLAGS="mysql?,postgres?"
+DBTYPES=${DBFLAGS//\?/}
+DBTYPES=${DBTYPES//,/ }
+
+AUTHFLAGS="imap?,ldap?,odbc?"
+AUTHMODES=${AUTHFLAGS//\?/}
+AUTHMODES=${AUTHMODES//,/ }
+
+PHPFLAGS="ctype,curl,gd,iconv,session,ssl,tokenizer,xml,xmlrpc,zlib"
+
+IUSE="${DBTYPES} ${AUTHMODES} vhosts"
+
+# No forced dependency on
+# mysql? ( virtual/mysql )
+# postgres? ( dev-db/postgresql-server-7* )
+# which may live on another server
+DEPEND=""
+RDEPEND="
+ >=dev-lang/php-4.3.0[${DBFLAGS},${AUTHFLAGS},${PHPFLAGS}]
+ 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 ${DBTYPES}; do
+ if use ${db}; then
+ MYDB=${db}
+ DB_COUNT=$(($DB_COUNT+1))
+ fi
+ done
+
+ 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.php .
+
+ #
+ # Moodle expect postgres7, not postgres
+ #
+ MYDB=${MYDB/postgres/postgres7}
+ 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-2.0.10.ebuild b/www-apps/moodle/moodle-2.0.10.ebuild
new file mode 100644
index 000000000000..132c50657d5a
--- /dev/null
+++ b/www-apps/moodle/moodle-2.0.10.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/moodle/moodle-2.0.10.ebuild,v 1.1 2012/07/06 09:27:48 blueness Exp $
+
+EAPI="4"
+
+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 ~ppc ~ppc64 ~sparc ~x86"
+#SLOT empty due to webapp
+
+DB_FLAGS="mysqli?,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_53="ctype,curl,iconv,json,session,simplexml,xml,zip"
+PHP_OPTIONAL_FLAGS_53="gd,intl,soap,ssl,tokenizer,xmlrpc"
+PHP_FLAGS_53="${PHP_REQUIRED_FLAGS_53},${PHP_OPTIONAL_FLAGS_53}"
+
+IUSE="${DB_TYPES} ${AUTHENTICATION_MODES} vhosts"
+
+# No forced dependency on
+# mysql? ( virtual/mysql )
+# postgres? ( dev-db/postgresql-server-7* )
+# which may live on another server
+DEPEND=""
+RDEPEND="
+ =dev-lang/php-5.3*[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS_53}]
+ 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 "\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.php .
+
+ # Moodle expect postgres7, not postgres
+ MYDB=${MYDB/postgres/postgres7}
+
+ # Moodle expects mysql, not mysqli
+ MYDB=${MYDB/mysqli/mysql}
+
+ 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-2.1.7.ebuild b/www-apps/moodle/moodle-2.1.7.ebuild
new file mode 100644
index 000000000000..8c9a2100cccc
--- /dev/null
+++ b/www-apps/moodle/moodle-2.1.7.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/moodle/moodle-2.1.7.ebuild,v 1.1 2012/07/06 09:27:48 blueness Exp $
+
+EAPI="4"
+
+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 ~ppc ~ppc64 ~sparc ~x86"
+#SLOT empty due to webapp
+
+DB_FLAGS="mysqli?,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_53="ctype,curl,iconv,json,session,simplexml,xml,zip"
+PHP_OPTIONAL_FLAGS_53="gd,intl,soap,ssl,tokenizer,xmlrpc"
+PHP_FLAGS_53="${PHP_REQUIRED_FLAGS_53},${PHP_OPTIONAL_FLAGS_53}"
+
+IUSE="${DB_TYPES} ${AUTHENTICATION_MODES} vhosts"
+
+# No forced dependency on
+# mysql? ( virtual/mysql )
+# postgres? ( dev-db/postgresql-server-7* )
+# which may live on another server
+DEPEND=""
+RDEPEND="
+ =dev-lang/php-5.3*[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS_53}]
+ 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 "\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.php .
+
+ # Moodle expect postgres7, not postgres
+ MYDB=${MYDB/postgres/postgres7}
+
+ # Moodle expects mysql, not mysqli
+ MYDB=${MYDB/mysqli/mysql}
+
+ 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-2.2.4.ebuild b/www-apps/moodle/moodle-2.2.4.ebuild
new file mode 100644
index 000000000000..4ddeca4392a8
--- /dev/null
+++ b/www-apps/moodle/moodle-2.2.4.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/moodle/moodle-2.2.4.ebuild,v 1.1 2012/07/06 09:27:48 blueness Exp $
+
+EAPI="4"
+
+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 ~ppc ~ppc64 ~sparc ~x86"
+#SLOT empty due to webapp
+
+DB_FLAGS="mysqli?,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_53="ctype,curl,iconv,json,session,simplexml,xml,zip"
+PHP_OPTIONAL_FLAGS_53="gd,intl,soap,ssl,tokenizer,xmlrpc"
+PHP_FLAGS_53="${PHP_REQUIRED_FLAGS_53},${PHP_OPTIONAL_FLAGS_53}"
+
+IUSE="${DB_TYPES} ${AUTHENTICATION_MODES} vhosts"
+
+# No forced dependency on
+# mysql? ( virtual/mysql )
+# postgres? ( dev-db/postgresql-server-7* )
+# which may live on another server
+DEPEND=""
+RDEPEND="
+ =dev-lang/php-5.3*[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS_53}]
+ 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 "\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.php .
+
+ # Moodle expect postgres7, not postgres
+ MYDB=${MYDB/postgres/postgres7}
+
+ # Moodle expects mysql, not mysqli
+ MYDB=${MYDB/mysqli/mysql}
+
+ 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-2.3.1.ebuild b/www-apps/moodle/moodle-2.3.1.ebuild
new file mode 100644
index 000000000000..f317a7ec5eee
--- /dev/null
+++ b/www-apps/moodle/moodle-2.3.1.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/moodle/moodle-2.3.1.ebuild,v 1.1 2012/07/06 09:27:48 blueness Exp $
+
+EAPI="4"
+
+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 ~ppc ~ppc64 ~sparc ~x86"
+#SLOT empty due to webapp
+
+DB_FLAGS="mysqli?,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_53="ctype,curl,iconv,json,session,simplexml,xml,zip"
+PHP_OPTIONAL_FLAGS_53="gd,intl,soap,ssl,tokenizer,xmlrpc"
+PHP_FLAGS_53="${PHP_REQUIRED_FLAGS_53},${PHP_OPTIONAL_FLAGS_53}"
+
+IUSE="${DB_TYPES} ${AUTHENTICATION_MODES} vhosts"
+
+# No forced dependency on
+# mysql? ( virtual/mysql )
+# postgres? ( dev-db/postgresql-server-7* )
+# which may live on another server
+DEPEND=""
+RDEPEND="
+ =dev-lang/php-5.3*[${DB_FLAGS},${AUTHENTICATION_FLAGS},${PHP_FLAGS_53}]
+ 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 "\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.php .
+
+ # Moodle expect postgres7, not postgres
+ MYDB=${MYDB/postgres/postgres7}
+
+ # Moodle expects mysql, not mysqli
+ MYDB=${MYDB/mysqli/mysql}
+
+ 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
+}