summaryrefslogtreecommitdiff
blob: 15febcdd7cf690981a99daf97425c662d6e69f26 (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
# Copyright 2019-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=( python3_{6,7,8} )

inherit python-single-r1

DESCRIPTION="Mobile UI for kismet"
HOMEPAGE="https://github.com/elkentaro/KismetMobileDashboard"
if [ "${PV}" = "9999" ]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/elkentaro/KismetMobileDashboard.git"
else
	KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
	SRC_URI="https://github.com/elkentaro/KismetMobileDashboard/archive/V1.5-beta.1.tar.gz -> ${P}.tar.gz"
	S="${WORKDIR}/KismetMobileDashboard-1.5-beta.1"
fi

LICENSE="GPL-2"
SLOT="0"
IUSE=""

DEPEND="net-wireless/kismet"
RDEPEND="${DEPEND}"
BDEPEND=""

src_compile() {
	KIS_SRC_DIR="/usr/share/kismet" emake
}

src_install() {
	python_setup
	DESTDIR="${ED}" KIS_SRC_DIR="/usr/share/kismet" emake install
}