commit: b75760fe33a53badfc181435db7bca27369feec7 Author: Mario Haustein <mario.haustein <AT> hrz <DOT> tu-chemnitz <DOT> de> AuthorDate: Fri Nov 24 07:20:08 2023 +0000 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> CommitDate: Mon Feb 26 16:41:45 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b75760fe
net-vpn/eduvpn-client: update icon cache Signed-off-by: Mario Haustein <mario.haustein <AT> hrz.tu-chemnitz.de> Thanks-to: Ralph Sontag <ralph.sontag <AT> informatik.tu-chemnitz.de> Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> ...client-4.1.3.ebuild => eduvpn-client-4.1.3-r1.ebuild} | 14 +++++++++++++- ...-4.1.99.0.ebuild => eduvpn-client-4.1.99.0-r1.ebuild} | 16 +++++++++++++++- net-vpn/eduvpn-client/files/eduvpn-client-desktop.patch | 16 ++++++++++++++++ 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 similarity index 84% rename from net-vpn/eduvpn-client/eduvpn-client-4.1.3.ebuild rename to 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 similarity index 82% rename from net-vpn/eduvpn-client/eduvpn-client-4.1.99.0.ebuild rename to 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