From a6423ffbddf5958d1829c4d61c4beb555d6140d0 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 13 Dec 2018 21:10:55 +0100 Subject: [PATCH] guake: update to 3.4.0. resolves #5818 --- srcpkgs/guake/patches/guake-3.4.0-paths.patch | 14 ++++++++++++++ srcpkgs/guake/template | 19 +++++++++++-------- 2 files changed, 25 insertions(+), 8 deletions(-) create mode 100644 srcpkgs/guake/patches/guake-3.4.0-paths.patch diff --git a/srcpkgs/guake/patches/guake-3.4.0-paths.patch b/srcpkgs/guake/patches/guake-3.4.0-paths.patch new file mode 100644 index 0000000000..23240906e3 --- /dev/null +++ b/srcpkgs/guake/patches/guake-3.4.0-paths.patch @@ -0,0 +1,14 @@ +https://bugs.gentoo.org/667878 +https://github.com/Guake/guake/issues/1436 + +--- guake/paths.py ++++ guake/paths.py +@@ -35,7 +35,7 @@ + + + def get_data_files_dir(): +- d = os.path.dirname(os.path.dirname(sys.modules["guake"].__file__)) ++ d = os.path.dirname(sys.modules["guake"].__file__) + p = os.path.basename(os.path.abspath(os.path.join(d, ".."))) + if p in ["site-packages", "dist-packages"]: + # current "guake" package has been installed in a prefix structure (/usr, /usr/local or diff --git a/srcpkgs/guake/template b/srcpkgs/guake/template index 30a5e4a251..ee3105b21e 100644 --- a/srcpkgs/guake/template +++ b/srcpkgs/guake/template @@ -1,8 +1,7 @@ # Template file for 'guake' pkgname=guake -reverts="3.4.0_1" -version=3.3.2 -revision=3 +version=3.4.0 +revision=1 noarch=yes build_style=python3-module pycompile_module="guake" @@ -12,15 +11,19 @@ depends="desktop-file-utils libkeybinder3 libnotify python3-dbus python3-gobject python3-pbr vte3" checkdepends="python3-flake8 python3-pylint python3-pytest" short_desc="Drop-down terminal for GNOME" -maintainer="John " +maintainer="Orphaned " license="GPL-2.0-or-later" homepage="http://guake-project.org/" distfiles="https://github.com/Guake/guake/archive/${version}.tar.gz" -checksum=d0a6c95a59df7f25e9f7a320ec11ffea3fd37d252768819ebdeb7608afaebd1f +checksum=54551c25b63612b73d176df5d222133b0b3b48d6ac5cfce33320f077b4702c49 + +post_extract() { + export PBR_VERSION=5.1.1 + make generate-paths generate-mo +} pre_build() { - export PBR_VERSION=4.0.4 - make generate-paths generate-mo + export PBR_VERSION=5.1.1 } do_check() { @@ -29,7 +32,7 @@ do_check() { } pre_install() { - export PBR_VERSION=4.0.4 + export PBR_VERSION=5.1.1 make prefix=/usr DESTDIR=${DESTDIR} install-locale }