1 |
commit: 32fe2e0afd4604e906226748ab41b9f3202188c3 |
2 |
Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 1 03:45:24 2020 +0000 |
4 |
Commit: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 1 03:45:28 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32fe2e0a |
7 |
|
8 |
dev-python/pygresql: Bump to 5.2 |
9 |
|
10 |
Add patch to remove excess CFLAGS. Thanks, Jeroen Roovers. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/688286 |
13 |
Package-Manager: Portage-2.3.103, Repoman-2.3.23 |
14 |
Signed-off-by: Aaron W. Swenson <titanofold <AT> gentoo.org> |
15 |
|
16 |
dev-python/pygresql/Manifest | 1 + |
17 |
.../pygresql/files/pygresql-5.1-CFLAGS.patch | 11 ++++++++ |
18 |
.../pygresql/files/pygresql-5.2-CFLAGS.patch | 11 ++++++++ |
19 |
dev-python/pygresql/pygresql-5.2.ebuild | 33 ++++++++++++++++++++++ |
20 |
4 files changed, 56 insertions(+) |
21 |
|
22 |
diff --git a/dev-python/pygresql/Manifest b/dev-python/pygresql/Manifest |
23 |
index 70883cb9ae0..e2878553a9e 100644 |
24 |
--- a/dev-python/pygresql/Manifest |
25 |
+++ b/dev-python/pygresql/Manifest |
26 |
@@ -1 +1,2 @@ |
27 |
DIST PyGreSQL-5.1.tar.gz 642216 BLAKE2B 4f3ff4e59c47d86007884b41355ec5cbc3893ba21e3e5b7a354aab698dde947622ba4b7a1590325ae36f132759e26f37868844c3c21605ead068261129331453 SHA512 d36be0f121c20469193600c551e15b430fdc9e44db00e4ae7adb4985697ddc5653f52fb642b0f3de8316fb916616d07ac1ef03e1e6b20043b7cace131b232a3a |
28 |
+DIST PyGreSQL-5.2.tar.gz 267557 BLAKE2B 92c2c0810a9b763fc2e9fec2e920ca1e21da4eb4ede5f2e20f66fd385ccc623fd9fe74075c6b995c6ea6348df76dcd723c8e4b6d83afdb53c978c02cc5220e49 SHA512 ce1cd29c714ab863dbdc7dde920f8938b115535ae3a0b54c770d7648f05011a716d604eec2d73c321fe2a408e64bcd9208c204856e5ddb0e0675ef7c076e4da7 |
29 |
|
30 |
diff --git a/dev-python/pygresql/files/pygresql-5.1-CFLAGS.patch b/dev-python/pygresql/files/pygresql-5.1-CFLAGS.patch |
31 |
new file mode 100644 |
32 |
index 00000000000..480d0a3dc4c |
33 |
--- /dev/null |
34 |
+++ b/dev-python/pygresql/files/pygresql-5.1-CFLAGS.patch |
35 |
@@ -0,0 +1,11 @@ |
36 |
+--- a/setup.py |
37 |
++++ b/setup.py |
38 |
+@@ -101,7 +101,7 @@ |
39 |
+ library_dirs = [get_python_lib(), pg_config('libdir')] |
40 |
+ define_macros = [('PYGRESQL_VERSION', version)] |
41 |
+ undef_macros = [] |
42 |
+-extra_compile_args = ['-O2', '-funsigned-char', '-Wall', '-Werror'] |
43 |
++extra_compile_args = ['-funsigned-char', '-Wall'] |
44 |
+ |
45 |
+ |
46 |
+ class build_pg_ext(build_ext): |
47 |
|
48 |
diff --git a/dev-python/pygresql/files/pygresql-5.2-CFLAGS.patch b/dev-python/pygresql/files/pygresql-5.2-CFLAGS.patch |
49 |
new file mode 100644 |
50 |
index 00000000000..24b9da21d16 |
51 |
--- /dev/null |
52 |
+++ b/dev-python/pygresql/files/pygresql-5.2-CFLAGS.patch |
53 |
@@ -0,0 +1,11 @@ |
54 |
+--- a/setup.py |
55 |
++++ b/setup.py |
56 |
+@@ -95,7 +95,7 @@ |
57 |
+ library_dirs = [get_python_lib(), pg_config('libdir')] |
58 |
+ define_macros = [('PYGRESQL_VERSION', version)] |
59 |
+ undef_macros = [] |
60 |
+-extra_compile_args = ['-O2', '-funsigned-char', '-Wall', '-Wconversion'] |
61 |
++extra_compile_args = ['-funsigned-char', '-Wall'] |
62 |
+ |
63 |
+ |
64 |
+ class build_pg_ext(build_ext): |
65 |
|
66 |
diff --git a/dev-python/pygresql/pygresql-5.2.ebuild b/dev-python/pygresql/pygresql-5.2.ebuild |
67 |
new file mode 100644 |
68 |
index 00000000000..849038866a6 |
69 |
--- /dev/null |
70 |
+++ b/dev-python/pygresql/pygresql-5.2.ebuild |
71 |
@@ -0,0 +1,33 @@ |
72 |
+# Copyright 1999-2020 Gentoo Authors |
73 |
+# Distributed under the terms of the GNU General Public License v2 |
74 |
+ |
75 |
+EAPI=6 |
76 |
+ |
77 |
+POSTGRES_COMPAT=( 9.{5..6} {10..12} ) |
78 |
+PYTHON_COMPAT=( python3_{6..8} ) |
79 |
+ |
80 |
+inherit distutils-r1 postgres |
81 |
+ |
82 |
+MY_P="PyGreSQL-${PV}" |
83 |
+ |
84 |
+DESCRIPTION="A Python interface for the PostgreSQL database" |
85 |
+HOMEPAGE="https://pygresql.org/" |
86 |
+SRC_URI="mirror://pypi/P/PyGreSQL/${MY_P}.tar.gz" |
87 |
+ |
88 |
+LICENSE="POSTGRESQL" |
89 |
+SLOT="0" |
90 |
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86" |
91 |
+ |
92 |
+DEPEND="${POSTGRES_DEP}" |
93 |
+RDEPEND="${DEPEND}" |
94 |
+ |
95 |
+S="${WORKDIR}/${MY_P}" |
96 |
+PATCHES=( |
97 |
+ "${FILESDIR}"/${PN}-5.2-CFLAGS.patch |
98 |
+) |
99 |
+ |
100 |
+python_install_all() { |
101 |
+ local DOCS=( docs/*.rst docs/community/* docs/contents/tutorial.rst ) |
102 |
+ |
103 |
+ distutils-r1_python_install_all |
104 |
+} |