2013-11-06 17:44:04 +04:00
|
|
|
# Copyright 1999-2013 Gentoo Foundation
|
2012-02-06 16:39:49 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2013-11-06 17:44:04 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/orm/orm-1.0.1.ebuild,v 1.5 2013/11/06 05:21:10 patrick Exp $
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
EAPI="3"
|
|
|
|
PYTHON_DEPEND="2"
|
|
|
|
SUPPORT_PYTHON_ABIS="1"
|
|
|
|
RESTRICT_PYTHON_ABIS="3.*"
|
|
|
|
|
|
|
|
inherit distutils
|
|
|
|
|
2013-11-06 17:44:04 +04:00
|
|
|
DESCRIPTION="The Object Relational Membrane is an attempt to write a minimal Object Relational Layer"
|
2012-02-06 16:39:49 +04:00
|
|
|
HOMEPAGE="http://www.tux4web.de/computer/software/orm/"
|
|
|
|
SRC_URI="http://www.tux4web.de/computer/software/orm/download/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE="firebird mysql +postgres"
|
|
|
|
|
|
|
|
DEPEND="dev-python/egenix-mx-base
|
|
|
|
firebird? ( >=dev-python/kinterbasdb-3.1_pre7 )
|
|
|
|
mysql? ( >=dev-python/mysql-python-0.9.2 )
|
|
|
|
postgres? ( dev-python/psycopg:0 )"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
|
|
|
pkg_setup() {
|
|
|
|
python_pkg_setup
|
|
|
|
|
|
|
|
( use firebird || use mysql || use postgres ) || \
|
|
|
|
die "Using orm without any db makes no sense. Please enable at least one use flag."
|
|
|
|
}
|