Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] pcsclite: switch to python 3
Date: Thu, 26 Dec 2019 14:53:55 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-17795@inbox.vuxu.org> (raw)

[-- 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"

             reply	other threads:[~2019-12-26 13:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-26 13:53 voidlinux-github [this message]
2019-12-26 21:07 ` [PR PATCH] [Merged]: " voidlinux-github

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-17795@inbox.vuxu.org \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).