summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Haustein <mario.haustein@hrz.tu-chemnitz.de>2023-11-24 08:20:08 +0100
committerFlorian Schmaus <flow@gentoo.org>2024-02-26 17:41:45 +0100
commitb75760fe33a53badfc181435db7bca27369feec7 (patch)
tree8be1f5f3c1e00f82a57ce0ecef265aa8b49cfbec /net-vpn
parentdev-ruby/net-imap: drop 0.4.6, 0.4.7, 0.4.8, 0.4.9 (diff)
downloadgentoo-b75760fe33a53badfc181435db7bca27369feec7.tar.gz
gentoo-b75760fe33a53badfc181435db7bca27369feec7.tar.bz2
gentoo-b75760fe33a53badfc181435db7bca27369feec7.zip
net-vpn/eduvpn-client: update icon cache
Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de> Thanks-to: Ralph Sontag <ralph.sontag@informatik.tu-chemnitz.de> Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'net-vpn')
-rw-r--r--net-vpn/eduvpn-client/eduvpn-client-4.1.3-r1.ebuild (renamed from net-vpn/eduvpn-client/eduvpn-client-4.1.3.ebuild)14
-rw-r--r--net-vpn/eduvpn-client/eduvpn-client-4.1.99.0-r1.ebuild (renamed from net-vpn/eduvpn-client/eduvpn-client-4.1.99.0.ebuild)16
-rw-r--r--net-vpn/eduvpn-client/files/eduvpn-client-desktop.patch16
3 files changed, 44 insertions, 2 deletions
diff --git a/net-vpn/eduvpn-client/eduvpn-client-4.1.3.ebuild b/net-vpn/eduvpn-client/eduvpn-client-4.1.3-r1.ebuild
index 58124218aa8c..8f80162c577e 100644
--- a/net-vpn/eduvpn-client/eduvpn-client-4.1.3.ebuild
+++ b/net-vpn/eduvpn-client/eduvpn-client-4.1.3-r1.ebuild
@@ -6,7 +6,7 @@ EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
DISTUTILS_USE_PEP517=setuptools
-inherit distutils-r1
+inherit distutils-r1 xdg-utils
if [[ ${PV} == "9999" ]] ; then
inherit git-r3
@@ -35,4 +35,16 @@ RDEPEND="
>=net-vpn/eduvpn-common-1.1.2[${PYTHON_USEDEP}]
"
+PATCHES=(
+ "${FILESDIR}/${PN}-desktop.patch"
+)
+
distutils_enable_sphinx doc
+
+pkg_postinst() {
+ xdg_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_icon_cache_update
+}
diff --git a/net-vpn/eduvpn-client/eduvpn-client-4.1.99.0.ebuild b/net-vpn/eduvpn-client/eduvpn-client-4.1.99.0-r1.ebuild
index c5909a9568a4..5c6e698e30a3 100644
--- a/net-vpn/eduvpn-client/eduvpn-client-4.1.99.0.ebuild
+++ b/net-vpn/eduvpn-client/eduvpn-client-4.1.99.0-r1.ebuild
@@ -10,7 +10,7 @@ DOCS_DIR="doc"
PYTHON_COMPAT=( python3_{10..12} )
DISTUTILS_USE_PEP517=setuptools
-inherit distutils-r1 docs
+inherit distutils-r1 docs xdg-utils
if [[ ${PV} == "9999" ]] ; then
inherit git-r3
@@ -36,3 +36,17 @@ RDEPEND="
dev-python/pygobject:3[${PYTHON_USEDEP}]
>=net-vpn/eduvpn-common-1.1.99.0[${PYTHON_USEDEP}]
"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-desktop.patch"
+)
+
+pkg_postinst() {
+ default
+ xdg_icon_cache_update
+}
+
+pkg_postrm() {
+ default
+ xdg_icon_cache_update
+}
diff --git a/net-vpn/eduvpn-client/files/eduvpn-client-desktop.patch b/net-vpn/eduvpn-client/files/eduvpn-client-desktop.patch
new file mode 100644
index 000000000000..69c5d03d2b97
--- /dev/null
+++ b/net-vpn/eduvpn-client/files/eduvpn-client-desktop.patch
@@ -0,0 +1,16 @@
+--- a/share/applications/org.eduvpn.client.desktop
++++ b/share/applications/org.eduvpn.client.desktop
+@@ -6,4 +6,4 @@ Comment=a GUI to connect to eduVPN using OpenVPN and WireGuard
+ Exec=eduvpn-gui
+ Icon=org.eduvpn.client
+ Terminal=false
+-
++Categories=Network;Dialup
+--- a/share/applications/org.letsconnect-vpn.client.desktop
++++ b/share/applications/org.letsconnect-vpn.client.desktop
+@@ -6,4 +6,4 @@ Comment=a GUI to connect to Let's Connect! using OpenVPN and WireGuard
+ Exec=letsconnect-gui
+ Icon=org.letsconnect-vpn.client
+ Terminal=false
+-
++Categories=Network;Dialup