add mysqlclient for py2
Hanno Böck

Hanno Böck commited on 2020-09-27 11:36:00
Zeige 3 geänderte Dateien mit 54 Einfügungen und 0 Löschungen.

... ...
@@ -0,0 +1,3 @@
1
+DIST mysqlclient-1.4.6.tar.gz 85517 BLAKE2B f5e604094b06b919b92ecadc8b3f0249dd038149d1182ba882fe6b0ecd34f0bcceeed21b310318ca3291d9483fd3d1ac385c29415e07a8fbabb6cd65ccee8a2d SHA512 11ecb8a0a6f78edb193cd07472579aec1626994a80a584ff74de18774e7db8896de595f3e4d280b78e8636f53323ebcce8aa294ec7b2a54a839742d9699650ab
2
+EBUILD mysqlclient-1.4.6.ebuild 888 BLAKE2B d6087f6f9fcd24ea80246561be97438ebbe923461287bb8bc06e18964fb04a07201a24571aea6e96e99d0e6fbc831eabe1816d851a6950fa2da4c78a49d914b2 SHA512 9bdafc569ae591c23beb61265e037acea88e232e9856f15786dfd4dc059115b15afa6aa18318334d6da8d60589601b7c2e82af45f2c1b17a235f55841f25816c
3
+MISC metadata.xml 513 BLAKE2B a65aef9c59557dd33af579ee376553bd46fbd53158d0a02585b2403d6ee45acb281599ec593d5d75d69cc8bafd509a0851ab25764b5a79f3501a7cdad91faa40 SHA512 4a2756c3bde70c4fc73ba347e9648b356983662146cce5c1161f5d0c8333f795bc27d0aebe6019dcfe6402a51611dddfd87609c329a3c2fa6aa20808cee46b38
... ...
@@ -0,0 +1,16 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3
+<pkgmetadata>
4
+  <maintainer type="person">
5
+    <email>prometheanfire@gentoo.org</email>
6
+    <name>Matthew Thode</name>
7
+  </maintainer>
8
+  <maintainer type="project">
9
+    <email>python@gentoo.org</email>
10
+    <name>Python</name>
11
+  </maintainer>
12
+  <upstream>
13
+    <remote-id type="pypi">mysqlclient</remote-id>
14
+    <remote-id type="github">PyMySQL/mysqlclient-python</remote-id>
15
+  </upstream>
16
+</pkgmetadata>
... ...
@@ -0,0 +1,35 @@
1
+# Copyright 1999-2020 Gentoo Authors
2
+# Distributed under the terms of the GNU General Public License v2
3
+
4
+EAPI=6
5
+
6
+PYTHON_COMPAT=( python2_7 python3_{6,7,8} )
7
+
8
+inherit distutils-r1
9
+
10
+DESCRIPTION="Fork of MySQL-python"
11
+HOMEPAGE="https://pypi.org/project/mysqlclient/ https://github.com/PyMySQL/mysqlclient-python"
12
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
13
+
14
+SLOT="0"
15
+LICENSE="GPL-2"
16
+KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc x86 ~amd64-linux ~x86-linux"
17
+IUSE="doc"
18
+
19
+RDEPEND="
20
+	!dev-python/mysql-python
21
+	dev-db/mysql-connector-c:0="
22
+DEPEND="${RDEPEND}
23
+	dev-python/setuptools[${PYTHON_USEDEP}]
24
+	doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
25
+
26
+DOCS=( README.md doc/{FAQ,MySQLdb}.rst )
27
+
28
+python_compile_all() {
29
+	use doc && sphinx-build -b html doc doc/_build/
30
+}
31
+
32
+python_install_all() {
33
+	use doc && local HTML_DOCS=( doc/_build/. )
34
+	distutils-r1_python_install_all
35
+}
0 36