summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-05-24 17:10:36 +0000
committerMike Frysinger <vapier@gentoo.org>2013-05-24 17:10:36 +0000
commit6b6fba22693ce53e8dc6bbb9694fa73bef17092f (patch)
treecbc5075341405d030b9e0b74b239995e88189b1c
parentversion bump (diff)
downloadgentoo-2-6b6fba22693ce53e8dc6bbb9694fa73bef17092f.tar.gz
gentoo-2-6b6fba22693ce53e8dc6bbb9694fa73bef17092f.tar.bz2
gentoo-2-6b6fba22693ce53e8dc6bbb9694fa73bef17092f.zip
Add USE flags to control all the optional deps.
(Portage version: 2.2.0_alpha170/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)
-rw-r--r--dev-libs/libnfc/ChangeLog9
-rw-r--r--dev-libs/libnfc/libnfc-1.5.1-r1.ebuild52
-rw-r--r--dev-libs/libnfc/metadata.xml3
3 files changed, 62 insertions, 2 deletions
diff --git a/dev-libs/libnfc/ChangeLog b/dev-libs/libnfc/ChangeLog
index cfdb116603a1..5cbed653cabb 100644
--- a/dev-libs/libnfc/ChangeLog
+++ b/dev-libs/libnfc/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-libs/libnfc
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libnfc/ChangeLog,v 1.10 2013/03/26 23:58:46 ikelos Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libnfc/ChangeLog,v 1.11 2013/05/24 17:10:36 vapier Exp $
+
+*libnfc-1.5.1-r1 (24 May 2013)
+
+ 24 May 2013; Mike Frysinger <vapier@gentoo.org> +libnfc-1.5.1-r1.ebuild,
+ metadata.xml:
+ Add USE flags to control all the optional deps.
26 Mar 2013; Mike Auty <ikelos@gentoo.org> libnfc-1.5.1.ebuild,
+files/libnfc-1.5.1-glibc-2.17.patch:
@@ -52,4 +58,3 @@
16 Aug 2009; Mike Auty <ikelos@gentoo.org> +libnfc-1.2.1.ebuild,
+metadata.xml:
Initial commit of a library for manipulating PN53x NFC chips.
-
diff --git a/dev-libs/libnfc/libnfc-1.5.1-r1.ebuild b/dev-libs/libnfc/libnfc-1.5.1-r1.ebuild
new file mode 100644
index 000000000000..2fa51c76e3ee
--- /dev/null
+++ b/dev-libs/libnfc/libnfc-1.5.1-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libnfc/libnfc-1.5.1-r1.ebuild,v 1.1 2013/05/24 17:10:36 vapier Exp $
+
+EAPI="4"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Near Field Communications (NFC) library"
+HOMEPAGE="http://www.libnfc.org/"
+SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
+
+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 )
+ usb? ( virtual/libusb:0 )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-1.5.1-glibc-2.17.patch"
+}
+
+src_configure() {
+ # Upstream doesn't use the right macro, so we need to force this.
+ # https://code.google.com/p/libnfc/issues/detail?id=249
+ export ac_cv_path_PKG_CONFIG=$(tc-getPKG_CONFIG)
+
+ local drivers="arygon,pn532_uart"
+ use pcsc-lite && drivers+=",acr122"
+ use usb && drivers+=",pn53x_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/*
+}
diff --git a/dev-libs/libnfc/metadata.xml b/dev-libs/libnfc/metadata.xml
index 8ad524a17a4f..77f62c528f0c 100644
--- a/dev-libs/libnfc/metadata.xml
+++ b/dev-libs/libnfc/metadata.xml
@@ -5,6 +5,9 @@
<email>ikelos@gentoo.org</email>
<name>Mike Auty</name>
</maintainer>
+ <use>
+ <flag name='pcsc-lite'>Enable NFC drivers that require pcsc-lite</flag>
+ </use>
<upstream>
<remote-id type="google-code">libnfc</remote-id>
</upstream>