aboutsummaryrefslogtreecommitdiff
blob: 878e61141cf572c3bf640221bbb60be22fddcb48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

PYTHON_COMPAT=( python2_7 )

inherit distutils-r1

MY_PN=${PN//_/.}
MY_P=${P//_/.}

DESCRIPTION="SQL handler for Pydap server that allows serving data from SQL databases"
HOMEPAGE="http://pydap.org/handlers.html#cdms"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"

LICENSE="pydap"
SLOT="0"
KEYWORDS="~amd64"
IUSE="postgres mysql"

DEPEND="
	>=dev-python/setuptools-0.6_rc3[${PYTHON_USEDEP}]
	>=dev-python/paver-1.0.4[${PYTHON_USEDEP}]"
RDEPEND="
	>=sci-geosciences/pydap-3.0_rc8[${PYTHON_USEDEP}]
	>=sci-geosciences/cdat-lite-5.2[${PYTHON_USEDEP}]
	>=dev-python/arrayterator-1.0.1[${PYTHON_USEDEP}]
	postgres? ( >=dev-python/psycopg-2[${PYTHON_USEDEP}] )
	mysql? ( >=dev-python/mysql-python-1.2.3_rc1[${PYTHON_USEDEP}] )"

	# When cx_oracle is available...
	# oracle? >=dev-python/cx_oracle

	# Currently adodbapi is only availble for Windows so mssql support is not available.
	# If pydap used dev-python/pymssql that would be better.

S="$WORKDIR/$MY_P"

python_prepare_all() {
	paver generate_setup || die
	distutils-r1_python_prepare_all
}