summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2021-05-03 22:06:01 +0200
committerConrad Kostecki <conikost@gentoo.org>2021-05-03 22:07:10 +0200
commit367dc6c7213859e3288f6783f2663b901d6dd0ba (patch)
treed7bd9e66e8e2e2fb84d8da377d72224f92f0bec9 /x11-misc
parentmedia-libs/libopenaptx: bump to v0.2.1 (diff)
downloadgentoo-367dc6c7213859e3288f6783f2663b901d6dd0ba.tar.gz
gentoo-367dc6c7213859e3288f6783f2663b901d6dd0ba.tar.bz2
gentoo-367dc6c7213859e3288f6783f2663b901d6dd0ba.zip
x11-misc/arandr: add python3.9 support
Also changed: * updated deps * updated metadata.xml * dropped conditional locales, as ebuild would not rebuild, if user changes LINGUAS, so installing all of them, as usual. * patched setup.py, instead gunzip man pages after install Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/arandr/arandr-0.1.10-r1.ebuild26
-rw-r--r--x11-misc/arandr/files/arandr-0.1.10-manpages.patch31
-rw-r--r--x11-misc/arandr/metadata.xml7
3 files changed, 64 insertions, 0 deletions
diff --git a/x11-misc/arandr/arandr-0.1.10-r1.ebuild b/x11-misc/arandr/arandr-0.1.10-r1.ebuild
new file mode 100644
index 000000000000..2da6f3298b6f
--- /dev/null
+++ b/x11-misc/arandr/arandr-0.1.10-r1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DISTUTILS_USE_SETUPTOOLS="no"
+PYTHON_COMPAT=( python3_{7..9} )
+
+inherit distutils-r1
+
+DESCRIPTION="Another XRandR GUI"
+HOMEPAGE="https://christian.amsuess.com/tools/arandr/"
+SRC_URI="https://christian.amsuess.com/tools/arandr/files/${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~arm64 x86"
+
+RDEPEND="
+ dev-python/pygobject:3=[${PYTHON_USEDEP},cairo]
+ x11-apps/xrandr
+"
+
+BDEPEND="dev-python/docutils[${PYTHON_USEDEP}]"
+
+PATCHES=( "${FILESDIR}/${PN}-0.1.10-manpages.patch" )
diff --git a/x11-misc/arandr/files/arandr-0.1.10-manpages.patch b/x11-misc/arandr/files/arandr-0.1.10-manpages.patch
new file mode 100644
index 000000000000..8e02c4928f36
--- /dev/null
+++ b/x11-misc/arandr/files/arandr-0.1.10-manpages.patch
@@ -0,0 +1,31 @@
+--- a/setup.py
++++ b/setup.py
+@@ -101,8 +101,8 @@
+ self.mkpath('build')
+
+ for (sourcefile, gzfile) in [
+- ('data/arandr.1.txt', os.path.join('build', 'arandr.1.gz')),
+- ('data/unxrandr.1.txt', os.path.join('build', 'unxrandr.1.gz')),
++ ('data/arandr.1.txt', os.path.join('build', 'arandr.1')),
++ ('data/unxrandr.1.txt', os.path.join('build', 'unxrandr.1')),
+ ]:
+
+ if newer(sourcefile, gzfile):
+@@ -111,7 +111,7 @@
+ info('compressing man page to %s', gzfile)
+
+ if not self.dry_run:
+- compressed = gzip.open(gzfile, 'w', 9)
++ compressed = open(gzfile, 'wb')
+ compressed.write(manpage)
+ compressed.close()
+
+@@ -259,7 +259,7 @@
+ },
+ data_files = [
+ ('share/applications', ['data/arandr.desktop']), # FIXME: use desktop-file-install?
+- ('share/man/man1', ['build/arandr.1.gz', 'build/unxrandr.1.gz']),
++ ('share/man/man1', ['build/arandr.1', 'build/unxrandr.1']),
+ ],
+ scripts = ['arandr', 'unxrandr'],
+ )
diff --git a/x11-misc/arandr/metadata.xml b/x11-misc/arandr/metadata.xml
index 3e3880cf1051..b2976bd66ac5 100644
--- a/x11-misc/arandr/metadata.xml
+++ b/x11-misc/arandr/metadata.xml
@@ -5,4 +5,11 @@
<email>conikost@gentoo.org</email>
<name>Conrad Kostecki</name>
</maintainer>
+ <longdescription>
+ ARandR is designed to provide a simple visual front end for XRandR.
+ Relative monitor positions are shown graphically and can be changed in a drag-and-drop way.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">arandr/arandr</remote-id>
+ </upstream>
</pkgmetadata>