mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 07:33:48 +02:00
pcsclite: switch to python 3
This commit is contained in:
parent
fd9adfd49b
commit
483f5eddf8
2 changed files with 26 additions and 4 deletions
22
srcpkgs/pcsclite/patches/python3.patch
Normal file
22
srcpkgs/pcsclite/patches/python3.patch
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
--- src/spy/pcsc-spy.orig 2019-12-26 20:48:20.222069705 +0700
|
||||||
|
+++ src/spy/pcsc-spy 2019-12-26 20:48:41.407288561 +0700
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#! /usr/bin/python
|
||||||
|
+#!/usr/bin/python3
|
||||||
|
|
||||||
|
"""
|
||||||
|
# Display PC/SC functions arguments
|
||||||
|
@@ -22,12 +22,7 @@
|
||||||
|
import os
|
||||||
|
import signal
|
||||||
|
import time
|
||||||
|
-try:
|
||||||
|
- # for Python3
|
||||||
|
- from queue import Queue
|
||||||
|
-except ImportError:
|
||||||
|
- # for Python2
|
||||||
|
- from Queue import Queue
|
||||||
|
+from queue import Queue
|
||||||
|
from threading import Thread
|
||||||
|
from operator import attrgetter
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
# Template file for 'pcsclite'
|
# Template file for 'pcsclite'
|
||||||
pkgname=pcsclite
|
pkgname=pcsclite
|
||||||
version=1.8.25
|
version=1.8.25
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="pcsc-lite-upstream-${version}"
|
wrksrc="pcsc-lite-upstream-${version}"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--enable-libudev --disable-libsystemd"
|
configure_args="--enable-libudev --disable-libsystemd"
|
||||||
hostmakedepends="intltool pkg-config python"
|
hostmakedepends="intltool pkg-config python3"
|
||||||
makedepends="eudev-libudev-devel libusb-devel python-devel"
|
makedepends="eudev-libudev-devel libusb-devel python3-devel"
|
||||||
depends="python"
|
depends="python3"
|
||||||
short_desc="Middleware to access a smart card using SCard API (PC/SC)"
|
short_desc="Middleware to access a smart card using SCard API (PC/SC)"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="BSD-2-Clause"
|
license="BSD-2-Clause"
|
||||||
|
|
Loading…
Add table
Reference in a new issue