diff options
Diffstat (limited to 'net-print/pykota/pykota-1.26.ebuild')
-rw-r--r-- | net-print/pykota/pykota-1.26.ebuild | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/net-print/pykota/pykota-1.26.ebuild b/net-print/pykota/pykota-1.26.ebuild index 356c7f184c63..a9c2962a475f 100644 --- a/net-print/pykota/pykota-1.26.ebuild +++ b/net-print/pykota/pykota-1.26.ebuild @@ -1,9 +1,10 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-print/pykota/pykota-1.26.ebuild,v 1.2 2012/03/20 14:46:11 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-print/pykota/pykota-1.26.ebuild,v 1.3 2013/01/17 16:47:48 mgorny Exp $ EAPI=3 PYTHON_DEPEND="2" +PYTHON_USE_WITH='sqlite?' inherit distutils @@ -24,7 +25,6 @@ DEPEND="dev-lang/python ldap? ( dev-python/python-ldap ) mysql? ( dev-python/mysql-python ) postgres? ( dev-db/postgresql-server dev-db/pygresql ) - sqlite? ( dev-python/pysqlite:2 ) snmp? ( net-analyzer/net-snmp =dev-python/pysnmp-3.4* ) xml? ( dev-python/jaxml )" RDEPEND="${DEPEND}" @@ -38,6 +38,13 @@ pkg_setup() { python_pkg_setup } +src_prepare() { + distutils_src_prepare + + sed -i -e 's:from pysqlite2 import dbapi2:import sqlite3:' \ + pykota/storages/sqlitestorage.py || die +} + src_install() { dodir /etc/${PN} || die distutils_src_install |