diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-07-19 22:05:27 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-07-19 22:05:27 +0100 |
commit | 121ed4eec41fbf03e1998d09eede1bf449da63b9 (patch) | |
tree | ce9341d77d1507f67d4a3a1472da9011b5baa0a8 /dev-python/psycopg | |
parent | dd762ff83c330186ee2ede002e08b2f780cddd51 (diff) |
gentoo resync : 19.07.2019
Diffstat (limited to 'dev-python/psycopg')
-rw-r--r-- | dev-python/psycopg/Manifest | 3 | ||||
-rw-r--r-- | dev-python/psycopg/files/psycopg-2.8.3-avoid-mxdatetime.patch | 24 | ||||
-rw-r--r-- | dev-python/psycopg/psycopg-2.8.3.ebuild | 70 |
3 files changed, 97 insertions, 0 deletions
diff --git a/dev-python/psycopg/Manifest b/dev-python/psycopg/Manifest index e352aa90b990..d6c9f9bf4c81 100644 --- a/dev-python/psycopg/Manifest +++ b/dev-python/psycopg/Manifest @@ -1,8 +1,11 @@ AUX psycopg-2.7.3-avoid-mxdatetime.patch 1832 BLAKE2B dff21302f85dc05be27147d1a53ac525bca24cd9c2282edb92168ba38e73c38bad9f5a8b24910a690105bb4f98888e174f8d7c2a285e6e42efb36a45499ed02e SHA512 1c582abe153d73bd71cdfefff4293f2c497a5818fe2ea7e0deffe71d0acb89ccde8e20aaa33acf3d47900743c548eecbf01db24b01abe35b5ed60ca20bf4a658 +AUX psycopg-2.8.3-avoid-mxdatetime.patch 954 BLAKE2B 073eca8e49dd4d7fd2ec920dfe52e255d3fbb0e9975cd0378574d7c6f6f097c4b0bae0f4eba74e939b15c19ccab1dbe84d28f434830d38db6b59e18246c3f2c2 SHA512 9e0ac41a70002bdac03628ac15b84edd3e67e589f8ca145242018aab03fc42b8befc1c0330f0111d01b239dc00b6ffc29965ba3c18ce0965cbe9e7b31d1fef4d 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 EBUILD psycopg-2.7.4.ebuild 1555 BLAKE2B 84dc8e350573ca5a2dd6d8a19e2d5cfe12de395a8c7a9f7da4aeb675d6cb9dae4898c0f8ffbadde71ec13835fd795df122b5f41434d2a3d8014c11bdc4f6d0c2 SHA512 a148a9135cb0c52498850266bceda6e2c17fa4200be31b8116e7e1bf76108fc92cb771e14b04c66e845eb306d8d7f81e98aab6696550cd5694b552c397ed8f04 EBUILD psycopg-2.7.5.ebuild 1566 BLAKE2B 3e506ec0eea0272920049c3afad528b65f7ef3107ed0e28163afe3ed619a48b5a5a2ac637fdccde26992f2bb020d98f4a3f27c5dd8a0c7506c92957ec9a5c5c0 SHA512 18382ad0ef2488d73d93173a71bfe20614e478490c814dbec077e9be40a8e9eeb17775331cafad33e37008db47c5ad1a27c4ec7cb92d6d8eb262f5035e837839 EBUILD psycopg-2.7.7.ebuild 1557 BLAKE2B 0c98bf10fcd08c5a7ec7f4413827a68d12e9e3e0f66ff94bd0a06482779ac3c5d045a904de62435731ef933138f03e5eaa553e487d1601d872f171770792b8d4 SHA512 857d953640a880ea792b38a7b6bebba38d34bf024494c301a1354bb98d49c6337323eedf91a138e2e69b2bbdc9770b309434f971ec8c68f0be8fd9a365a4b239 +EBUILD psycopg-2.8.3.ebuild 1567 BLAKE2B 73ec01602ed4301a165f436328672f37d33a856e77eb517ba3f13b499127560fd7cf1eaa2ec2dc6462849957856a9ec000f2499064cc5e4f51bf02928e5a26da SHA512 3bb47e98eb4b2716cb29f61c6aa5513b1b69afb7eaf50dd3ffd0b2c9fb2cb297eb5e66b6812aa4351ee582182ce873b77d8f8a88c4507ff012cbef55eddcc305 MISC metadata.xml 321 BLAKE2B aff48bec04e34b92668aa18214d86ddbedef2376eeced4815118d35eebfb8e6af87234a9470828f465626f7d9ed56fe0fcb8f078c23945371248136533651ad3 SHA512 358b751b3a65f64ab5468bcf4022315f7069a2fb60709c2bb12ac02577866a3ff24ab2dd69577052070cf010a51428cb3ec385ca7cfe48640f4dd25ae478a966 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 000000000000..3475bf31795e --- /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 000000000000..685d96de02ed --- /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 +} |