From d4c7a24aa8dba24b821e00dff79738f3e5c70ce7 Mon Sep 17 00:00:00 2001 From: Rick Farina Date: Thu, 21 May 2020 12:27:09 -0400 Subject: [PATCH] dev-libs/libnfc: bump Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Rick Farina --- dev-libs/libnfc/Manifest | 1 + dev-libs/libnfc/libnfc-1.7.2.ebuild | 43 +++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 dev-libs/libnfc/libnfc-1.7.2.ebuild diff --git a/dev-libs/libnfc/Manifest b/dev-libs/libnfc/Manifest index d9ffddf15182..f145b7da3246 100644 --- a/dev-libs/libnfc/Manifest +++ b/dev-libs/libnfc/Manifest @@ -1 +1,2 @@ DIST libnfc-1.7.1.tar.bz2 484309 BLAKE2B 7a86394e8902421410d54de2b2710cee7ea34a6f950f6d76ec59d24d6e46798cd10a9725f405c729df44da84b810b5853a5eef0ec5f2a10ccbcf7585d33f34ef SHA512 6a03d197c450c0ab8f2d16ae8c1f80e206fa909ece84a32dbb962acd0f7ef693a419608cdaa4c2207a1d2593599e44479520d7413eace7fca19d3230442e506c +DIST libnfc-1.7.2.tar.bz2 534821 BLAKE2B 015634a696aeda77abdb53ab658504d0183b8d8d5899f368b122660d6527cf4d3ec988147082620d87d007ea33320acfde6cc013c9257b9c62fa4fb99528eeeb SHA512 c93ab10667998b6c6bf948082253715762ae91699d3e035f1149cebf6d3881cbc2ab570976c70cd12f886f76a18a82ac048fad0664512d1cd553c0fd1fdf7674 diff --git a/dev-libs/libnfc/libnfc-1.7.2.ebuild b/dev-libs/libnfc/libnfc-1.7.2.ebuild new file mode 100644 index 000000000000..cb49692161fb --- /dev/null +++ b/dev-libs/libnfc/libnfc-1.7.2.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="Near Field Communications (NFC) library" +HOMEPAGE="http://www.libnfc.org/" +SRC_URI="https://github.com/nfc-tools/${PN}/releases/download/${P}/${P}.tar.bz2" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="doc pcsc-lite readline static-libs usb" + +RDEPEND="pcsc-lite? ( sys-apps/pcsc-lite ) + readline? ( sys-libs/readline:0 ) + usb? ( virtual/libusb:0 )" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen )" + +src_configure() { + local drivers="arygon,pn532_uart,pn532_spi,pn532_i2c,acr122s" + use pcsc-lite && drivers+=",acr122_pcsc" + use usb && drivers+=",pn53x_usb,acr122_usb" + econf \ + --with-drivers="${drivers}" \ + $(use_enable doc) \ + $(use_with readline) \ + $(use_enable static-libs static) +} + +src_compile() { + default + use doc && doxygen +} + +src_install() { + default + use static-libs || find "${ED}" -name 'lib*.la' -delete + use doc && dohtml "${S}"/doc/html/* +} -- 2.26.2