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 D05F81382C5 for ; Tue, 16 Feb 2021 15:58:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 07ABBE0908; Tue, 16 Feb 2021 15:58:09 +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 E36D6E0908 for ; Tue, 16 Feb 2021 15:58:08 +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 EEDFD34124B for ; Tue, 16 Feb 2021 15:58:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A568F4C2 for ; Tue, 16 Feb 2021 15:58:06 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1613491079.15fb0620a4fcf1bbd603bd5d3228c470ece2a36f.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-slip/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/python-slip/python-slip-0.6.5-r1.ebuild X-VCS-Directories: dev-python/python-slip/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 15fb0620a4fcf1bbd603bd5d3228c470ece2a36f X-VCS-Branch: master Date: Tue, 16 Feb 2021 15:58:06 +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: 0306f0c3-54ba-4bff-a3ea-b523c3c12452 X-Archives-Hash: 9a84de0cab9e61f1236d977b12807eeb commit: 15fb0620a4fcf1bbd603bd5d3228c470ece2a36f Author: Joonas Niilola gentoo org> AuthorDate: Tue Feb 16 15:56:10 2021 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Tue Feb 16 15:57:59 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15fb0620 dev-python/python-slip: EAPI-7 bump - drop eutils.eclass. Bug: https://bugs.gentoo.org/770955 Signed-off-by: Joonas Niilola gentoo.org> dev-python/python-slip/python-slip-0.6.5-r1.ebuild | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/dev-python/python-slip/python-slip-0.6.5-r1.ebuild b/dev-python/python-slip/python-slip-0.6.5-r1.ebuild new file mode 100644 index 00000000000..d1ccb54c86e --- /dev/null +++ b/dev-python/python-slip/python-slip-0.6.5-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=no +PYTHON_REQ_USE="xml" +PYTHON_COMPAT=( python3_{7,8,9} ) + +inherit distutils-r1 + +DESCRIPTION="Miscellaneous convenience, extension and workaround code for Python" +HOMEPAGE="https://github.com/nphilipp/python-slip" +SRC_URI="https://github.com/nphilipp/${PN}/releases/download/${P}/${P}.tar.bz2" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" +IUSE="dbus selinux" + +RDEPEND=" + dbus? ( + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/pygobject:3[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + sys-auth/polkit + ) +" + +python_prepare_all() { + use selinux || eapply -p1 "${FILESDIR}"/${PN}-0.6.5-no-selinux.patch + + # Disable gtk interface since it's gtk-2. + sed \ + -e 's|sys.version_info.major == 2|False|' \ + -e "s:@VERSION@:${PV}:" setup.py.in > setup.py || die + + # Enable / disable dbus support by user choice. + if ! use dbus; then + sed -e '/name="slip.dbus"/ s/\(.*\)/if 0:\n \1/' \ + -i setup.py || die + fi + + distutils-r1_python_prepare_all +}