diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-10-20 10:22:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-10-20 10:22:14 +0100 |
commit | 46eedbedafdb0040c37884982d4c775ce277fb7b (patch) | |
tree | db33a91259730be84999e13a8d8168c799f50ac0 /dev-libs/libnfc/libnfc-1.8.0-r1.ebuild | |
parent | e23a08d0c97a0cc415aaa165da840b056f93c997 (diff) |
gentoo resync : 20.10.2021
Diffstat (limited to 'dev-libs/libnfc/libnfc-1.8.0-r1.ebuild')
-rw-r--r-- | dev-libs/libnfc/libnfc-1.8.0-r1.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-libs/libnfc/libnfc-1.8.0-r1.ebuild b/dev-libs/libnfc/libnfc-1.8.0-r1.ebuild new file mode 100644 index 000000000000..fba699e4b06a --- /dev/null +++ b/dev-libs/libnfc/libnfc-1.8.0-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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 usb" + +RDEPEND=" + pcsc-lite? ( sys-apps/pcsc-lite ) + readline? ( sys-libs/readline:= ) + usb? ( virtual/libusb:0 )" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +src_configure() { + local drivers="arygon,pn532_uart,pn532_spi,pn532_i2c,acr122s" + drivers+=$(usev pcsc-lite ",acr122_pcsc,pcsc") + drivers+=$(usev usb ",pn53x_usb,acr122_usb") + econf \ + --with-drivers="${drivers}" \ + $(use_enable doc) \ + $(use_with readline) +} + +src_compile() { + default + + if use doc; then + doxygen || die + HTML_DOCS=( "${S}"/doc/html/. ) + fi +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die + + insinto /etc/nfc + newins libnfc.conf.sample libnfc.conf +} |