net-wireless/neard - 0.20 (gentoo)

Search

Install

Install this version:

emerge -a =net-wireless/neard-0.20

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-wireless/neard-0.20

Or alternatively:

emerge --autounmask-write -a =net-wireless/neard-0.20

Package Information

Description:
Near Field Communication (NFC) management daemon
Homepage:
https://github.com/linux-nfc/neard
License:
GPL-2

Ebuild Details

Version EAPI Keywords Slot
0.20 8 ~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools linux-info systemd

DESCRIPTION="Near Field Communication (NFC) management daemon"
HOMEPAGE="https://github.com/linux-nfc/neard"
SRC_URI="https://github.com/linux-nfc/neard/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
IUSE="test tools"

RESTRICT="!test? ( test )"

RDEPEND="
	>=dev-libs/glib-2.28:2
	dev-libs/libnl:3=
	>=sys-apps/dbus-1.2
"

DEPEND="${RDEPEND}"
BDEPEND="
	dev-build/autoconf-archive
	test? (
		dev-libs/glib:2[introspection]
		dev-libs/gobject-introspection
		dev-python/dbus-python
	)
"

PATCHES=(
	"${FILESDIR}"/${PN}-0.20-fix_parallel.patch
)

CONFIG_CHECK="~NFC"

src_prepare() {
	default
	eautoreconf
}

src_configure() {
	local myeconfargs=(
		--disable-optimization
		--disable-test	# Only installs test programs, #913709.
		--enable-ese
		--enable-nfctype1
		--enable-nfctype2
		--enable-nfctype3
		--enable-nfctype4
		--enable-nfctype5
		--enable-p2p
		--enable-pie
		--enable-systemd # Only installs unit
		--with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
		$(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.init" neard
	newconfd "${FILESDIR}/neard.confd" neard
}

USE Flags

Manage flags for this package: euse -i <flag> -p net-wireless/neard | euse -E <flag> -p net-wireless/neard | euse -D <flag> -p net-wireless/neard

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

	>=dev-libs/glib-2.28:2
	dev-libs/libnl:3=
	>=sys-apps/dbus-1.2

RDEPEND

	>=dev-libs/glib-2.28:2
	dev-libs/libnl:3=
	>=sys-apps/dbus-1.2

BDEPEND

	dev-build/autoconf-archive
	test? (
		dev-libs/glib:2[introspection]
		dev-libs/gobject-introspection
		dev-python/dbus-python
	)

Manifest for 0.20

Type File Size Source URLs
DIST neard-0.20.tar.gz 229425 bytes https://github.com/linux-nfc/neard/archive/refs/tags/v0.20.tar.gz