blob: 4e613d180d4d3db674d8579a631468535066ea19 (
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
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
PYTHON_COMPAT=( python3_10 )
inherit distutils-r1
MY_PN="cx_Oracle"
MY_P=${MY_PN}-${PV}
DESCRIPTION="Python interface to Oracle"
HOMEPAGE="
https://oracle.github.io/python-cx_Oracle/
https://pypi.org/project/cx-Oracle/
"
SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="examples"
# Tests require local instance of Oracle DB
RESTRICT="test"
DEPEND="dev-db/oracle-instantclient"
RDEPEND="${DEPEND}"
S=${WORKDIR}/${MY_P}
python_prepare_all() {
# do not install LICENSE and README to /usr/
sed -i -e '/data_files/d' setup.py || die
distutils-r1_python_prepare_all
}
pkg_postinst() {
return
# no python_mod_optimize
}
src_install() {
distutils-r1_src_install
if use examples; then
docinto examples
dodoc -r samples/. || die
fi
}
|