From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 688D51382C5 for ; Tue, 15 Jun 2021 13:00:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9B7CEE0837; Tue, 15 Jun 2021 13:00:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4A45CE0837 for ; Tue, 15 Jun 2021 13:00:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EB9A2335C9F for ; Tue, 15 Jun 2021 13:00:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1D36B78A for ; Tue, 15 Jun 2021 13:00:08 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1623761998.760b52dbf51f9ea744f51f4dcebd9497e6a2e23a.flow@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: x11-misc/autorandr/ X-VCS-Repository: repo/proj/guru X-VCS-Files: x11-misc/autorandr/Manifest x11-misc/autorandr/autorandr-1.11.ebuild x11-misc/autorandr/autorandr-9999.ebuild x11-misc/autorandr/metadata.xml X-VCS-Directories: x11-misc/autorandr/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: 760b52dbf51f9ea744f51f4dcebd9497e6a2e23a X-VCS-Branch: dev Date: Tue, 15 Jun 2021 13:00:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bff050c6-ad51-4aa0-9c75-b2f1ba016d6f X-Archives-Hash: 6cc1499b94295d208c3096c78434b037 commit: 760b52dbf51f9ea744f51f4dcebd9497e6a2e23a Author: Florian Schmaus geekplace eu> AuthorDate: Tue Jun 15 12:59:17 2021 +0000 Commit: Florian Schmaus geekplace eu> CommitDate: Tue Jun 15 12:59:58 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=760b52db x11-misc/autorandr: initial import Signed-off-by: Florian Schmaus geekplace.eu> x11-misc/autorandr/Manifest | 1 + x11-misc/autorandr/autorandr-1.11.ebuild | 57 ++++++++++++++++++++++++++++++++ x11-misc/autorandr/autorandr-9999.ebuild | 57 ++++++++++++++++++++++++++++++++ x11-misc/autorandr/metadata.xml | 12 +++++++ 4 files changed, 127 insertions(+) diff --git a/x11-misc/autorandr/Manifest b/x11-misc/autorandr/Manifest new file mode 100644 index 000000000..6523b0b03 --- /dev/null +++ b/x11-misc/autorandr/Manifest @@ -0,0 +1 @@ +DIST autorandr-1.11.tar.gz 48791 BLAKE2B 57203b15eebdecab943c706745701e8569eb0a66dab69ae4429abfa863da736a5ed8b5333f6d948bcf8cae30f48c68eb1b35f2e84080526c1507ab78dba02efb SHA512 93de0461653aa5145956a8aafdc9fb257491495ca335e4213e7b6f1f313ebfd2332c38615ac648204494026439d77861a7eefd97e80cd49a5fe3d9b75db54ec1 diff --git a/x11-misc/autorandr/autorandr-1.11.ebuild b/x11-misc/autorandr/autorandr-1.11.ebuild new file mode 100644 index 000000000..b747e854c --- /dev/null +++ b/x11-misc/autorandr/autorandr-1.11.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit bash-completion-r1 systemd udev + +if [[ "${PV}" = "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/phillipberndt/${PN}.git" +else + SRC_URI="https://github.com/phillipberndt/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Automatically select a display configuration based on connected devices" +HOMEPAGE="https://github.com/phillipberndt/autorandr" + +LICENSE="GPL-3+" +SLOT="0" +IUSE="bash-completion systemd udev" + +DEPEND=" + virtual/pkgconfig + ${RDEPEND} +" +RDEPEND=" + bash-completion? ( app-shells/bash ) + systemd? ( sys-apps/systemd ) + udev? ( virtual/udev ) +" + +src_install() { + targets="autorandr autostart_config" + if use bash-completion; then + targets="$targets bash_completion" + fi + if use systemd; then + targets="$targets systemd" + fi + if use udev; then + targets="$targets udev" + fi + + emake DESTDIR="${D}" \ + install \ + BASH_COMPLETIONS_DIR="$(get_bashcompdir)" \ + SYSTEMD_UNIT_DIR="$(systemd_get_systemunitdir)" \ + UDEV_RULES_DIR="$(get_udevdir)"/rules.d \ + TARGETS="$targets" +} + +pkg_postinst() { + if use udev; then + udev_reload + fi +} diff --git a/x11-misc/autorandr/autorandr-9999.ebuild b/x11-misc/autorandr/autorandr-9999.ebuild new file mode 100644 index 000000000..b747e854c --- /dev/null +++ b/x11-misc/autorandr/autorandr-9999.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit bash-completion-r1 systemd udev + +if [[ "${PV}" = "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/phillipberndt/${PN}.git" +else + SRC_URI="https://github.com/phillipberndt/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Automatically select a display configuration based on connected devices" +HOMEPAGE="https://github.com/phillipberndt/autorandr" + +LICENSE="GPL-3+" +SLOT="0" +IUSE="bash-completion systemd udev" + +DEPEND=" + virtual/pkgconfig + ${RDEPEND} +" +RDEPEND=" + bash-completion? ( app-shells/bash ) + systemd? ( sys-apps/systemd ) + udev? ( virtual/udev ) +" + +src_install() { + targets="autorandr autostart_config" + if use bash-completion; then + targets="$targets bash_completion" + fi + if use systemd; then + targets="$targets systemd" + fi + if use udev; then + targets="$targets udev" + fi + + emake DESTDIR="${D}" \ + install \ + BASH_COMPLETIONS_DIR="$(get_bashcompdir)" \ + SYSTEMD_UNIT_DIR="$(systemd_get_systemunitdir)" \ + UDEV_RULES_DIR="$(get_udevdir)"/rules.d \ + TARGETS="$targets" +} + +pkg_postinst() { + if use udev; then + udev_reload + fi +} diff --git a/x11-misc/autorandr/metadata.xml b/x11-misc/autorandr/metadata.xml new file mode 100644 index 000000000..e052391d2 --- /dev/null +++ b/x11-misc/autorandr/metadata.xml @@ -0,0 +1,12 @@ + + + + + flo@geekplace.eu + Florian Schmaus + + + Install autorand systemd files + Use udev for monitor detection + +