summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/cyberjack')
-rw-r--r--dev-libs/cyberjack/Manifest1
-rw-r--r--dev-libs/cyberjack/cyberjack-3.99.5_p17.ebuild93
2 files changed, 94 insertions, 0 deletions
diff --git a/dev-libs/cyberjack/Manifest b/dev-libs/cyberjack/Manifest
index bd3b2297ca4b..ff22438ed6e1 100644
--- a/dev-libs/cyberjack/Manifest
+++ b/dev-libs/cyberjack/Manifest
@@ -1 +1,2 @@
DIST pcsc-cyberjack-3.99.5final.SP16.tar.bz2 1787299 BLAKE2B 79345a5c51be99eedb9154737e5d8014c2f6034031ca8acfb419d9fe4ecfda1739a84f1b56e275ee0aabf500b87a789255980ef05f4441f10250c6adceebe86a SHA512 ece83377b935b6f4de065c10b340aea91d69c54ff38f73e058f5e31fd75afe1e2d3fe9be2e1423a5e3a0da17d9afa5db7684e85805af34e751d07188f894b2d7
+DIST pcsc-cyberjack-3.99.5final.SP17.tar.bz2 1734172 BLAKE2B 2175956188f3b1fe46dd3263ade26e460b7b048df26474060ed29229fcea4890a32b92693d626c3d03bf1e863b1aa7cfb8bac872cc7f5b1bb66f6482b7788c2b SHA512 97558e2bf952dfd0cdb7a9354fccd080dd657b4697f134e20674d1f1bef2ce9dd5d304c68eb8b1d536209c14d66cfef8860df8596746d2b40382401dddb1daa0
diff --git a/dev-libs/cyberjack/cyberjack-3.99.5_p17.ebuild b/dev-libs/cyberjack/cyberjack-3.99.5_p17.ebuild
new file mode 100644
index 000000000000..877531a468b2
--- /dev/null
+++ b/dev-libs/cyberjack/cyberjack-3.99.5_p17.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PN="pcsc-${PN}"
+MY_PV="${PV/_p/final.SP}"
+MY_P="${MY_PN}-${MY_PV}"
+
+inherit autotools toolchain-funcs udev
+
+DESCRIPTION="REINER SCT cyberJack USB chipcard reader user space driver"
+HOMEPAGE="https://www.reiner-sct.de/"
+SRC_URI="http://kernelport.com/reiner-sct/SP$(ver_cut 5)/${MY_P}.tar.bz2"
+S="${WORKDIR}/${MY_P/_/-}"
+
+LICENSE="GPL-2+ LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="threads tools +udev xml"
+
+RDEPEND="
+ sys-apps/pcsc-lite
+ virtual/libusb:1=
+ udev? ( virtual/udev )
+ xml? ( dev-libs/libxml2:2= )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}"/${PN}-3.99.5_p14-gcc10.patch )
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --disable-debug
+ --disable-error-on-warning
+ --disable-hal
+ --disable-mac-universal
+ --disable-mac-arches-i386
+ --disable-mac-arches-x86_64
+ --disable-visibility
+ --enable-nonserial
+ --enable-pcsc
+ --enable-release
+ --enable-warnings
+ --sysconfdir="${EPREFIX}"/etc/cyberjack
+ $(use_enable threads)
+ $(use_enable udev)
+ $(use_enable xml xml2)
+ --with-usbdropdir="$($(tc-getPKG_CONFIG) libpcsclite --variable=usbdropdir)"
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+ default
+
+ if use tools; then
+ # cjBingo can't be compiled, as it's defines stuff, which got dropped
+ emake -C tools/cjflash
+ emake -C tools/cjgeldkarte
+ fi
+}
+
+src_install() {
+ default
+
+ use tools && dobin tools/cjflash/cjflash tools/cjgeldkarte/cjgeldkarte
+ use udev && udev_newrules "${FILESDIR}"/libifd-cyberjack6.udev-r1 99-cyberjack.rules
+
+ dodoc debian/changelog doc/{LIESMICH,README}.{pdf,txt,xml}
+
+ docinto html
+ dodoc doc/{LIESMICH,README}.html
+
+ docinto source
+ dodoc doc/*.c*
+
+ find "${ED}" -name '*.la' -type f -delete || die
+}
+
+pkg_postinst() {
+ udev_reload
+}
+
+pkg_postrm() {
+ udev_reload
+}