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 D9E85139085 for ; Sat, 21 Jan 2017 21:14:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 346B0E0D41; Sat, 21 Jan 2017 21:14:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0B4EFE0D41 for ; Sat, 21 Jan 2017 21:14:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 279C5340F53 for ; Sat, 21 Jan 2017 21:14:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 812D12BD3 for ; Sat, 21 Jan 2017 21:14:33 +0000 (UTC) From: "Patrice Clement" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrice Clement" Message-ID: <1485033201.1f6996db52c4c09f7e77f30a1177ee066a2766ab.monsieurp@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-r1.ebuild X-VCS-Directories: dev-python/pycups/ X-VCS-Committer: monsieurp X-VCS-Committer-Name: Patrice Clement X-VCS-Revision: 1f6996db52c4c09f7e77f30a1177ee066a2766ab X-VCS-Branch: master Date: Sat, 21 Jan 2017 21:14:33 +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-Archives-Salt: c79e1433-e9ae-4c89-bc09-0ed8160b8608 X-Archives-Hash: e111ca48c7c800f090c1d5f880224868 commit: 1f6996db52c4c09f7e77f30a1177ee066a2766ab Author: Louis Sautier gmail com> AuthorDate: Thu Jan 19 00:05:31 2017 +0000 Commit: Patrice Clement gentoo org> CommitDate: Sat Jan 21 21:13:21 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f6996db dev-python/pycups: add Python 3.5 support, missing dep, EAPI=6. Package-Manager: Portage-2.3.3, Repoman-2.3.1 Closes: https://github.com/gentoo/gentoo/pull/3536 dev-python/pycups/pycups-1.9.73-r1.ebuild | 60 +++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/dev-python/pycups/pycups-1.9.73-r1.ebuild b/dev-python/pycups/pycups-1.9.73-r1.ebuild new file mode 100644 index 00000000..dbaa873 --- /dev/null +++ b/dev-python/pycups/pycups-1.9.73-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5} 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 ~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 +}