diff options
author | Marek Szuba <marecki@gentoo.org> | 2022-06-15 10:28:46 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2022-06-15 10:53:07 +0100 |
commit | 4b8d933eca47b522ab4d30f9474a153143b9d615 (patch) | |
tree | 51c96634ac286dc1c519a16cee98b63758e8f42c /sys-auth | |
parent | dev-python/hatchling: Stabilize 1.3.1 amd64, #852017 (diff) | |
download | gentoo-4b8d933eca47b522ab4d30f9474a153143b9d615.tar.gz gentoo-4b8d933eca47b522ab4d30f9474a153143b9d615.tar.bz2 gentoo-4b8d933eca47b522ab4d30f9474a153143b9d615.zip |
sys-auth/ykpers: general overhaul
Update to EAPI 8, drop IUSE=static-libs, call udev_reload, cosmetics.
Closes: https://bugs.gentoo.org/851906
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'sys-auth')
-rw-r--r-- | sys-auth/ykpers/ykpers-1.20.0-r1.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/sys-auth/ykpers/ykpers-1.20.0-r1.ebuild b/sys-auth/ykpers/ykpers-1.20.0-r1.ebuild new file mode 100644 index 000000000000..839ecf070e7e --- /dev/null +++ b/sys-auth/ykpers/ykpers-1.20.0-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools udev + +MY_PN="yubikey-personalization" + +DESCRIPTION="Library and tool for personalization of Yubico's YubiKey" +HOMEPAGE="https://github.com/Yubico/yubikey-personalization" +SRC_URI="https://github.com/Yubico/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" + +RDEPEND="dev-libs/json-c:= + >=sys-auth/libyubikey-1.6 + virtual/libusb:1" +DEPEND="${RDEPEND}" +BDEPEND="app-text/asciidoc + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-1.20.0-fix-gcc10-fno-common.patch + "${FILESDIR}"/${PN}-1.20.0-json-boolean.patch +) + +DOCS=( doc/. AUTHORS NEWS README ) + +S="${WORKDIR}/${MY_PN}-${PV}" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + --libdir=/usr/$(get_libdir) + --localstatedir=/var + ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + + udev_dorules 69-yubikey.rules + + find "${D}" -name '*.la' -delete || die +} + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload +} |