app-crypt/asekey: update EAPI 7 -> 8

Closes: https://bugs.gentoo.org/714222
Closes: https://bugs.gentoo.org/745291
Closes: https://bugs.gentoo.org/854237
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/32791
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Alfred Wingate
2023-09-15 08:45:19 +03:00
committed by Sam James
parent 07cc7d0ebb
commit cb6d3c717a
3 changed files with 71 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit udev
DESCRIPTION="ASEKey USB SIM Card Reader"
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
SRC_URI="https://dev.gentoo.org/~sam/distfiles/app-crypt/asekey/${P}.tar.bz2"
LICENSE="BSD LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~riscv ~x86"
RDEPEND="
sys-apps/pcsc-lite[udev]
virtual/libusb:0
"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}/asekey-3.7-bundle.patch"
"${FILESDIR}/asekey-3.7-dont-call-toolchain-cc-directly.patch"
"${FILESDIR}/asekey-3.7-musl-ushort.patch"
)
src_prepare() {
default
sed -i -e 's/GROUP="pcscd"/ENV{PCSCD}="1"/' "92_pcscd_${PN}.rules" || die
}
src_configure() {
econf --with-udev-rules-dir="$(get_udevdir)/rules.d"
}
pkg_postinst() {
udev_reload
}
pkg_postrm() {
udev_reload
}

View File

@@ -0,0 +1,13 @@
https://bugs.gentoo.org/745291
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@
DRIVER_DIR=${DESTDIR}/${USBDROPDIR}/ifd-ASEKey.bundle
UDEV_DIR=${DESTDIR}/${UDEVDIR}
-CC=${BUILD}-gcc
+CC?=gcc
SOURCES=usb.c atr.c DriverIO.c CommandTypes.c ReaderCommands.c T1Protocol.c MemoryCards.c InitCardParams.c ifdhandler.c

View File

@@ -0,0 +1,14 @@
https://bugs.gentoo.org/714222
Hack instead of fix because upstream is dead and the typedef is used extensively.
--- a/Ase.h
+++ b/Ase.h
@@ -24,6 +24,7 @@
#include "T1Protocol.h"
#include "MemoryCards.h"
+typedef unsigned short ushort;
//#define ASE_DEBUG