diff options
author | 2009-03-07 20:43:18 +0000 | |
---|---|---|
committer | 2009-03-07 20:43:18 +0000 | |
commit | ee20f9d1826c79ba1ddca7820ee3ec4d8379e347 (patch) | |
tree | 69de90df1f087bd1e3346f31e8618be95b96e939 /www-apps/trac/trac-0.11.2.ebuild | |
parent | Transition to eapi 2 use deps (diff) | |
download | gentoo-2-ee20f9d1826c79ba1ddca7820ee3ec4d8379e347.tar.gz gentoo-2-ee20f9d1826c79ba1ddca7820ee3ec4d8379e347.tar.bz2 gentoo-2-ee20f9d1826c79ba1ddca7820ee3ec4d8379e347.zip |
Migrate to EAPI 2.
(Portage version: 2.2_rc20/cvs/Linux 2.6.29-rc6 i686)
Diffstat (limited to 'www-apps/trac/trac-0.11.2.ebuild')
-rw-r--r-- | www-apps/trac/trac-0.11.2.ebuild | 57 |
1 files changed, 6 insertions, 51 deletions
diff --git a/www-apps/trac/trac-0.11.2.ebuild b/www-apps/trac/trac-0.11.2.ebuild index 374785b6902c..e44215c9f9f9 100644 --- a/www-apps/trac/trac-0.11.2.ebuild +++ b/www-apps/trac/trac-0.11.2.ebuild @@ -1,6 +1,8 @@ -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/trac-0.11.2.ebuild,v 1.3 2008/11/16 17:47:23 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/trac-0.11.2.ebuild,v 1.4 2009/03/07 20:43:18 betelgeuse Exp $ + +EAPI="2" inherit distutils webapp @@ -48,46 +50,16 @@ RDEPEND=" sqlite? ( >=dev-db/sqlite-3.3.4 || ( - >=dev-lang/python-2.5 + >=dev-lang/python-2.5[sqlite] >=dev-python/pysqlite-2.3.2 ) ) subversion? ( - >=dev-util/subversion-1.4.2 + >=dev-util/subversion-1.4.2[python] ) !www-apps/trac-webadmin " -# The following function should be added to eutils.eclass (see bug #143572): - -# Generate an standard error message for missing USE flags -# in existing packages, and die. -# -# Usage: built_with_use_die <category/package> <functionality> [<USE flag>] -# ex: built_with_use_die dev-util/subversion python -# or: built_with_use_die www-servers/apache LDAP ldap -# -# Typical usage: -# if ! built_with_use dev-util/subversion python ; then -# built_with_use_die dev-util/subversion python -# fi -# -# Note: when <USE flag> is not specified, <functionality> is used for the USE flag name. -built_with_use_die() { - local package=$1 - local func=$2 - local use_flag=$3 - - [[ -z ${use_flag} ]] && use_flag=${func} - - eerror "Your ${package} package has been built without" - eerror "${func} support, please enable the '${use_flag}' USE flag and" - eerror "re-emerge ${package}." - elog "You can enable this USE flag either globally in /etc/make.conf," - elog "or just for specific packages in /etc/portage/package.use." - die "${package} missing ${func} support" -} - pkg_setup() { webapp_pkg_setup @@ -97,23 +69,6 @@ pkg_setup() { die "no database backend selected" fi - # python has built-in sqlite support starting from 2.5 - if use sqlite && \ - has_version ">=dev-lang/python-2.5" && \ - ! has_version ">=dev-python/pysqlite-2.3" && \ - ! built_with_use dev-lang/python sqlite ; then - eerror "To use the sqlite database backend, you must either:" - eerror "- build dev-lang/python with sqlite support, using the 'sqlite'" - eerror " USE flag, or" - eerror "- emerge dev-python/pysqlite" - die "missing python sqlite support" - fi - - if use subversion && \ - ! built_with_use dev-util/subversion python ; then - built_with_use_die dev-util/subversion python - fi - enewgroup tracd enewuser tracd -1 -1 -1 tracd } |