1 |
commit: 367dc6c7213859e3288f6783f2663b901d6dd0ba |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 3 20:06:01 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 3 20:07:10 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=367dc6c7 |
7 |
|
8 |
x11-misc/arandr: add python3.9 support |
9 |
|
10 |
Also changed: |
11 |
* updated deps |
12 |
* updated metadata.xml |
13 |
* dropped conditional locales, as ebuild would not rebuild, if user |
14 |
changes LINGUAS, so installing all of them, as usual. |
15 |
* patched setup.py, instead gunzip man pages after install |
16 |
|
17 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
18 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
19 |
|
20 |
x11-misc/arandr/arandr-0.1.10-r1.ebuild | 26 ++++++++++++++++++ |
21 |
x11-misc/arandr/files/arandr-0.1.10-manpages.patch | 31 ++++++++++++++++++++++ |
22 |
x11-misc/arandr/metadata.xml | 7 +++++ |
23 |
3 files changed, 64 insertions(+) |
24 |
|
25 |
diff --git a/x11-misc/arandr/arandr-0.1.10-r1.ebuild b/x11-misc/arandr/arandr-0.1.10-r1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..2da6f3298b6 |
28 |
--- /dev/null |
29 |
+++ b/x11-misc/arandr/arandr-0.1.10-r1.ebuild |
30 |
@@ -0,0 +1,26 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+DISTUTILS_USE_SETUPTOOLS="no" |
37 |
+PYTHON_COMPAT=( python3_{7..9} ) |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="Another XRandR GUI" |
42 |
+HOMEPAGE="https://christian.amsuess.com/tools/arandr/" |
43 |
+SRC_URI="https://christian.amsuess.com/tools/arandr/files/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="GPL-3+" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="amd64 ~arm ~arm64 x86" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ dev-python/pygobject:3=[${PYTHON_USEDEP},cairo] |
51 |
+ x11-apps/xrandr |
52 |
+" |
53 |
+ |
54 |
+BDEPEND="dev-python/docutils[${PYTHON_USEDEP}]" |
55 |
+ |
56 |
+PATCHES=( "${FILESDIR}/${PN}-0.1.10-manpages.patch" ) |
57 |
|
58 |
diff --git a/x11-misc/arandr/files/arandr-0.1.10-manpages.patch b/x11-misc/arandr/files/arandr-0.1.10-manpages.patch |
59 |
new file mode 100644 |
60 |
index 00000000000..8e02c4928f3 |
61 |
--- /dev/null |
62 |
+++ b/x11-misc/arandr/files/arandr-0.1.10-manpages.patch |
63 |
@@ -0,0 +1,31 @@ |
64 |
+--- a/setup.py |
65 |
++++ b/setup.py |
66 |
+@@ -101,8 +101,8 @@ |
67 |
+ self.mkpath('build') |
68 |
+ |
69 |
+ for (sourcefile, gzfile) in [ |
70 |
+- ('data/arandr.1.txt', os.path.join('build', 'arandr.1.gz')), |
71 |
+- ('data/unxrandr.1.txt', os.path.join('build', 'unxrandr.1.gz')), |
72 |
++ ('data/arandr.1.txt', os.path.join('build', 'arandr.1')), |
73 |
++ ('data/unxrandr.1.txt', os.path.join('build', 'unxrandr.1')), |
74 |
+ ]: |
75 |
+ |
76 |
+ if newer(sourcefile, gzfile): |
77 |
+@@ -111,7 +111,7 @@ |
78 |
+ info('compressing man page to %s', gzfile) |
79 |
+ |
80 |
+ if not self.dry_run: |
81 |
+- compressed = gzip.open(gzfile, 'w', 9) |
82 |
++ compressed = open(gzfile, 'wb') |
83 |
+ compressed.write(manpage) |
84 |
+ compressed.close() |
85 |
+ |
86 |
+@@ -259,7 +259,7 @@ |
87 |
+ }, |
88 |
+ data_files = [ |
89 |
+ ('share/applications', ['data/arandr.desktop']), # FIXME: use desktop-file-install? |
90 |
+- ('share/man/man1', ['build/arandr.1.gz', 'build/unxrandr.1.gz']), |
91 |
++ ('share/man/man1', ['build/arandr.1', 'build/unxrandr.1']), |
92 |
+ ], |
93 |
+ scripts = ['arandr', 'unxrandr'], |
94 |
+ ) |
95 |
|
96 |
diff --git a/x11-misc/arandr/metadata.xml b/x11-misc/arandr/metadata.xml |
97 |
index 3e3880cf105..b2976bd66ac 100644 |
98 |
--- a/x11-misc/arandr/metadata.xml |
99 |
+++ b/x11-misc/arandr/metadata.xml |
100 |
@@ -5,4 +5,11 @@ |
101 |
<email>conikost@g.o</email> |
102 |
<name>Conrad Kostecki</name> |
103 |
</maintainer> |
104 |
+ <longdescription> |
105 |
+ ARandR is designed to provide a simple visual front end for XRandR. |
106 |
+ Relative monitor positions are shown graphically and can be changed in a drag-and-drop way. |
107 |
+ </longdescription> |
108 |
+ <upstream> |
109 |
+ <remote-id type="github">arandr/arandr</remote-id> |
110 |
+ </upstream> |
111 |
</pkgmetadata> |