btscanner: fix deps, minor qa

This commit is contained in:
Rick Farina (Zero_Chaos) 2023-02-22 12:42:15 -05:00
parent 0d9ca916f4
commit a50b9e0776
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC

View file

@ -1,9 +1,9 @@
# Copyright 1999-2018 Gentoo Foundation
# Copyright 1999-2023 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
inherit eutils autotools
inherit autotools
DESCRIPTION="A utility for bluetooth scanning and discovery"
HOMEPAGE="https://www.pentest.co.uk/downloads.html"
@ -16,17 +16,17 @@ KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=" || ( net-wireless/bluez:=
( >=net-wireless/bluez-utils-2.15
>=net-wireless/bluez-libs-2.15 ) )
>=dev-libs/libxml2-2.6:=
( >=net-wireless/bluez-utils-2.15
>=net-wireless/bluez-libs-2.15 ) )
>=dev-libs/libxml2-2.6
>sys-libs/ncurses-5.4:=[tinfo]"
RDEPEND="${DEPEND}"
src_prepare() {
sed -i -e 's/-Wimplicit-function-dec //g' configure.in
sed -i 's#-std=c99#-std=gnu99#g' configure.in
epatch "${FILESDIR}/fix-buffer-overflow.patch"
epatch "${FILESDIR}/fix-typo-config.patch"
eapply "${FILESDIR}/fix-buffer-overflow.patch"
eapply "${FILESDIR}/fix-typo-config.patch"
eapply_user
mv configure.in configure.ac
eautoreconf