* [gentoo-commits] repo/gentoo:master commit in: dev-python/pygresql/files/, dev-python/pygresql/
@ 2020-08-01 3:45 Aaron W. Swenson
0 siblings, 0 replies; only message in thread
From: Aaron W. Swenson @ 2020-08-01 3:45 UTC (permalink / raw
To: gentoo-commits
commit: 32fe2e0afd4604e906226748ab41b9f3202188c3
Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 1 03:45:24 2020 +0000
Commit: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
CommitDate: Sat Aug 1 03:45:28 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32fe2e0a
dev-python/pygresql: Bump to 5.2
Add patch to remove excess CFLAGS. Thanks, Jeroen Roovers.
Bug: https://bugs.gentoo.org/688286
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Aaron W. Swenson <titanofold <AT> gentoo.org>
dev-python/pygresql/Manifest | 1 +
.../pygresql/files/pygresql-5.1-CFLAGS.patch | 11 ++++++++
.../pygresql/files/pygresql-5.2-CFLAGS.patch | 11 ++++++++
dev-python/pygresql/pygresql-5.2.ebuild | 33 ++++++++++++++++++++++
4 files changed, 56 insertions(+)
diff --git a/dev-python/pygresql/Manifest b/dev-python/pygresql/Manifest
index 70883cb9ae0..e2878553a9e 100644
--- a/dev-python/pygresql/Manifest
+++ b/dev-python/pygresql/Manifest
@@ -1 +1,2 @@
DIST PyGreSQL-5.1.tar.gz 642216 BLAKE2B 4f3ff4e59c47d86007884b41355ec5cbc3893ba21e3e5b7a354aab698dde947622ba4b7a1590325ae36f132759e26f37868844c3c21605ead068261129331453 SHA512 d36be0f121c20469193600c551e15b430fdc9e44db00e4ae7adb4985697ddc5653f52fb642b0f3de8316fb916616d07ac1ef03e1e6b20043b7cace131b232a3a
+DIST PyGreSQL-5.2.tar.gz 267557 BLAKE2B 92c2c0810a9b763fc2e9fec2e920ca1e21da4eb4ede5f2e20f66fd385ccc623fd9fe74075c6b995c6ea6348df76dcd723c8e4b6d83afdb53c978c02cc5220e49 SHA512 ce1cd29c714ab863dbdc7dde920f8938b115535ae3a0b54c770d7648f05011a716d604eec2d73c321fe2a408e64bcd9208c204856e5ddb0e0675ef7c076e4da7
diff --git a/dev-python/pygresql/files/pygresql-5.1-CFLAGS.patch b/dev-python/pygresql/files/pygresql-5.1-CFLAGS.patch
new file mode 100644
index 00000000000..480d0a3dc4c
--- /dev/null
+++ b/dev-python/pygresql/files/pygresql-5.1-CFLAGS.patch
@@ -0,0 +1,11 @@
+--- a/setup.py
++++ b/setup.py
+@@ -101,7 +101,7 @@
+ library_dirs = [get_python_lib(), pg_config('libdir')]
+ define_macros = [('PYGRESQL_VERSION', version)]
+ undef_macros = []
+-extra_compile_args = ['-O2', '-funsigned-char', '-Wall', '-Werror']
++extra_compile_args = ['-funsigned-char', '-Wall']
+
+
+ class build_pg_ext(build_ext):
diff --git a/dev-python/pygresql/files/pygresql-5.2-CFLAGS.patch b/dev-python/pygresql/files/pygresql-5.2-CFLAGS.patch
new file mode 100644
index 00000000000..24b9da21d16
--- /dev/null
+++ b/dev-python/pygresql/files/pygresql-5.2-CFLAGS.patch
@@ -0,0 +1,11 @@
+--- a/setup.py
++++ b/setup.py
+@@ -95,7 +95,7 @@
+ library_dirs = [get_python_lib(), pg_config('libdir')]
+ define_macros = [('PYGRESQL_VERSION', version)]
+ undef_macros = []
+-extra_compile_args = ['-O2', '-funsigned-char', '-Wall', '-Wconversion']
++extra_compile_args = ['-funsigned-char', '-Wall']
+
+
+ class build_pg_ext(build_ext):
diff --git a/dev-python/pygresql/pygresql-5.2.ebuild b/dev-python/pygresql/pygresql-5.2.ebuild
new file mode 100644
index 00000000000..849038866a6
--- /dev/null
+++ b/dev-python/pygresql/pygresql-5.2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+POSTGRES_COMPAT=( 9.{5..6} {10..12} )
+PYTHON_COMPAT=( python3_{6..8} )
+
+inherit distutils-r1 postgres
+
+MY_P="PyGreSQL-${PV}"
+
+DESCRIPTION="A Python interface for the PostgreSQL database"
+HOMEPAGE="https://pygresql.org/"
+SRC_URI="mirror://pypi/P/PyGreSQL/${MY_P}.tar.gz"
+
+LICENSE="POSTGRESQL"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86"
+
+DEPEND="${POSTGRES_DEP}"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+PATCHES=(
+ "${FILESDIR}"/${PN}-5.2-CFLAGS.patch
+)
+
+python_install_all() {
+ local DOCS=( docs/*.rst docs/community/* docs/contents/tutorial.rst )
+
+ distutils-r1_python_install_all
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-01 3:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-01 3:45 [gentoo-commits] repo/gentoo:master commit in: dev-python/pygresql/files/, dev-python/pygresql/ Aaron W. Swenson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox