commit:     367dc6c7213859e3288f6783f2663b901d6dd0ba
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Mon May  3 20:06:01 2021 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Mon May  3 20:07:10 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=367dc6c7

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 <AT> gentoo.org>

 x11-misc/arandr/arandr-0.1.10-r1.ebuild            | 26 ++++++++++++++++++
 x11-misc/arandr/files/arandr-0.1.10-manpages.patch | 31 ++++++++++++++++++++++
 x11-misc/arandr/metadata.xml                       |  7 +++++
 3 files changed, 64 insertions(+)

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 00000000000..2da6f3298b6
--- /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 00000000000..8e02c4928f3
--- /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 3e3880cf105..b2976bd66ac 100644
--- a/x11-misc/arandr/metadata.xml
+++ b/x11-misc/arandr/metadata.xml
@@ -5,4 +5,11 @@
                <email>conik...@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>

Reply via email to