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: Thu, 03 Feb 2022 20:10:22
Message-Id: 1643918611.c0b672436eacaa9a3542db07f60572557ba62e18.asturm@gentoo
1 commit: c0b672436eacaa9a3542db07f60572557ba62e18
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 3 20:03:31 2022 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 3 20:03:31 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=c0b67243
7
8 kde-plasma/plasma-firewall: 5.24.0 version bump
9
10 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
11
12 .../plasma-firewall/plasma-firewall-5.24.0.ebuild | 64 ++++++++++++++++++++++
13 1 file changed, 64 insertions(+)
14
15 diff --git a/kde-plasma/plasma-firewall/plasma-firewall-5.24.0.ebuild b/kde-plasma/plasma-firewall/plasma-firewall-5.24.0.ebuild
16 new file mode 100644
17 index 0000000000..5ac26b7e39
18 --- /dev/null
19 +++ b/kde-plasma/plasma-firewall/plasma-firewall-5.24.0.ebuild
20 @@ -0,0 +1,64 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +PYTHON_COMPAT=( python3_{8..10} )
27 +KFMIN=5.90.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 ~riscv ~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 ${EPYTHON}:" \
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 +}