blob: 03ab2f9f345155a09af5a5813f144d13fd2ac651 [file] [log] [blame]
Keith Haddow6ac62982019-06-04 08:39:35 -07001# Copyright 1999-2019 Gentoo Authors
2# Distributed under the terms of the GNU General Public License v2
3
4EAPI=6
5
6PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy )
7
8inherit distutils-r1
9
10DESCRIPTION="Fork of MySQL-python"
11HOMEPAGE="https://pypi.org/project/mysqlclient/ https://github.com/PyMySQL/mysqlclient-python"
12SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.post1.tar.gz -> ${PF}.tar.gz"
13S="${WORKDIR}/${P}.post1"
14
15SLOT="0"
16LICENSE="GPL-2"
17KEYWORDS="*"
18IUSE="doc"
19
20RDEPEND="
21 !dev-python/mysql-python
22 dev-db/mariadb-connector-c[mysqlcompat]"
23DEPEND="${RDEPEND}
24 dev-python/setuptools[${PYTHON_USEDEP}]
25 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
26
27DOCS=( README.md doc/{FAQ,MySQLdb}.rst )
28
29python_compile_all() {
30 use doc && sphinx-build -b html doc doc/_build/
31}
32
33python_install_all() {
34 use doc && local HTML_DOCS=( doc/_build/. )
35 distutils-r1_python_install_all
36}