public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libnfc/
Date: Tue, 12 Oct 2021 08:50:46 +0000 (UTC)	[thread overview]
Message-ID: <1634028628.aeef62f2fe59cd05c3e55b4bd5d46cf313ffdf82.soap@gentoo> (raw)

commit:     aeef62f2fe59cd05c3e55b4bd5d46cf313ffdf82
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 12 08:50:28 2021 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Tue Oct 12 08:50:28 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aeef62f2

dev-libs/libnfc: Fix pcsc-lite support

* EAPI 8
* missing pkg-config dep
* simpler USE=doc handling
* remove USE=static-libs

Closes: https://bugs.gentoo.org/816891
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 ...{libnfc-1.8.0.ebuild => libnfc-1.8.0-r1.ebuild} | 33 +++++++++++++---------
 1 file changed, 20 insertions(+), 13 deletions(-)

diff --git a/dev-libs/libnfc/libnfc-1.8.0.ebuild b/dev-libs/libnfc/libnfc-1.8.0-r1.ebuild
similarity index 55%
rename from dev-libs/libnfc/libnfc-1.8.0.ebuild
rename to dev-libs/libnfc/libnfc-1.8.0-r1.ebuild
index ae5228fdac7..fba699e4b06 100644
--- a/dev-libs/libnfc/libnfc-1.8.0.ebuild
+++ b/dev-libs/libnfc/libnfc-1.8.0-r1.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 DESCRIPTION="Near Field Communications (NFC) library"
 HOMEPAGE="http://www.libnfc.org/"
@@ -10,33 +10,40 @@ 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"
+IUSE="doc pcsc-lite readline usb"
 
-RDEPEND="pcsc-lite? ( sys-apps/pcsc-lite )
-	readline? ( sys-libs/readline:0 )
+RDEPEND="
+	pcsc-lite? ( sys-apps/pcsc-lite )
+	readline? ( sys-libs/readline:= )
 	usb? ( virtual/libusb:0 )"
 DEPEND="${RDEPEND}"
-BDEPEND="doc? ( app-doc/doxygen )"
+BDEPEND="
+	virtual/pkgconfig
+	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"
+	drivers+=$(usev pcsc-lite ",acr122_pcsc,pcsc")
+	drivers+=$(usev usb ",pn53x_usb,acr122_usb")
 	econf \
 		--with-drivers="${drivers}" \
 		$(use_enable doc) \
-		$(use_with readline) \
-		$(use_enable static-libs static)
+		$(use_with readline)
 }
 
 src_compile() {
 	default
-	use doc && doxygen
+
+	if use doc; then
+		doxygen || die
+		HTML_DOCS=( "${S}"/doc/html/. )
+	fi
 }
 
 src_install() {
 	default
-	use static-libs || find "${ED}" -name 'lib*.la' -delete
-	use doc && HTML_DOCS=( "${S}"/doc/html/* )
-	einstalldocs
+	find "${ED}" -name '*.la' -delete || die
+
+	insinto /etc/nfc
+	newins libnfc.conf.sample libnfc.conf
 }


             reply	other threads:[~2021-10-12  8:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-12  8:50 David Seifert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-05-11 13:39 [gentoo-commits] repo/gentoo:master commit in: dev-libs/libnfc/ Sam James
2023-02-26 19:03 Arthur Zamarin
2023-02-26 17:12 Arthur Zamarin
2023-01-14 23:25 Sam James
2021-10-12  8:50 David Seifert
2020-07-12 20:16 Mike Auty
2020-07-01 19:24 Rick Farina
2020-05-21 16:27 Rick Farina
2019-11-14  0:47 Aaron Bauman
2016-12-21 19:52 Mike Auty
2016-01-14 19:55 Mike Auty

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1634028628.aeef62f2fe59cd05c3e55b4bd5d46cf313ffdf82.soap@gentoo \
    --to=soap@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox