diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
commit | 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (patch) | |
tree | 758c221bad35c9288d0bd6df9c7dfc226728e52c /dev-python/pymssql | |
parent | 8d5dbd847cbc704a6a06405856e94b461011afe3 (diff) |
gentoo resync : 28.04.2021
Diffstat (limited to 'dev-python/pymssql')
-rw-r--r-- | dev-python/pymssql/Manifest | 5 | ||||
-rw-r--r-- | dev-python/pymssql/files/pymssql-2.2.1-clock_gettime.patch | 27 | ||||
-rw-r--r-- | dev-python/pymssql/metadata.xml | 5 | ||||
-rw-r--r-- | dev-python/pymssql/pymssql-2.2.1.ebuild | 38 |
4 files changed, 70 insertions, 5 deletions
diff --git a/dev-python/pymssql/Manifest b/dev-python/pymssql/Manifest index 408f2c7b4ed4..a7cee644b197 100644 --- a/dev-python/pymssql/Manifest +++ b/dev-python/pymssql/Manifest @@ -1,4 +1,7 @@ AUX pymssql-2.1.3-remove-setuptools_git.patch 243 BLAKE2B 51f598a199867a6278518a0d204a3bfffcba662e22377d0b927e404a420a32a771a56ab23c99b8fa819b216e95efd8efdb8f61955da1ed79e64c84cb6b6634d1 SHA512 e8a24dfd4e4c6320ef854592d890a8e34870884ac05e0e60a52bd4e05f5eb7fbac86311da98d1ba8be2a55233788e070f7dfc529570c1cefe25471abbd22fa20 +AUX pymssql-2.2.1-clock_gettime.patch 882 BLAKE2B 946af94874afe840ba4a44015321bc539695100bc9a73b5ffc0c5155c34adc8820eed0447261ce6bf8b404b16336b56b16d77c7281db1eae0f680808aabbe9b1 SHA512 27fed1a9b0b8f8fdad6a744da1c6c46637c9a1a755fb0cb6ec5b025314e5058365377828b9cebf19cb31f0dd59c4a4d500951a7ff32a1da4c08f1c85633f7043 DIST pymssql-2.1.5.tar.gz 167928 BLAKE2B c94fc29fa9d83627dbee05095a7c0d6e4e2d42ac34b0e6801bbc757d89728aee409c98519d6e8bfe8d5009f06f88bd23a3e62c050f2c964cb7139bdd3185a0b5 SHA512 7cc7336d4c2fcb7c3958fb3127801e3505fd93259d1aaef40a67941ef5aa519e285cdb04fd378c9712f29b0f8a25ce1747a4a8dc21ec57b004c9f0ceb8f5afab +DIST pymssql-2.2.1.tar.gz 170421 BLAKE2B 0bd57ffef97f6a557bf78056ed0f184c3b5de09fa031f80f1b7420486bb137ba1750c2ac63e89c0476a3b1808e08beb037b2d9c3fce89bce98a266626222b5c7 SHA512 d44fbe506d7daf3b5fc1dfa20b99814aa3ed025cf8e4e14097f53014bc21918e0969e15149fa93c39367a06567502be08bb673e30ebdf87d6fc2c30b01216b7c EBUILD pymssql-2.1.5.ebuild 837 BLAKE2B 56faa9add8ed0774bc3498ff797f3fedf82b64172eadd67db4dce99838f8c9ee82d4ccfbc524583fc34353a47de8a6fd160137b6d6dc329e2950d68eb2b5a9c0 SHA512 7a328313cbc1f703d89d0647a8d1b6091f419e22b7f47217f874e6d7dd48a223668b423d5b799d1ed6b2635f523a5b12287a87081d54ea496c15c6f4671d9f4d -MISC metadata.xml 362 BLAKE2B 34809feb3df73137c8fdd77f5fcc54520593c3d8f82316981c34971ff0df5774a32e1544fe4dc89acfbbacd7b360881a89f8e18000c91648be1fc471c5ae05f2 SHA512 6d33889c3389c738a35383c7924768ce3439bbd951015cc7799f2153585d4ae44065e91e8ec23194be680e20f1caf82e27b4d5650680334baba109f8a19128e8 +EBUILD pymssql-2.2.1.ebuild 856 BLAKE2B be986462234d21a5571858cd52bfc35d9c6122f1b795ff893fd4e782603383af0c67ed606af2171db8ca5bab805f129967049ffbffacc2900909e8b4ebf3c22f SHA512 00a769e4091a1127ed4283a366ca4a8fc8ff88c4724a479f1909b33095547bb85f18325225da0fab94722a10f02a1cfbdb6fe11cc631ed359286c0a33b0ab0e0 +MISC metadata.xml 287 BLAKE2B cafb123e3b26779c3a20717f1fbb6bf1b567c5bd7116ee3f78af658c27ad6fe7c2a2e4e1f8474ff2c8a798259ff1a906c29197a506a0eaed7521f3e102faa36c SHA512 0bf5ac83b22b5b8be4af595e89e7eac936f2e9a6f9a5a1c85248a52c52f8fd1a81bc291ac295e071f0ec4d1368fa20e3c834d7cfa960757c0812a3011ac18a4f diff --git a/dev-python/pymssql/files/pymssql-2.2.1-clock_gettime.patch b/dev-python/pymssql/files/pymssql-2.2.1-clock_gettime.patch new file mode 100644 index 000000000000..76d07e27db24 --- /dev/null +++ b/dev-python/pymssql/files/pymssql-2.2.1-clock_gettime.patch @@ -0,0 +1,27 @@ +From d130cacf5be53b4c15bb64787d82b1225b1485e7 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Sat, 17 Apr 2021 13:10:34 +0200 +Subject: [PATCH] Check for clock_gettime() only when linking statically + +The extension module does not use clock_gettime() directly, so I presume +it is only necessary when linking statically to FreeTDS. +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 3ac434e..0295d01 100644 +--- a/setup.py ++++ b/setup.py +@@ -95,7 +95,7 @@ if not WINDOWS: + print("setup.py: include_dirs =>", include_dirs) + print("setup.py: library_dirs =>", library_dirs) + +-if not WINDOWS: ++if LINK_FREETDS_STATICALLY and not WINDOWS: + # check for clock_gettime, link with librt for glibc<2.17 + from dev import ccompiler + compiler = ccompiler.new_compiler() +-- +2.31.1 + diff --git a/dev-python/pymssql/metadata.xml b/dev-python/pymssql/metadata.xml index 44a85e83ec01..1bad2e1413c4 100644 --- a/dev-python/pymssql/metadata.xml +++ b/dev-python/pymssql/metadata.xml @@ -1,10 +1,7 @@ <?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> + <!--maintainer-needed--> <upstream> <remote-id type="sourceforge">pymssql</remote-id> <remote-id type="pypi">pymssql</remote-id> diff --git a/dev-python/pymssql/pymssql-2.2.1.ebuild b/dev-python/pymssql/pymssql-2.2.1.ebuild new file mode 100644 index 000000000000..c272cd2b2d62 --- /dev/null +++ b/dev-python/pymssql/pymssql-2.2.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) +inherit distutils-r1 + +DESCRIPTION="Simple MSSQL python extension module" +HOMEPAGE="https://www.pymssql.org/ https://pypi.org/project/pymssql/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="test" + +# tests need a running instance of freetds +RESTRICT="test" + +RDEPEND=">=dev-db/freetds-0.63[mssql]" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + dev-python/setuptools_scm[${PYTHON_USEDEP}] + test? ( + dev-python/sqlalchemy[${PYTHON_USEDEP}] + )" + +PATCHES=( + "${FILESDIR}"/${P}-clock_gettime.patch +) + +distutils_enable_tests pytest + +src_configure() { + export LINK_FREETDS_STATICALLY=no +} |