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 BE8891382C5 for ; Fri, 23 Mar 2018 22:49:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B6691E0970; Fri, 23 Mar 2018 22:49:02 +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 8F6BEE0970 for ; Fri, 23 Mar 2018 22:49:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 4DF13335C0A for ; Fri, 23 Mar 2018 22:49:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6ED1B239 for ; Fri, 23 Mar 2018 22:48:59 +0000 (UTC) From: "Tim Harder" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Tim Harder" Message-ID: <1521845321.3b522ecb7c9890373b69c816de567e0296842c76.radhermit@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pycairo/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pycairo/pycairo-1.16.3-r1.ebuild X-VCS-Directories: dev-python/pycairo/ X-VCS-Committer: radhermit X-VCS-Committer-Name: Tim Harder X-VCS-Revision: 3b522ecb7c9890373b69c816de567e0296842c76 X-VCS-Branch: master Date: Fri, 23 Mar 2018 22:48:59 +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: 0af5ccc1-14f8-4bf0-b26d-8a5b6303edd9 X-Archives-Hash: 81da4bf078fc243cb2198d7edb47faa9 commit: 3b522ecb7c9890373b69c816de567e0296842c76 Author: Tim Harder gentoo org> AuthorDate: Fri Mar 23 22:46:33 2018 +0000 Commit: Tim Harder gentoo org> CommitDate: Fri Mar 23 22:48:41 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b522ecb dev-python/pycairo: drop xcb use flag and related deps Closes: https://bugs.gentoo.org/649926 dev-python/pycairo/pycairo-1.16.3-r1.ebuild | 53 +++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/dev-python/pycairo/pycairo-1.16.3-r1.ebuild b/dev-python/pycairo/pycairo-1.16.3-r1.ebuild new file mode 100644 index 00000000000..01ca0c90590 --- /dev/null +++ b/dev-python/pycairo/pycairo-1.16.3-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Python bindings for the cairo library" +HOMEPAGE="https://www.cairographics.org/pycairo/ https://github.com/pygobject/pycairo" +SRC_URI="https://github.com/pygobject/${PN}/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="|| ( LGPL-2.1 MPL-1.1 )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="doc examples test" + +RDEPEND=" + >=x11-libs/cairo-1.13.1[svg] +" +DEPEND="${RDEPEND} + doc? ( dev-python/sphinx ) + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/hypothesis[${PYTHON_USEDEP}] + ) +" + +python_prepare_all() { + # Fix pkgconfig path + sed -i -e "/libdir =/s:\"lib\":\"$(get_libdir)\":" setup.py || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs +} + +python_test() { + esetup.py test +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/. ) + + if use examples; then + dodoc -r examples + fi + + distutils-r1_python_install_all +}