--- webcalendar-1.0.4.ebuild 2006-08-15 23:20:06.000000000 +0900 +++ webcalendar-1.0.4.ebuild 2006-08-15 23:13:32.000000000 +0900 @@ -3,12 +3,13 @@ # $Header: $ inherit webapp eutils depend.php -DESCRIPTION="WebCalendar is a PHP-based calendar application" + +DESCRIPTION="A PHP-based calendar application" HOMEPAGE="http://webcalendar.sourceforge.net" MY_PN=WebCalendar MY_P=${MY_PN}-${PV} SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" -LICENSE="" +LICENSE="GPL-2" KEYWORDS="~x86" IUSE="mysql postgres sqlite db2 odbc interbase" DEPEND="${DEPEND} @@ -20,7 +21,6 @@ S="${WORKDIR}/${MY_P}" pkg_setup () { - if ! use postgres && ! use sqlite && ! use mysql && \ ! built_with_use dev-lang/php db2 && \ ! built_with_use dev-lang/php odbc && \ @@ -29,17 +29,18 @@ eerror "using sqlite, mysql or postgres USE flags." eerror "Alternatively recompile dev-land/php with" eerror "odbc, db2 or interbase support" - die "no database backend selected" + die "No database backend selected" fi -webapp_pkg_setup + webapp_pkg_setup + use mysql && require_php_with_use mysql use postgres && require_php_with_use postgres use db2 && require_php_with_use db2 use interbase && require_php_with_use interbase use odbc && require_php_with_use odbc use sqlite && require_php_with_use sqlite - } +} src_install() { webapp_src_preinst