blob: adf2c5c6b0542da23c7d07b60f1f8bfbfe447e03 (
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
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit distutils-r1
DESCRIPTION="Provides r/w access to a wireless network card's capabilities"
HOMEPAGE="https://pypi.org/project/python-wifi/"
SRC_URI="mirror://sourceforge/${PN}.berlios/${P}.tar.bz2"
SLOT="0"
KEYWORDS="alpha amd64 ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86"
LICENSE="LGPL-2.1 examples? ( GPL-2 )"
IUSE="examples"
RDEPEND=""
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
DOCS=( docs/AUTHORS docs/BUGS docs/DEVEL.txt docs/TODO )
src_install() {
distutils-r1_src_install
use examples && dodoc -r examples
rm -rv "${ED}"/usr/{docs,examples,INSTALL,README} || die
if use examples; then
mv -v "${ED}"/usr{,/share}/man || die
else
rm -rv "${ED}"/usr/man || die
fi
}
|