summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2021-03-05 22:57:17 +0100
committerConrad Kostecki <conikost@gentoo.org>2021-03-05 22:58:09 +0100
commitd887aaad9c39170ce1ada3971f2d84d34faf1a09 (patch)
treea3d23113ccee32340195a51699a8fa68b48b90fb /net-wireless
parentdev-python/ruamel-yaml: Bump to 0.16.13 (diff)
downloadgentoo-d887aaad9c39170ce1ada3971f2d84d34faf1a09.tar.gz
gentoo-d887aaad9c39170ce1ada3971f2d84d34faf1a09.tar.bz2
gentoo-d887aaad9c39170ce1ada3971f2d84d34faf1a09.zip
net-wireless/neard: bump to version 0.16
Closes: https://bugs.gentoo.org/600756 Package-Manager: Portage-3.0.16, Repoman-3.0.2 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/neard/Manifest1
-rw-r--r--net-wireless/neard/metadata.xml8
-rw-r--r--net-wireless/neard/neard-0.16.ebuild49
3 files changed, 54 insertions, 4 deletions
diff --git a/net-wireless/neard/Manifest b/net-wireless/neard/Manifest
index d976f8b6fed0..c5cb7ff0504c 100644
--- a/net-wireless/neard/Manifest
+++ b/net-wireless/neard/Manifest
@@ -1 +1,2 @@
DIST neard-0.15.tar.xz 368196 BLAKE2B e23d144229ad7550927b45af715050d158ceb1ee163ef49f1d0269d92bfbd5afcd63c1b698b7f55b471caf2cc1a351a78fef4dd6d7748e26422ae43dbd8b3899 SHA512 daaa001a305f0d200bb03bf614c938256fa5c07d480bf820d5e83da80d930e060b5bb6a09234f1c3f7ecbd3cb0af378a1de675dd4dcd99b728677430e0cd111d
+DIST neard-0.16.tar.xz 379436 BLAKE2B 8432200eafa2d7517d768ef160e2d2f8db698119ea047d505d7212b1c2d46087223b71749a4c855bf7e7ff43f73d4aa6d67fab272909dbb3236b312ee3b911be SHA512 d0fd5dcfd19db64e65e4149c76979bc7a438240aa6840b35059fde41a8a84a2424274577de964a925e76cd013d21796f69f5361012b6ac79c546d0abdcfed2a6
diff --git a/net-wireless/neard/metadata.xml b/net-wireless/neard/metadata.xml
index 896eadb2b4df..2d25d4a14ba4 100644
--- a/net-wireless/neard/metadata.xml
+++ b/net-wireless/neard/metadata.xml
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<!-- maintainer-needed -->
-<use>
- <flag name="tools">build and install extra helper utilities</flag>
-</use>
+ <!-- maintainer-needed -->
+ <use>
+ <flag name="tools">Build and install 'nfctool' for further NFC debugging</flag>
+ </use>
</pkgmetadata>
diff --git a/net-wireless/neard/neard-0.16.ebuild b/net-wireless/neard/neard-0.16.ebuild
new file mode 100644
index 000000000000..7ec240979082
--- /dev/null
+++ b/net-wireless/neard/neard-0.16.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic
+
+DESCRIPTION="Near Field Communication (NFC) management daemon"
+HOMEPAGE="https://01.org/linux-nfc/"
+SRC_URI="https://www.kernel.org/pub/linux/network/nfc/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="tools systemd"
+
+RDEPEND="
+ dev-libs/libnl:3=
+ sys-apps/dbus
+ sys-libs/glibc
+ systemd? ( sys-apps/systemd:0 )
+"
+
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ # Workaround for >= GCC-10
+ append-cflags -fcommon
+
+ local myeconfargs=(
+ --disable-optimization
+ --enable-ese
+ --enable-pie
+ $(use_enable systemd)
+ $(use_enable tools)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ # Patch for this has been sent upstream. Do it manually
+ # to avoid having to rebuild autotools. #580876
+ mv "${ED}"/usr/include/version.h "${ED}"/usr/include/near/ || die
+
+ newinitd "${FILESDIR}"/neard.rc neard
+ newconfd "${FILESDIR}"/neard.confd neard
+}