Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-plasma/plasma-firewall/
Date: Fri, 14 May 2021 20:42:02
Message-Id: 1621024731.3308d972180585d638303893d666528415e1660f.asturm@gentoo
1 commit: 3308d972180585d638303893d666528415e1660f
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 14 20:32:26 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri May 14 20:38:51 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=3308d972
7
8 kde-plasma/plasma-firewall: 5.21.90 version bump
9
10 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
11
12 .../plasma-firewall/plasma-firewall-5.21.90.ebuild | 64 ++++++++++++++++++++++
13 1 file changed, 64 insertions(+)
14
15 diff --git a/kde-plasma/plasma-firewall/plasma-firewall-5.21.90.ebuild b/kde-plasma/plasma-firewall/plasma-firewall-5.21.90.ebuild
16 new file mode 100644
17 index 0000000000..5cbc21bbb7
18 --- /dev/null
19 +++ b/kde-plasma/plasma-firewall/plasma-firewall-5.21.90.ebuild
20 @@ -0,0 +1,64 @@
21 +# Copyright 1999-2021 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=7
25 +
26 +PYTHON_COMPAT=( python3_{7,8,9} )
27 +KFMIN=5.82.0
28 +QTMIN=5.15.2
29 +inherit ecm kde.org python-single-r1
30 +
31 +DESCRIPTION="Plasma frontend for Firewalld or UFW"
32 +HOMEPAGE="https://invent.kde.org/network/plasma-firewall"
33 +
34 +LICENSE="GPL-2+"
35 +SLOT="5"
36 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
37 +IUSE="firewalld +ufw"
38 +
39 +REQUIRED_USE="${PYTHON_REQUIRED_USE} || ( firewalld ufw )"
40 +
41 +DEPEND="
42 + >=dev-qt/qtdbus-${QTMIN}:5
43 + >=dev-qt/qtdeclarative-${QTMIN}:5
44 + >=dev-qt/qtgui-${QTMIN}:5
45 + >=dev-qt/qtnetwork-${QTMIN}:5
46 + >=dev-qt/qtx11extras-${QTMIN}:5
47 + >=dev-qt/qtxml-${QTMIN}:5
48 + >=kde-frameworks/kauth-${KFMIN}:5
49 + >=kde-frameworks/kcmutils-${KFMIN}:5
50 + >=kde-frameworks/kconfig-${KFMIN}:5
51 + >=kde-frameworks/kcoreaddons-${KFMIN}:5
52 + >=kde-frameworks/kdeclarative-${KFMIN}:5
53 + >=kde-frameworks/ki18n-${KFMIN}:5
54 + >=kde-frameworks/plasma-${KFMIN}:5
55 +"
56 +RDEPEND="${DEPEND}
57 + ${PYTHON_DEPS}
58 + firewalld? ( net-firewall/firewalld )
59 + ufw? ( net-firewall/ufw )
60 +"
61 +
62 +src_prepare() {
63 + ecm_src_prepare
64 + # this kind of cmake magic doesn't work for us at all.
65 + sed -e "1 s:^.*$:\#\!/usr/bin/env python3.8:" \
66 + -i kcm/backends/ufw/helper/kcm_ufw_helper.py.cmake || die
67 +}
68 +
69 +src_configure() {
70 + local mycmakeargs=(
71 + -DBUILD_FIREWALLD_BACKEND=$(usex firewalld)
72 + -DBUILD_UFW_BACKEND=$(usex ufw)
73 + )
74 + ecm_src_configure
75 +}
76 +
77 +pkg_postinst () {
78 + ecm_pkg_postinst
79 +
80 + if ! has_version sys-apps/systemd; then
81 + ewarn "${PN} is not functional without sys-apps/systemd at this point."
82 + ewarn "See also: https://bugs.gentoo.org/778527"
83 + fi
84 +}