summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2009-03-07 20:43:18 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2009-03-07 20:43:18 +0000
commitee20f9d1826c79ba1ddca7820ee3ec4d8379e347 (patch)
tree69de90df1f087bd1e3346f31e8618be95b96e939 /www-apps
parentTransition to eapi 2 use deps (diff)
downloadgentoo-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')
-rw-r--r--www-apps/trac/ChangeLog7
-rw-r--r--www-apps/trac/trac-0.11.2.ebuild57
2 files changed, 11 insertions, 53 deletions
diff --git a/www-apps/trac/ChangeLog b/www-apps/trac/ChangeLog
index e951a4156aea..fade33abf774 100644
--- a/www-apps/trac/ChangeLog
+++ b/www-apps/trac/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for www-apps/trac
-# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/ChangeLog,v 1.84 2008/11/17 04:40:58 wrobel Exp $
+# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/ChangeLog,v 1.85 2009/03/07 20:43:18 betelgeuse Exp $
+
+ 07 Mar 2009; Petteri Räty <betelgeuse@gentoo.org> trac-0.11.2.ebuild:
+ Migrate to EAPI 2.
17 Nov 2008; Gunnar Wrobel <wrobel@gentoo.org> -trac-0.10.5.ebuild:
Removed vulnerable www-apps/trac-0.10.5 (sec issue #246130).
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
}