summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Sokolov <sokolov@google.com>2020-05-03 16:50:27 +0100
committerJoonas Niilola <juippis@gentoo.org>2020-05-04 17:11:00 +0300
commit472a3393145f37f03c9ca961f02e2ec6848743cb (patch)
tree3b7759b1e2fa5679f2df9663bf45b25c6dd6d7d8
parentx11-terms/terminator: fix usage of distutils (diff)
downloadgentoo-472a3393145f37f03c9ca961f02e2ec6848743cb.tar.gz
gentoo-472a3393145f37f03c9ca961f02e2ec6848743cb.tar.bz2
gentoo-472a3393145f37f03c9ca961f02e2ec6848743cb.zip
x11-terms/terminator: improvements
* install metainfo to correct (modern) path * declare not using setuputils Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alexey Sokolov <sokolov@google.com> Closes: https://github.com/gentoo/gentoo/pull/15589 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
-rw-r--r--x11-terms/terminator/files/terminator-1.92-metainfo.patch32
-rw-r--r--x11-terms/terminator/terminator-1.92.ebuild2
2 files changed, 34 insertions, 0 deletions
diff --git a/x11-terms/terminator/files/terminator-1.92-metainfo.patch b/x11-terms/terminator/files/terminator-1.92-metainfo.patch
new file mode 100644
index 000000000000..ae2fed5d48f0
--- /dev/null
+++ b/x11-terms/terminator/files/terminator-1.92-metainfo.patch
@@ -0,0 +1,32 @@
+commit 39fb5fb9586e9974c2bf4772e18c86b07e3a4a41
+Author: Alexey Sokolov <sokolov@google.com>
+Date: Fri May 1 20:38:00 2020 +0100
+
+ Install AppStream data as .metainfo.xml
+
+ Following advice from https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html
+
+diff --git a/setup.py b/setup.py
+index 7c54977e..38a819a9 100755
+--- a/setup.py
++++ b/setup.py
+@@ -72,7 +72,7 @@ class BuildData(build):
+ [file_data.write(line.lstrip('_')) for line in file_in]
+
+ appdata_in='data/terminator.appdata.xml.in'
+- appdata_data='data/terminator.appdata.xml'
++ appdata_data='data/terminator.metainfo.xml'
+ rc = os.system ("C_ALL=C " + INTLTOOL_MERGE + " -x -u -c " + TOP_BUILDDIR +
+ "/po/.intltool-merge-cache " + TOP_BUILDDIR + "/po " +
+ appdata_in + " " + appdata_data)
+@@ -205,9 +205,9 @@ setup(name=APP_NAME,
+ license='GNU GPL v2',
+ scripts=['terminator', 'remotinator'],
+ data_files=[
+ ('bin', ['terminator.wrapper']),
+- ('share/appdata', ['data/terminator.appdata.xml']),
+ ('share/applications', ['data/terminator.desktop']),
++ ('share/metainfo', ['data/terminator.metainfo.xml']),
+ (os.path.join(man_dir, 'man1'), ['doc/terminator.1']),
+ (os.path.join(man_dir, 'man5'), ['doc/terminator_config.5']),
+ ('share/pixmaps', ['data/icons/hicolor/48x48/apps/terminator.png']),
diff --git a/x11-terms/terminator/terminator-1.92.ebuild b/x11-terms/terminator/terminator-1.92.ebuild
index e0725520a7cd..5891577d909c 100644
--- a/x11-terms/terminator/terminator-1.92.ebuild
+++ b/x11-terms/terminator/terminator-1.92.ebuild
@@ -4,6 +4,7 @@
EAPI=7
PYTHON_COMPAT=( python3_{6,7,8} )
+DISTUTILS_USE_SETUPTOOLS="no"
inherit distutils-r1 virtualx xdg-utils
DESCRIPTION="Multiple GNOME terminals in one window"
@@ -36,6 +37,7 @@ PATCHES=(
"${FILESDIR}"/terminator-1.91-without-icon-cache.patch
"${FILESDIR}"/terminator-1.91-desktop.patch
"${FILESDIR}"/terminator-1.92-make-tests-fail.patch
+ "${FILESDIR}"/terminator-1.92-metainfo.patch
)
src_prepare() {