diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2019-02-08 19:06:31 -0600 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2019-02-08 20:22:53 -0600 |
commit | aacf6db4dee0bc95433c6c69d1d49592843d91da (patch) | |
tree | af22be3a46054a09ba4aa7a52e4473bfea3c487c | |
parent | dev-libs/wlroots: 0.3 bump (diff) | |
download | gentoo-aacf6db4dee0bc95433c6c69d1d49592843d91da.tar.gz gentoo-aacf6db4dee0bc95433c6c69d1d49592843d91da.tar.bz2 gentoo-aacf6db4dee0bc95433c6c69d1d49592843d91da.zip |
dev-libs/swayidle: initial add
Package-Manager: Portage-2.3.51, Repoman-2.3.12
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
-rw-r--r-- | dev-libs/swayidle/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/swayidle/metadata.xml | 15 | ||||
-rw-r--r-- | dev-libs/swayidle/swayidle-1.2.ebuild | 43 |
3 files changed, 59 insertions, 0 deletions
diff --git a/dev-libs/swayidle/Manifest b/dev-libs/swayidle/Manifest new file mode 100644 index 000000000000..cbd8e77cc479 --- /dev/null +++ b/dev-libs/swayidle/Manifest @@ -0,0 +1 @@ +DIST swayidle-1.2.tar.gz 9136 BLAKE2B e88eec89007deed59df30f3f89111352b8a1ed464141783cb25b0d0a484e8ea4cfd611f1bd80d9420368d7912979eb0536a6aa583d24504d32bac797a898dba5 SHA512 2539e80a45163bb3e76f7b41f6fd6a1d73d194b7e466f63178b5087d05470fceafba38a26d592a534a01b992a2c0cf0f8fb83805cdf41ee956fea5136cc8fe89 diff --git a/dev-libs/swayidle/metadata.xml b/dev-libs/swayidle/metadata.xml new file mode 100644 index 000000000000..b8a1df1de5c9 --- /dev/null +++ b/dev-libs/swayidle/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>prometheanfire@gentoo.org</email> + <name>Matthew Thode</name> + </maintainer> + <longdescription lang="en"> + Sway's idle management daemon, compatible with any Wayland compositor which implements the KDE idle protocol. + </longdescription> + <use> + <flag name="elogind">Enable support for rootless session via elogind</flag> + <flag name="fish-completion">Enable fish completion support</flag> + </use> +</pkgmetadata> diff --git a/dev-libs/swayidle/swayidle-1.2.ebuild b/dev-libs/swayidle/swayidle-1.2.ebuild new file mode 100644 index 000000000000..e7c0885af584 --- /dev/null +++ b/dev-libs/swayidle/swayidle-1.2.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit meson + +DESCRIPTION="Idle management daemon for Wayland" +HOMEPAGE="https://github.com/swaywm/swayidle" +SRC_URI="https://github.com/swaywm/swayidle/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="systemd elogind zsh-completion bash-completion fish-completion +doc" +REQUIRED_USE="?? ( elogind systemd )" + +RDEPEND="dev-libs/wayland + elogind? ( >=sys-auth/elogind-237 ) + systemd? ( >=sys-apps/systemd-237 ) +" +DEPEND="${RDEPEND} + >=dev-libs/wayland-protocols-1.14 + doc? ( app-text/scdoc ) + !<dev-libs/sway-1.0_rc1 +" +src_configure() { + local emesonargs=( + -Dman-pages=$(usex doc enabled disabled) + -Dzsh-completions=$(usex zsh-completion true false) + -Dbash-completions=$(usex bash-completion true false) + -Dfish-completions=$(usex fish-completion true false) + ) + if use systemd ; then + emesonargs+=("-Dlogind=enabled" "-Dlogind-provider=systemd") + elif use elogind ; then + emesonargs+=("-Dlogind=enabled" "-Dlogind-provider=elogind") + else + emesonargs+=("-Dlogind=disabled") + fi + + meson_src_configure +} |