Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] pcsclite: switch to python 3
@ 2019-12-26 13:53 voidlinux-github
  2019-12-26 21:07 ` [PR PATCH] [Merged]: " voidlinux-github
  0 siblings, 1 reply; 2+ messages in thread
From: voidlinux-github @ 2019-12-26 13:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 315 bytes --]

There is a new pull request by sgn against master on the void-packages repository

https://github.com/sgn/void-packages pcsclite-python-3
https://github.com/void-linux/void-packages/pull/17795

pcsclite: switch to python 3


A patch file from https://github.com/void-linux/void-packages/pull/17795.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pcsclite-python-3-17795.patch --]
[-- Type: text/x-diff, Size: 1973 bytes --]

From 2166fcd226d514b101b80cdd576465de997f9d14 Mon Sep 17 00:00:00 2001
From: Doan Tran Cong Danh <congdanhqx@gmail.com>
Date: Thu, 26 Dec 2019 20:52:45 +0700
Subject: [PATCH] pcsclite: switch to python 3

---
 srcpkgs/pcsclite/patches/python3.patch | 22 ++++++++++++++++++++++
 srcpkgs/pcsclite/template              |  8 ++++----
 2 files changed, 26 insertions(+), 4 deletions(-)
 create mode 100644 srcpkgs/pcsclite/patches/python3.patch

diff --git a/srcpkgs/pcsclite/patches/python3.patch b/srcpkgs/pcsclite/patches/python3.patch
new file mode 100644
index 00000000000..1f1e914ac98
--- /dev/null
+++ b/srcpkgs/pcsclite/patches/python3.patch
@@ -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
+ 
diff --git a/srcpkgs/pcsclite/template b/srcpkgs/pcsclite/template
index e59bcc824d1..01c6b782130 100644
--- a/srcpkgs/pcsclite/template
+++ b/srcpkgs/pcsclite/template
@@ -1,13 +1,13 @@
 # Template file for 'pcsclite'
 pkgname=pcsclite
 version=1.8.25
-revision=1
+revision=2
 wrksrc="pcsc-lite-upstream-${version}"
 build_style=gnu-configure
 configure_args="--enable-libudev --disable-libsystemd"
-hostmakedepends="intltool pkg-config python"
-makedepends="eudev-libudev-devel libusb-devel python-devel"
-depends="python"
+hostmakedepends="intltool pkg-config python3"
+makedepends="eudev-libudev-devel libusb-devel python3-devel"
+depends="python3"
 short_desc="Middleware to access a smart card using SCard API (PC/SC)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="BSD-2-Clause"

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: pcsclite: switch to python 3
  2019-12-26 13:53 [PR PATCH] pcsclite: switch to python 3 voidlinux-github
@ 2019-12-26 21:07 ` voidlinux-github
  0 siblings, 0 replies; 2+ messages in thread
From: voidlinux-github @ 2019-12-26 21:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 162 bytes --]

There's a merged pull request on the void-packages repository

pcsclite: switch to python 3
https://github.com/void-linux/void-packages/pull/17795

Description:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-26 21:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-26 13:53 [PR PATCH] pcsclite: switch to python 3 voidlinux-github
2019-12-26 21:07 ` [PR PATCH] [Merged]: " voidlinux-github

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).