diff options
author | Alon Bar-Lev <alonbl@gentoo.org> | 2016-04-11 22:24:49 +0300 |
---|---|---|
committer | Alon Bar-Lev <alonbl@gentoo.org> | 2016-04-11 22:24:49 +0300 |
commit | 124d1f934e625bd1d6f03fc906afec6b173859bd (patch) | |
tree | 29789451059ccb2d919e5332a56c9c89f9c3b744 /sys-apps | |
parent | sys-apps/pcsc-lite: eap bump (diff) | |
download | gentoo-124d1f934e625bd1d6f03fc906afec6b173859bd.tar.gz gentoo-124d1f934e625bd1d6f03fc906afec6b173859bd.tar.bz2 gentoo-124d1f934e625bd1d6f03fc906afec6b173859bd.zip |
sys-apps/pcsc-lite: make python optional
Bug: 578470
Package-Manager: portage-2.2.26
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/pcsc-lite/pcsc-lite-1.8.16-r1.ebuild | 24 |
1 files 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 6392265670e2..13ebad84c0b9 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() { |