/[gentoo-x86]/www-apps/moodle/moodle-1.9.19.ebuild
Gentoo

Diff of /www-apps/moodle/moodle-1.9.19.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.3
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/www-apps/moodle/Attic/moodle-1.9.19.ebuild,v 1.2 2012/07/11 23:00:12 blueness Exp $ 3# $Header: /var/cvsroot/gentoo-x86/www-apps/moodle/Attic/moodle-1.9.19.ebuild,v 1.3 2012/08/24 10:22:46 blueness Exp $
4 4
5EAPI="4" 5EAPI="4"
6 6
7inherit versionator webapp 7inherit versionator webapp
8 8
27AUTHMODES=${AUTHMODES//,/ } 27AUTHMODES=${AUTHMODES//,/ }
28 28
29PHPFLAGS="ctype,curl,gd,iconv,session,ssl,tokenizer,xml,xmlrpc,zlib" 29PHPFLAGS="ctype,curl,gd,iconv,session,ssl,tokenizer,xml,xmlrpc,zlib"
30 30
31IUSE="${DBTYPES} ${AUTHMODES} vhosts" 31IUSE="${DBTYPES} ${AUTHMODES} vhosts"
32REQUIRED_USE="|| ( ${DBTYPES} )"
32 33
33# No forced dependency on 34# No forced dependency on
34# mysql? ( virtual/mysql ) 35# mysql? ( virtual/mysql )
35# postgres? ( dev-db/postgresql-server-7* ) 36# postgres? ( dev-db/postgresql-server-7* )
36# which may live on another server 37# which may live on another server
51 MYDB=${db} 52 MYDB=${db}
52 DB_COUNT=$(($DB_COUNT+1)) 53 DB_COUNT=$(($DB_COUNT+1))
53 fi 54 fi
54 done 55 done
55 56
57 # REQUIRED_USE above guarantees that ${DB_COUNT} cannot be zero
56 if [[ ${DB_COUNT} -eq 0 ]]; then 58 #if [[ ${DB_COUNT} -eq 0 ]]; then
57 eerror 59 # eerror
58 eerror "\033[1;31m**************************************************\033[00m" 60 # eerror "\033[1;31m**************************************************\033[00m"
59 eerror "No database selected in your USE flags," 61 # eerror "No database selected in your USE flags,"
60 eerror "You must select at least one." 62 # eerror "You must select at least one."
61 eerror "\033[1;31m**************************************************\033[00m" 63 # eerror "\033[1;31m**************************************************\033[00m"
62 eerror 64 # eerror
63 die 65 # die
64 fi 66 #fi
65 67
66 if [[ ${DB_COUNT} -gt 1 ]]; then 68 if [[ ${DB_COUNT} -gt 1 ]]; then
67 MYDB="" 69 MYDB=""
68 ewarn 70 ewarn
69 ewarn "\033[1;33m**************************************************\033[00m" 71 ewarn "\033[1;33m**************************************************\033[00m"

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20