diff --git a/srcpkgs/virt-manager/patches/disable-compile-schemas-update-icon-cache.patch b/srcpkgs/virt-manager/patches/disable-compile-schemas-update-icon-cache.patch new file mode 100644 index 00000000000..ad8f6f798b2 --- /dev/null +++ b/srcpkgs/virt-manager/patches/disable-compile-schemas-update-icon-cache.patch @@ -0,0 +1,20 @@ +--- a/setup.py ++++ b/setup.py +@@ -264,17 +264,6 @@ class my_install(setuptools.command.install.install): + setuptools.command.install.install.finalize_options(self) + + def run(self): +- if not self.distribution.no_update_icon_cache: +- print("running gtk-update-icon-cache") +- icon_path = os.path.join(self.install_data, "share/icons/hicolor") +- self.spawn(["gtk-update-icon-cache", "-q", "-t", icon_path]) +- +- if not self.distribution.no_compile_schemas: +- print("compiling gsettings schemas") +- gschema_install = os.path.join(self.install_data, +- "share/glib-2.0/schemas") +- self.spawn(["glib-compile-schemas", gschema_install]) +- + setuptools.command.install.install.run(self) + + diff --git a/srcpkgs/virt-manager/template b/srcpkgs/virt-manager/template index f3f6a7424a1..3b66b6fd8a9 100644 --- a/srcpkgs/virt-manager/template +++ b/srcpkgs/virt-manager/template @@ -1,10 +1,10 @@ # Template file for 'virt-manager' pkgname=virt-manager -version=3.2.0 -revision=2 +version=4.0.0 +revision=1 build_style=python3-module pycompile_dirs="/usr/share/${pkgname}/virtManager" -hostmakedepends="gettext python3-docutils gtk-update-icon-cache" +hostmakedepends="gettext python3-docutils python3-setuptools" depends="virt-manager-tools>=${version}_${revision} libvirt-glib gtk-vnc spice-gtk gtksourceview4 dconf vte3 gir-freedesktop" _coredeps="python3-gobject libvirt-python3 libosinfo @@ -16,14 +16,9 @@ license="GPL-2.0-or-later" homepage="https://virt-manager.org" changelog="https://raw.githubusercontent.com/virt-manager/virt-manager/master/NEWS.md" distfiles="https://virt-manager.org/download/sources/${pkgname}/${pkgname}-${version}.tar.gz" -checksum=2b6fe3d90d89e1130227e4b05c51e6642d89c839d3ea063e0e29475fd9bf7b86 +checksum=515aaa2021a4bf352b0573098fe6958319b1ba8ec508ea37e064803f97f17086 python_version=3 -post_install() { - rm $DESTDIR/usr/share/glib-2.0/schemas/gschemas.compiled \ - $DESTDIR/usr/share/icons/hicolor/icon-theme.cache -} - virt-manager-tools_package() { short_desc="Programs to create and clone virtual machines" depends="${_coredeps} python3-argcomplete"