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 594A7138334 for ; Sun, 2 Jun 2019 14:05:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 76927E07A9; Sun, 2 Jun 2019 14:05:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 090CAE07A9 for ; Sun, 2 Jun 2019 14:05:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 BF847344FED for ; Sun, 2 Jun 2019 14:05:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 426C557B for ; Sun, 2 Jun 2019 14:05:03 +0000 (UTC) From: "Alexey Shvetsov" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexey Shvetsov" Message-ID: <1559484223.78e94b3488ba2604057f1a8acea8819f984bf8ea.alexxy@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pycups/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pycups/pycups-1.9.73-r2.ebuild X-VCS-Directories: dev-python/pycups/ X-VCS-Committer: alexxy X-VCS-Committer-Name: Alexey Shvetsov X-VCS-Revision: 78e94b3488ba2604057f1a8acea8819f984bf8ea X-VCS-Branch: master Date: Sun, 2 Jun 2019 14:05:03 +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: fa82ad3b-bec1-43d8-885a-959b9843b4f0 X-Archives-Hash: 7da0aea094c3569e5ae38597e7414694 commit: 78e94b3488ba2604057f1a8acea8819f984bf8ea Author: Alexey Shvetsov gentoo org> AuthorDate: Sun Jun 2 14:03:43 2019 +0000 Commit: Alexey Shvetsov gentoo org> CommitDate: Sun Jun 2 14:03:43 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78e94b34 dev-python/pycups: works with python 3.7 Package-Manager: Portage-2.3.67, Repoman-2.3.13 Signed-off-by: Alexey Shvetsov gentoo.org> dev-python/pycups/pycups-1.9.73-r2.ebuild | 59 +++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/dev-python/pycups/pycups-1.9.73-r2.ebuild b/dev-python/pycups/pycups-1.9.73-r2.ebuild new file mode 100644 index 00000000000..2476fd0819b --- /dev/null +++ b/dev-python/pycups/pycups-1.9.73-r2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} pypy ) +inherit distutils-r1 + +DESCRIPTION="Python bindings for the CUPS API" +HOMEPAGE="http://cyberelk.net/tim/data/pycups/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86" +SLOT="0" +IUSE="doc examples" + +RDEPEND=" + net-print/cups +" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + ${RDEPEND} +" + +# epydoc kinda sucks and supports python2 only (it's dead too), +# and since we're dealing with a binary module we need exact version +# match. therefore, docbuilding *requires* any python2 being enabled. + +DEPEND="${RDEPEND} + doc? ( dev-python/epydoc[$(python_gen_usedep 'python2*')] ) +" + +REQUIRED_USE="doc? ( || ( $(python_gen_useflags 'python2*') ) )" + +pkg_setup() { + use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 ) +} + +python_compile() { + python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" + distutils-r1_python_compile +} + +python_compile_all() { + if use doc; then + # we can't use Makefile since it relies on hardcoded paths + epydoc -o html --html cups || die "doc build failed" + HTML_DOCS=( html/. ) + fi +} + +python_install_all() { + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi + distutils-r1_python_install_all +}