mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-05 19:11:57 +02:00
mysql-python: fork because Gentoo is slow, https://bugs.gentoo.org/632578
This commit is contained in:
parent
d2a8504bb5
commit
709e39fa95
5 changed files with 91 additions and 0 deletions
1
dev-python/mysql-python/Manifest
Normal file
1
dev-python/mysql-python/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST MySQL-python-1.2.5.zip 108935 BLAKE2B c4d5d4bc814c05604c4acf673ba4f4040dac2653e65173f672a42de4f2877583c79553533040c5502f99b57b71868031daeea7b637a4bea189fb20eea6a6ecc2 SHA512 37521c6fd855c4cde495cc8ec085aca79c2d441a6e3710759385bf2e2c17f43d3311cf1166663892829d2e3999c419443c358c7031cdda225ac44611ced188d0
|
||||
12
dev-python/mysql-python/files/include.patch
Normal file
12
dev-python/mysql-python/files/include.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
diff -urNp MySQL-python-1.2.5-orig/_mysql.c MySQL-python-1.2.5-dwok/_mysql.c
|
||||
--- MySQL-python-1.2.5-orig/_mysql.c 2019-08-21 16:38:34.888225875 +0200
|
||||
+++ MySQL-python-1.2.5-dwok/_mysql.c 2019-08-21 16:39:35.394098745 +0200
|
||||
@@ -40,8 +40,6 @@ PERFORMANCE OF THIS SOFTWARE.
|
||||
#include "structmember.h"
|
||||
#if defined(MS_WINDOWS)
|
||||
#include <config-win.h>
|
||||
-#else
|
||||
-#include "my_config.h"
|
||||
#endif
|
||||
#include "mysql.h"
|
||||
#include "mysqld_error.h"
|
||||
16
dev-python/mysql-python/files/mariadb.patch
Normal file
16
dev-python/mysql-python/files/mariadb.patch
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
diff -ur MySQL-python-1.2.5.orig/setup_posix.py MySQL-python-1.2.5/setup_posix.py
|
||||
--- MySQL-python-1.2.5.orig/setup_posix.py 2014-01-02 13:52:50.000000000 +0100
|
||||
+++ MySQL-python-1.2.5/setup_posix.py 2017-09-18 01:50:28.137820576 +0200
|
||||
@@ -69,6 +69,12 @@
|
||||
include_dirs = [ dequote(i[2:])
|
||||
for i in mysql_config('cflags')
|
||||
if i.startswith(compiler_flag('I')) ]
|
||||
+ # fix for mariadb-10.2.8
|
||||
+ extra_include_dirs = []
|
||||
+ for d in include_dirs:
|
||||
+ if not d.endswith('..'):
|
||||
+ extra_include_dirs.append(d + '/server')
|
||||
+ include_dirs += extra_include_dirs
|
||||
|
||||
if static:
|
||||
extra_objects.append(os.path.join(library_dirs[0],'lib%s.a' % client))
|
||||
12
dev-python/mysql-python/metadata.xml
Normal file
12
dev-python/mysql-python/metadata.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">mysql-python</remote-id>
|
||||
<remote-id type="sourceforge">mysql-python</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
50
dev-python/mysql-python/mysql-python-1.2.5-r3.ebuild
Normal file
50
dev-python/mysql-python/mysql-python-1.2.5-r3.ebuild
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1 flag-o-matic
|
||||
|
||||
MY_PN="MySQL-python"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Python interface to MySQL"
|
||||
HOMEPAGE="https://sourceforge.net/projects/mysql-python/ https://pypi.org/project/MySQL-python/"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc"
|
||||
|
||||
RDEPEND="dev-db/mysql-connector-c"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="${RDEPEND}
|
||||
app-arch/unzip
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
DOCS=( HISTORY README.md doc/{FAQ,MySQLdb}.rst )
|
||||
|
||||
#https://bugs.gentoo.org/632578
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/mariadb.patch
|
||||
"${FILESDIR}"/include.patch
|
||||
)
|
||||
|
||||
python_configure_all() {
|
||||
append-flags -fno-strict-aliasing
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && sphinx-build -b html doc doc/_build/
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( doc/_build/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
Loading…
Reference in a new issue