From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/autorandr/
Date: Mon, 28 Jun 2021 09:29:34 +0000 (UTC) [thread overview]
Message-ID: <1624872550.18018454bd6a64cac7aeee5d959734796a6596d5.flow@gentoo> (raw)
commit: 18018454bd6a64cac7aeee5d959734796a6596d5
Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 28 09:13:33 2021 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Mon Jun 28 09:29:10 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18018454
x11-misc/autorandr: initial import
Closes: https://bugs.gentoo.org/602516
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
x11-misc/autorandr/Manifest | 1 +
x11-misc/autorandr/autorandr-1.11.ebuild | 66 ++++++++++++++++++++++++++++++++
x11-misc/autorandr/autorandr-9999.ebuild | 66 ++++++++++++++++++++++++++++++++
x11-misc/autorandr/metadata.xml | 11 ++++++
4 files changed, 144 insertions(+)
diff --git a/x11-misc/autorandr/Manifest b/x11-misc/autorandr/Manifest
new file mode 100644
index 00000000000..6523b0b03b9
--- /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 00000000000..ed486299720
--- /dev/null
+++ b/x11-misc/autorandr/autorandr-1.11.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..10} )
+
+inherit bash-completion-r1 distutils-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 ~x86"
+fi
+
+DESCRIPTION="Automatically select a display configuration based on connected devices"
+HOMEPAGE="https://github.com/phillipberndt/autorandr"
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="launcher udev"
+
+RDEPEND="
+ launcher? ( x11-libs/libxcb )
+ udev? ( virtual/udev )
+"
+DEPEND="
+ virtual/pkgconfig
+ ${RDEPEND}
+"
+
+src_compile() {
+ distutils-r1_src_compile
+
+ if use launcher; then
+ emake contrib/autorandr_launcher/autorandr-launcher
+ fi
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ doman autorandr.1
+
+ local targets=(
+ autostart_config
+ bash_completion
+ systemd
+ $(usev launcher)
+ $(usev udev)
+ )
+
+ emake DESTDIR="${D}" \
+ BASH_COMPLETIONS_DIR="$(get_bashcompdir)" \
+ SYSTEMD_UNIT_DIR="$(systemd_get_systemunitdir)" \
+ UDEV_RULES_DIR="$(get_udevdir)"/rules.d \
+ $(printf "install_%s " "${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 00000000000..ed486299720
--- /dev/null
+++ b/x11-misc/autorandr/autorandr-9999.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..10} )
+
+inherit bash-completion-r1 distutils-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 ~x86"
+fi
+
+DESCRIPTION="Automatically select a display configuration based on connected devices"
+HOMEPAGE="https://github.com/phillipberndt/autorandr"
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="launcher udev"
+
+RDEPEND="
+ launcher? ( x11-libs/libxcb )
+ udev? ( virtual/udev )
+"
+DEPEND="
+ virtual/pkgconfig
+ ${RDEPEND}
+"
+
+src_compile() {
+ distutils-r1_src_compile
+
+ if use launcher; then
+ emake contrib/autorandr_launcher/autorandr-launcher
+ fi
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ doman autorandr.1
+
+ local targets=(
+ autostart_config
+ bash_completion
+ systemd
+ $(usev launcher)
+ $(usev udev)
+ )
+
+ emake DESTDIR="${D}" \
+ BASH_COMPLETIONS_DIR="$(get_bashcompdir)" \
+ SYSTEMD_UNIT_DIR="$(systemd_get_systemunitdir)" \
+ UDEV_RULES_DIR="$(get_udevdir)"/rules.d \
+ $(printf "install_%s " "${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 00000000000..bc2b0d6910c
--- /dev/null
+++ b/x11-misc/autorandr/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>flow@gentoo.org</email>
+ <name>Florian Schmaus</name>
+</maintainer>
+<use>
+ <flag name="launcher">Install the launcher</flag>
+</use>
+</pkgmetadata>
next reply other threads:[~2021-06-28 9:29 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-28 9:29 Florian Schmaus [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-06-29 6:55 [gentoo-commits] repo/gentoo:master commit in: x11-misc/autorandr/ Florian Schmaus
2021-12-11 14:45 Florian Schmaus
2021-12-18 15:42 Florian Schmaus
2021-12-27 8:59 Florian Schmaus
2022-06-21 10:36 Florian Schmaus
2022-06-21 10:36 Florian Schmaus
2022-06-21 10:36 Florian Schmaus
2022-06-21 10:47 Florian Schmaus
2022-10-19 9:16 Florian Schmaus
2022-11-30 9:39 Florian Schmaus
2022-11-30 9:39 Florian Schmaus
2022-11-30 9:39 Florian Schmaus
2022-11-30 9:39 Florian Schmaus
2023-01-20 12:14 Florian Schmaus
2023-01-20 12:15 Florian Schmaus
2023-01-24 12:55 Florian Schmaus
2023-01-24 12:55 Florian Schmaus
2023-01-24 15:21 Florian Schmaus
2023-01-25 13:15 Florian Schmaus
2023-03-21 11:15 Florian Schmaus
2023-06-25 19:14 Florian Schmaus
2023-07-29 14:05 Florian Schmaus
2023-07-29 14:05 Florian Schmaus
2024-03-06 9:33 Florian Schmaus
2024-03-06 9:35 Florian Schmaus
2024-04-09 14:26 Florian Schmaus
2024-04-09 14:26 Florian Schmaus
2024-09-23 6:49 Florian Schmaus
2024-09-23 6:49 Florian Schmaus
2024-10-24 10:42 Florian Schmaus
2024-10-24 10:42 Florian Schmaus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1624872550.18018454bd6a64cac7aeee5d959734796a6596d5.flow@gentoo \
--to=flow@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox