diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/setproctitle | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/setproctitle')
-rw-r--r-- | dev-python/setproctitle/Manifest | 5 | ||||
-rw-r--r-- | dev-python/setproctitle/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/setproctitle/setproctitle-1.1.10.ebuild | 44 | ||||
-rw-r--r-- | dev-python/setproctitle/setproctitle-1.1.8.ebuild | 57 |
4 files changed, 118 insertions, 0 deletions
diff --git a/dev-python/setproctitle/Manifest b/dev-python/setproctitle/Manifest new file mode 100644 index 000000000000..928a10511c54 --- /dev/null +++ b/dev-python/setproctitle/Manifest @@ -0,0 +1,5 @@ +DIST setproctitle-1.1.10.tar.gz 24042 BLAKE2B acd4ef33ab2a200b5d102fe5ceb78df03deeee47eb5a3c7b50f0a44e095953e5a4e2230278b6b4a5010472e4a5a18b81accbff0461e3a642be478b880d98114e SHA512 c976c5b86f59bc6d0f840f495b8256813169d3d7b9edae70207a24d62e1240bfec954fdc4f67b429ae124e3dc74efd7193404785643a52b2d57b55028bb3c533 +DIST setproctitle-1.1.8.tar.gz 23208 BLAKE2B b77fdabe04b274e0dba2555b195267f57f1e52b82c523b1a690b5583eecc8ded90a35452f1c6ac15b5b082acc1c76dba973089bd9c11b4244a397f7fb1263168 SHA512 9d0ab8e65afd7e1ac019ea47995498dae1f82d8aebb333dfc4c953e745441cb9a8db942ad8417522d1f9a805bc50ad680f3a37cb4cbbd4214d261d4fed600b20 +EBUILD setproctitle-1.1.10.ebuild 1248 BLAKE2B 05d2e8154a59e1e5d8757454042b29a9b6563a2b0fd469b95e20356a0abe9d14218878034f0d099a54b810f8750f40ab52df78333432e0141f8910370ee87b9d SHA512 81b19bf3d55aceee49085dc08a3cd1b47a236fed4f48d9e2fa332418247f2c0a3f6f7f58c87b93a534b1d0ccc8f933f5ed599a887e1c3cf058a55e67ac388af5 +EBUILD setproctitle-1.1.8.ebuild 1513 BLAKE2B 3eda37f7b17beeabdd545d7bde984659204c38acbeb22a97ade453f0c10775ed5a2b40cdf37e85f91982bab53e5b578f62186cb8fb50a941c5bd50c0732d6cb9 SHA512 1d50b356d04b76f1b3f500ef5172492204239976cb8a53bcf08d6bfe0d0125c72341a47ff5deaf0b561c083330f3b0e331cedf53bf9e30db5f5b6824d6a5ecca +MISC metadata.xml 380 BLAKE2B 136b22ffc942b2b6a6bcbd45ed3cebb105bf91a16014fa1fbc181a3a9055d132e03df3ffa63df79682f1e7369ee264f87ff32e8602a6478d170f4b20a230e9fe SHA512 eaca32091baa4a9fcd8ffbac6d250c135c0237552a7229aafc3cbb8bdf43450c114f26676964f80f73c2146b0b47934d77bdfdaf8411c069958bd898f69e8004 diff --git a/dev-python/setproctitle/metadata.xml b/dev-python/setproctitle/metadata.xml new file mode 100644 index 000000000000..70895dc7b522 --- /dev/null +++ b/dev-python/setproctitle/metadata.xml @@ -0,0 +1,12 @@ +<?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> + <upstream> + <remote-id type="pypi">setproctitle</remote-id> + <remote-id type="github">dvarrazzo/py-setproctitle</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/setproctitle/setproctitle-1.1.10.ebuild b/dev-python/setproctitle/setproctitle-1.1.10.ebuild new file mode 100644 index 000000000000..bcb13c2bef57 --- /dev/null +++ b/dev-python/setproctitle/setproctitle-1.1.10.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# pypy doesn't get started in test run. Still required by www-servers/gunicorn +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) + +inherit distutils-r1 toolchain-funcs + +DESCRIPTION="Allow customization of the process title" +HOMEPAGE="https://github.com/dvarrazzo/py-setproctitle" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="test" + +RDEPEND="" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/nose[${PYTHON_USEDEP}] )" + +# Required for re-write of test suite +DISTUTILS_IN_SOURCE_BUILD=1 + +python_compile_all() { + # Make a nice html file + rst2html.py README.rst > README.html + # The README.rst will be duplicated in src_install + rm README.rst || die +} + +python_test() { + # The suite via the Makefile appears to not cater to pypy + [[ ${EPYTHON} =~ pypy ]] && return + + # prepare embedded executable + emake \ + CC="$(tc-getCC)" \ + PYINC="$(python_get_CFLAGS)" \ + PYLIB="$(python_get_LIBS)" \ + check +} diff --git a/dev-python/setproctitle/setproctitle-1.1.8.ebuild b/dev-python/setproctitle/setproctitle-1.1.8.ebuild new file mode 100644 index 000000000000..ba32a44b79aa --- /dev/null +++ b/dev-python/setproctitle/setproctitle-1.1.8.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# pypy doesn't get started in test run. Still required by www-servers/gunicorn +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) + +inherit distutils-r1 toolchain-funcs + +DESCRIPTION="Allow customization of the process title" +HOMEPAGE="https://github.com/dvarrazzo/py-setproctitle" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="test" + +RDEPEND="" +DEPEND="test? ( dev-python/nose[${PYTHON_USEDEP}] )" + +DOCS=( HISTORY.rst README.rst ) + +python_prepare_all() { + sed -i -e "/pyrun/s:%s'.*):'):" tests/*.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + cp -r -l tests "${BUILD_DIR}"/ || die + + if [[ ${EPYTHON} == python3.* ]]; then + # Notes: + # -W is not supported by python3.1 + # -n causes Python to write into hardlinked files + 2to3 --no-diffs -w "${BUILD_DIR}"/tests/*.py || die + fi + + cd "${BUILD_DIR}" || die + + if [[ ${EPYTHON} =~ pypy ]]; then + # The suite via the Makefile appears to not cater to pypy + return + else + CPPFLAGS="${CPPFLAGS} $(python_get_CFLAGS)" + LDLIBS="$(python_get_LIBS)" + fi + + # prepare embedded executable + emake tests/pyrun CC="$(tc-getCC)" \ + CPPFLAGS="${CPPFLAGS}" \ + LDLIBS="${LDLIBS}" + + nosetests --verbose || die "Tests fail with ${EPYTHON}" +} |