x11-misc/arandr: Version 0.1.10
authorJeroen Roovers <jer@gentoo.org>
Thu, 20 Jun 2019 13:19:22 +0000 (15:19 +0200)
committerJeroen Roovers <jer@gentoo.org>
Thu, 20 Jun 2019 13:20:13 +0000 (15:20 +0200)
Package-Manager: Portage-2.3.67, Repoman-2.3.15
Bug: https://bugs.gentoo.org/show_bug.cgi?id=685644
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
x11-misc/arandr/Manifest
x11-misc/arandr/arandr-0.1.10.ebuild [new file with mode: 0644]

index 8752f7fb37f094c904400c9e69dddc140fd89d62..5288373c464a9c1baa1fc82f1bdc191a66a4fe6e 100644 (file)
@@ -1 +1,2 @@
+DIST arandr-0.1.10.tar.gz 100203 BLAKE2B b5754dda4c4f9c5e957a9fc75b7236480417b899c2705bc5aee514899c664d39b5902921c69ac425aff99f3a6ea512bfc0c2c0259519c1a6e0fc553f6e367cc2 SHA512 12c2fe5b36f8d8e688d990e352c1cfa3e8512c0b647b78a8af93f9472704e4867fac4c56c207465fb7b420c9022dc545dea8ad8a29af3037758ab4587dcd38ba
 DIST arandr_0.1.9.orig.tar.gz 90437 BLAKE2B 0782bfd5ebffc1cbfbdaaded623b89559176acbbb363310abfac1fb1af9f64f285eff74de2a2a7b4c36722cde2970f852fccc2cb4d4a49f2d29bc7fc48a2b780 SHA512 0b2bd62665a9680cf29132ddf0a1ba8eda6bc403b98245727e4c4613ac3e2a694d9268426a14bab35b8e79c7c9191cc224627fca56349acf20546a93d749f006
diff --git a/x11-misc/arandr/arandr-0.1.10.ebuild b/x11-misc/arandr/arandr-0.1.10.ebuild
new file mode 100644 (file)
index 0000000..6025bf9
--- /dev/null
@@ -0,0 +1,44 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{5,6} )
+inherit distutils-r1
+
+DESCRIPTION="Another XRandR GUI"
+HOMEPAGE="https://christian.amsuess.com/tools/arandr/"
+SRC_URI="${HOMEPAGE}/files/${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+       dev-python/pygobject:3=[${PYTHON_USEDEP}]
+       x11-apps/xrandr
+"
+DEPEND="
+       >=dev-python/docutils-0.6[${PYTHON_USEDEP}]
+"
+
+src_prepare() {
+       local i p
+       # simulate gettext behavior:
+       #  LINGUAS unset => install all
+       #  LINGUAS="" => install none
+       #  LINGUAS="de fr" => install de and fr
+       if [[ -n "${LINGUAS+x}" ]] ; then # if LINGUAS is set
+               for i in $(cd "${S}"/data/po ; for p in *.po ; do echo ${p%.po} ; done) ; do # for every supported language
+                       if ! has ${i} ${LINGUAS} ; then # if language is disabled
+                               rm data/po/${i}.po || die
+                       fi
+               done
+       fi
+
+       distutils-r1_src_prepare
+}
+
+src_install() {
+       distutils-r1_src_install
+       gunzip "${D}"/usr/share/man/man1/{${PN},unxrandr}.1.gz || die
+}