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 /x11-terms/terminator/files
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>
Diffstat (limited to 'x11-terms/terminator/files')
-rw-r--r--x11-terms/terminator/files/terminator-1.92-metainfo.patch32
1 files changed, 32 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 00000000000..ae2fed5d48f
--- /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']),