dev-libs/libnfc: bump
authorRick Farina <zerochaos@gentoo.org>
Thu, 21 May 2020 16:27:09 +0000 (12:27 -0400)
committerRick Farina <zerochaos@gentoo.org>
Thu, 21 May 2020 16:27:32 +0000 (12:27 -0400)
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Rick Farina <zerochaos@gentoo.org>
dev-libs/libnfc/Manifest
dev-libs/libnfc/libnfc-1.7.2.ebuild [new file with mode: 0644]

index d9ffddf151823e161d26090df749273a8f3193fb..f145b7da3246855016a3d17e459e18092f02614e 100644 (file)
@@ -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 (file)
index 0000000..cb49692
--- /dev/null
@@ -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/*
+}