From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 853EA59CB1 for ; Mon, 11 Apr 2016 19:25:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EFEF321C001; Mon, 11 Apr 2016 19:25:08 +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 93ED721C001 for ; Mon, 11 Apr 2016 19:25:08 +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 28347340739 for ; Mon, 11 Apr 2016 19:25:07 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4D06DB2 for ; Mon, 11 Apr 2016 19:25:03 +0000 (UTC) From: "Alon Bar-Lev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alon Bar-Lev" Message-ID: <1460402689.124d1f934e625bd1d6f03fc906afec6b173859bd.alonbl@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/pcsc-lite/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/pcsc-lite/pcsc-lite-1.8.16-r1.ebuild X-VCS-Directories: sys-apps/pcsc-lite/ X-VCS-Committer: alonbl X-VCS-Committer-Name: Alon Bar-Lev X-VCS-Revision: 124d1f934e625bd1d6f03fc906afec6b173859bd X-VCS-Branch: master Date: Mon, 11 Apr 2016 19:25: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-Archives-Salt: cc660f9e-3588-4021-a5b4-0c5fd3d0b88c X-Archives-Hash: ed1a5e09c81db601d8c646de31ecbb98 commit: 124d1f934e625bd1d6f03fc906afec6b173859bd Author: Alon Bar-Lev gentoo org> AuthorDate: Mon Apr 11 19:24:49 2016 +0000 Commit: Alon Bar-Lev gentoo org> CommitDate: Mon Apr 11 19:24:49 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=124d1f93 sys-apps/pcsc-lite: make python optional Bug: 578470 Package-Manager: portage-2.2.26 sys-apps/pcsc-lite/pcsc-lite-1.8.16-r1.ebuild | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/sys-apps/pcsc-lite/pcsc-lite-1.8.16-r1.ebuild b/sys-apps/pcsc-lite/pcsc-lite-1.8.16-r1.ebuild index 6392265..13ebad8 100644 --- a/sys-apps/pcsc-lite/pcsc-lite-1.8.16-r1.ebuild +++ b/sys-apps/pcsc-lite/pcsc-lite-1.8.16-r1.ebuild @@ -24,15 +24,17 @@ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 # This is called libusb so that it doesn't fool people in thinking that # it is _required_ for USB support. Otherwise they'll disable udev and # that's going to be worse. -IUSE="libusb policykit selinux +udev" +IUSE="python libusb policykit selinux +udev" -REQUIRED_USE="^^ ( udev libusb )" +REQUIRED_USE="^^ ( udev libusb ) \ + python? ( ${PYTHON_REQUIRED_USE} )" # No dependencies need the MULTILIB_DEPS because the libraries are actually # standalone, the deps are only needed for the daemon itself. CDEPEND="libusb? ( virtual/libusb:1 ) udev? ( virtual/udev ) - policykit? ( >=sys-auth/polkit-0.111 )" + policykit? ( >=sys-auth/polkit-0.111 ) + python? ( ${PYTHON_DEPS} )" DEPEND="${CDEPEND} virtual/pkgconfig" RDEPEND="${CDEPEND} @@ -49,10 +51,10 @@ PATCHES=( DOCS=( AUTHORS DRIVERS HELP README SECURITY ChangeLog ) pkg_setup() { - python-single-r1_pkg_setup - #enewgroup openct # make sure it exists - #enewgroup pcscd - #enewuser pcscd -1 -1 /run/pcscd pcscd,openct + use python && python-single-r1_pkg_setup + enewgroup openct # make sure it exists + enewgroup pcscd + enewuser pcscd -1 -1 /run/pcscd pcscd,openct } multilib_src_configure() { @@ -76,7 +78,13 @@ multilib_src_install_all() { doins "${FILESDIR}"/99-pcscd-hotplug.rules fi - python_fix_shebang "${ED}/usr/bin" + for f in "${ED}/usr/bin/pcsc-spy"; do + if use python; then + python_fix_shebang "${f}" + else + rm "${f}" + fi + done } pkg_postinst() {