summaryrefslogtreecommitdiff
blob: 9af17e744c8d2c916df0c05057406af242861946 (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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

KDE_DOC_DIRS="docs/%lingua"
KDE_HANDBOOK="optional"
KDE_LINGUAS="es fr lt"
PYTHON_COMPAT=( python2_7 )
inherit python-r1 kde4-base multilib

MY_P="${P/-/_}"

DESCRIPTION="KCM module to control the Uncomplicated Firewall"
HOMEPAGE="http://kde-apps.org/content/show.php?content=137789"
SRC_URI="http://craigd.wikispaces.com/file/view/${MY_P}.tar.bz2"

LICENSE="GPL-3"
KEYWORDS="~amd64 ~x86"
SLOT="4"
IUSE="debug"

REQUIRED_USE="${PYTHON_REQUIRED_USE}"

DEPEND="
	${PYTHON_DEPS}
	>=net-firewall/ufw-0.31
	sys-auth/polkit-kde-agent
"
RDEPEND="${DEPEND}
	$(add_kdeapps_dep kcmshell)
"

S=${WORKDIR}/${MY_P}

PATCHES=( "${FILESDIR}/${P}-linguas.patch" )

src_install() {
	kde4-base_src_install
	python_replicate_script "${D}"/usr/$(get_libdir)/kde4/libexec/kcm_ufw_helper.py
}