summaryrefslogtreecommitdiff
blob: 7892ef73c04366060ad52a21c4b3f1fb36bd761a (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
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=5

inherit eutils

DESCRIPTION="Crackle cracks BLE Encryption (AKA Bluetooth Smart)"
HOMEPAGE="http://lacklustre.net/projects/crackle/"

if [[ ${PV} == "9999" ]] ; then
	EGIT_REPO_URI="https://github.com/mikeryan/crackle.git"
	inherit git-r3
else
	SRC_URI="http://lacklustre.net/projects/crackle/${P}.tgz"
	KEYWORDS="~amd64 ~x86"
fi

LICENSE="BSD"
SLOT="0"
IUSE="test"
RESTRICT="!test? ( test )"

RDEPEND="net-libs/libpcap"
DEPEND="${RDEPEND}
		test? ( dev-lang/perl )"

src_install() {
	DESTDIR="${ED}" PREFIX=/usr emake install
}