blob: 3c940d85a54779245781ea846d8aa0c19e39fbce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools linux-info
DESCRIPTION="Ncurses based monitor for IEEE 802.11 wireless LAN cards"
HOMEPAGE="https://github.com/uoaerg/wavemon/"
SRC_URI="https://github.com/uoaerg/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86"
IUSE="caps"
RDEPEND="
dev-libs/libnl:3[utils]
sys-libs/ncurses:0=
caps? ( sys-libs/libcap )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
DOCS=( README.md )
pkg_pretend() {
local CONFIG_CHECK="~CFG80211"
check_extra_config
}
src_prepare() {
default
# Do not install docs to /usr/share
sed -i -e '/^install:/s/install-docs//' Makefile.in || die \
'sed on Makefile.in failed'
# automagic on libcap, discovered in bug #448406
use caps || export ac_cv_lib_cap_cap_get_flag=false
eautoreconf
}
src_configure () {
CFLAGS="${CFLAGS}" econf
}
src_compile() {
unset CFLAGS
default
}
src_install() {
default
# Install man files manually(bug #397807)
doman wavemon.1
doman wavemonrc.5
}
|