diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-09-06 10:25:44 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-09-06 10:25:44 +0100 |
commit | 64b277f858d171900cba8a53e675ef8c3ff893fc (patch) | |
tree | 7a19533ece87b58d4bbcc04d91701aaf888b0d99 /net-wireless/neard/neard-0.18.ebuild | |
parent | ededf7351b15c0df4d166af8fc7928bd1a0b2c8e (diff) |
gentoo auto-resync : 06:09:2023 - 10:25:44
Diffstat (limited to 'net-wireless/neard/neard-0.18.ebuild')
-rw-r--r-- | net-wireless/neard/neard-0.18.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/net-wireless/neard/neard-0.18.ebuild b/net-wireless/neard/neard-0.18.ebuild new file mode 100644 index 000000000000..8939f04318ea --- /dev/null +++ b/net-wireless/neard/neard-0.18.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +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 ~x86" +IUSE="test tools systemd" + +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/glib-2.28 + dev-libs/libnl:3= + >=sys-apps/dbus-1.2 + systemd? ( sys-apps/systemd:0 ) +" + +DEPEND="${RDEPEND}" +BDEPEND="sys-devel/autoconf-archive" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + --disable-optimization + --enable-ese + --enable-nfctype1 + --enable-nfctype2 + --enable-nfctype3 + --enable-nfctype4 + --enable-nfctype5 + --enable-p2p + --enable-pie + $(use_enable systemd) + $(use_enable test) + $(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 + + insinto "/etc/dbus-1/system.d/" + doins "se/org.neard.se.conf" + + newinitd "${FILESDIR}/neard.rc" neard + newconfd "${FILESDIR}/neard.confd" neard +} |