From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BEF94138334 for ; Mon, 15 Jul 2019 21:31:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E489CE0825; Mon, 15 Jul 2019 21:31:31 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B7CBDE0825 for ; Mon, 15 Jul 2019 21:31:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 14B69347C48 for ; Mon, 15 Jul 2019 21:31:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6ED0055B for ; Mon, 15 Jul 2019 21:31:28 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1563226220.f04ac4dfe14c5cab939614ca9d07897c824d06e8.williamh@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/psycopg/files/, dev-python/psycopg/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/psycopg/Manifest dev-python/psycopg/files/psycopg-2.8.3-avoid-mxdatetime.patch dev-python/psycopg/psycopg-2.8.3.ebuild X-VCS-Directories: dev-python/psycopg/files/ dev-python/psycopg/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: f04ac4dfe14c5cab939614ca9d07897c824d06e8 X-VCS-Branch: master Date: Mon, 15 Jul 2019 21:31:28 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0e436049-8e02-48e0-a5e4-4fb137383c24 X-Archives-Hash: 50e99bf9690b8176f2027951d68779ae commit: f04ac4dfe14c5cab939614ca9d07897c824d06e8 Author: William Hubbs sony com> AuthorDate: Mon Jul 15 21:18:45 2019 +0000 Commit: William Hubbs gentoo org> CommitDate: Mon Jul 15 21:30:20 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f04ac4df dev-python/psycopg: 2.8.3 bump Closes: https://bugs.gentoo.org/683412 Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-2.3.66, Repoman-2.3.12 Signed-off-by: William Hubbs gentoo.org> dev-python/psycopg/Manifest | 1 + .../files/psycopg-2.8.3-avoid-mxdatetime.patch | 24 ++++++++ dev-python/psycopg/psycopg-2.8.3.ebuild | 70 ++++++++++++++++++++++ 3 files changed, 95 insertions(+) diff --git a/dev-python/psycopg/Manifest b/dev-python/psycopg/Manifest index 1a34ee61b5e..e145a42249f 100644 --- a/dev-python/psycopg/Manifest +++ b/dev-python/psycopg/Manifest @@ -1,3 +1,4 @@ DIST psycopg2-2.7.4.tar.gz 425331 BLAKE2B 9d256ea340e4bace53981596d9d42863ddc9c8c079579b0621d8043af34daade05b9cec5465c6b3990f537a4350d9cf60a43062a0aa34db1f39b336296b32d3f SHA512 e78db528a4d3b897e0d8d38755179082dacddfb2d10bda963fc3836548991eaa0d4c1b8f81b329b15f4e685046c39e6f2a352b6c47b1da42af3a262094233034 DIST psycopg2-2.7.5.tar.gz 426358 BLAKE2B 301bd4c6ecbc29b1b02e477ffd3576c4bbb00142998a85f5a79678a96b521098a8d0bf75779ab7ecb082c6d374cbf41cc845dcba0e1413b98621f67f9b139135 SHA512 5bf85b6760871f904b6b570ea454f99b72cf97acf9cce10b63dc7b6b0b18913b50ad4f24c469d101c54de6ad6100f1cac3c58225076b5e584a677f5ab4170a93 DIST psycopg2-2.7.7.tar.gz 427474 BLAKE2B bc721b721693bc5f560a4829e84715d15e8c14523ada00109c7d7ba916c91928082fff286bd3c2ff5987c0436443128d1408ac9de073ad538b1e356fc73aaf8f SHA512 032344957c00bf659ca5e46f54f827a6d79809e370d661cd349e2ce935873359bcc4f440b74c6f14658bf1cd9598b6d884abae507fd33db9e07b01fc87967fb0 +DIST psycopg2-2.8.3.tar.gz 377333 BLAKE2B a4f22fb4dfc5492147bee198c587c5c5e43e197e5abb60cc7d5d7a006d91ffd22e35fbfeba35b8d36322f3802073fc105cb8270d436a3ad4d52b1c3c41ba39b1 SHA512 74268f6d05922c968d46ad62a49b4af54dc30463daa67cc0f32d5930c366596f9a1b2f368f2b38c8a9d45bfdcffb13be469a5cbf3911c62d163bea5c7a3ad928 diff --git a/dev-python/psycopg/files/psycopg-2.8.3-avoid-mxdatetime.patch b/dev-python/psycopg/files/psycopg-2.8.3-avoid-mxdatetime.patch new file mode 100644 index 00000000000..3475bf31795 --- /dev/null +++ b/dev-python/psycopg/files/psycopg-2.8.3-avoid-mxdatetime.patch @@ -0,0 +1,24 @@ +diff --git a/setup.py b/setup.py +index c1f319a..c44fc69 100644 +--- a/setup.py ++++ b/setup.py +@@ -525,19 +525,6 @@ parser.read('setup.cfg') + + # check for mx package + have_mxdatetime = False +-mxincludedir = '' +-if parser.has_option('build_ext', 'mx_include_dir'): +- mxincludedir = parser.get('build_ext', 'mx_include_dir') +-if not mxincludedir: +- mxincludedir = os.path.join(get_python_inc(plat_specific=1), "mx") +-if mxincludedir.strip() and os.path.exists(mxincludedir): +- # Build the support for mx: we will check at runtime if it can be imported +- include_dirs.append(mxincludedir) +- define_macros.append(('HAVE_MXDATETIME', '1')) +- sources.append('adapter_mxdatetime.c') +- depends.extend(['adapter_mxdatetime.h', 'typecast_mxdatetime.c']) +- have_mxdatetime = True +- version_flags.append('mx') + + # generate a nice version string to avoid confusion when users report bugs + version_flags.append('pq3') # no more a choice diff --git a/dev-python/psycopg/psycopg-2.8.3.ebuild b/dev-python/psycopg/psycopg-2.8.3.ebuild new file mode 100644 index 00000000000..685d96de02e --- /dev/null +++ b/dev-python/psycopg/psycopg-2.8.3.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) + +inherit distutils-r1 flag-o-matic + +MY_PN="${PN}2" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="PostgreSQL database adapter for Python" +HOMEPAGE="http://initd.org/psycopg/ https://pypi.org/project/psycopg2/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="LGPL-3+" +SLOT="2" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris" +IUSE="debug doc examples" + +RDEPEND=">=dev-db/postgresql-8.1:*" +DEPEND="${RDEPEND} + doc? ( + >=dev-python/pygments-2.2[${PYTHON_USEDEP}] + >=dev-python/sphinx-1.6[${PYTHON_USEDEP}] + )" + +RESTRICT="test" + +# Avoid using mxdatetime: https://bugs.gentoo.org/452028 +PATCHES=( + "${FILESDIR}"/psycopg-2.8.3-avoid-mxdatetime.patch +) + +S="${WORKDIR}/${MY_P}" + +python_compile() { + local CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS} + + ! python_is_python3 && append-flags -fno-strict-aliasing + + distutils-r1_python_compile +} + +python_prepare_all() { + if use debug; then + sed -i 's/^\(define=\)/\1PSYCOPG_DEBUG,/' setup.cfg || die + fi + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C doc/src -j1 html text +} + +python_install_all() { + if use doc; then + dodoc -r doc/src/_build/html + dodoc doc/src/_build/text/* + fi + + if use examples ; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi + + distutils-r1_python_install_all +}