public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/swayidle/
@ 2019-02-13  0:04 Aaron Bauman
  0 siblings, 0 replies; 3+ messages in thread
From: Aaron Bauman @ 2019-02-13  0:04 UTC (permalink / raw
  To: gentoo-commits

commit:     292a46f7194591dd12f57c0f956b45f60cbb110b
Author:     Niccolò Scatena <speedjack95 <AT> gmail <DOT> com>
AuthorDate: Sat Feb  9 16:31:31 2019 +0000
Commit:     Aaron Bauman <bman <AT> gentoo <DOT> org>
CommitDate: Wed Feb 13 00:04:17 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=292a46f7

dev-libs/swayidle: various fixes

 - Use ${PN} wherever possible;

 - Fix use flag order in IUSE;

 - Remove bash-completion use flag: bash completions should be always
   installed (see [1]);

 - Rename use flag: doc -> man (doc is a global use flag used to install
   additional documentation that most users does not want);

 - Fix order of (R)DEPEND;

 - Move scdoc and wayland-protocols deps to BDEPEND (required only when
   building);

 - Fix dependecy blocks: an user may install sway-1.0_beta2 with the
   swayidle use flag disabled and then install the swayidle package;

 - Add -Dwerror=false to meson args.

In metadata.xml:

 - Add upstream infos;

 - Break longdescription at 80 chars for better readability;

 - Add myself as maintainer.

[1] www.gentoo.org/support/news-items/2014-11-25-bash-completion-2_1-r90.html

Package-Manager: Portage-2.3.59, Repoman-2.3.12
Signed-off-by: Niccolò Scatena <speedjack95 <AT> gmail.com>
Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>

 dev-libs/swayidle/metadata.xml        | 17 +++++++++++++-
 dev-libs/swayidle/swayidle-1.2.ebuild | 44 +++++++++++++++++++++++------------
 2 files changed, 45 insertions(+), 16 deletions(-)

diff --git a/dev-libs/swayidle/metadata.xml b/dev-libs/swayidle/metadata.xml
index b8a1df1de5c..880f87d424e 100644
--- a/dev-libs/swayidle/metadata.xml
+++ b/dev-libs/swayidle/metadata.xml
@@ -5,11 +5,26 @@
 		<email>prometheanfire@gentoo.org</email>
 		<name>Matthew Thode</name>
 	</maintainer>
+	<maintainer type="person">
+		<email>speedjack95@gmail.com</email>
+		<name>Niccolò Scatena</name>
+	</maintainer>
 	<longdescription lang="en">
-		Sway's idle management daemon, compatible with any Wayland compositor which implements the KDE idle protocol.
+		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>
+		<flag name="man">Build and install man pages</flag>
 	</use>
+	<upstream>
+		<remote-id type="github">swaywm/swayidle</remote-id>
+		<maintainer status="active">
+			<email>sir@cmpwn.com</email>
+			<name>Drew DeVault</name>
+		</maintainer>
+		<bugs-to>https://github.com/swaywm/swayidle/issues</bugs-to>
+		<changelog>https://github.com/swaywm/swayidle/releases</changelog>
+	</upstream>
 </pkgmetadata>

diff --git a/dev-libs/swayidle/swayidle-1.2.ebuild b/dev-libs/swayidle/swayidle-1.2.ebuild
index e7c0885af58..774758c9815 100644
--- a/dev-libs/swayidle/swayidle-1.2.ebuild
+++ b/dev-libs/swayidle/swayidle-1.2.ebuild
@@ -7,33 +7,47 @@ 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"
+
+if [[ ${PV} == 9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/swaywm/${PN}.git"
+else
+	SRC_URI="https://github.com/swaywm/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~x86"
+fi
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="systemd elogind zsh-completion bash-completion fish-completion +doc"
+IUSE="elogind fish-completion +man systemd zsh-completion"
 REQUIRED_USE="?? ( elogind systemd )"
 
-RDEPEND="dev-libs/wayland
-	elogind? ( >=sys-auth/elogind-237 )
-	systemd? ( >=sys-apps/systemd-237 )
+DEPEND="
+	dev-libs/wayland
+	elogind? ( >=sys-auth/elogind-237[policykit] )
+	systemd? ( >=sys-apps/systemd-237[policykit] )
+"
+RDEPEND="
+	${DEPEND}
+	!<=dev-libs/sway-1.0_beta1
+	!~dev-libs/sway-1.0_beta2[swayidle]
 "
-DEPEND="${RDEPEND}
+BDEPEND="
 	>=dev-libs/wayland-protocols-1.14
-	doc? ( app-text/scdoc )
-	!<dev-libs/sway-1.0_rc1
+	virtual/pkgconfig
+	man? ( app-text/scdoc )
 "
+
 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)
+		-Dman-pages=$(usex man enabled disabled)
+		$(meson_use fish-completion fish-completions)
+		$(meson_use zsh-completion zsh-completions)
+		"-Dbash-completions=true"
+		"-Dwerror=false"
 	)
-	if use systemd ; then
+	if use systemd; then
 		emesonargs+=("-Dlogind=enabled" "-Dlogind-provider=systemd")
-	elif use elogind ; then
+	elif use elogind; then
 		emesonargs+=("-Dlogind=enabled" "-Dlogind-provider=elogind")
 	else
 		emesonargs+=("-Dlogind=disabled")


^ permalink raw reply related	[flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/swayidle/
@ 2019-02-13  0:04 Aaron Bauman
  0 siblings, 0 replies; 3+ messages in thread
From: Aaron Bauman @ 2019-02-13  0:04 UTC (permalink / raw
  To: gentoo-commits

commit:     39e359ccdec4a27c54e53271d6561bd885de7d1e
Author:     Niccolò Scatena <speedjack95 <AT> gmail <DOT> com>
AuthorDate: Sat Feb  9 16:32:49 2019 +0000
Commit:     Aaron Bauman <bman <AT> gentoo <DOT> org>
CommitDate: Wed Feb 13 00:04:17 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39e359cc

dev-libs/swayidle: Add 9999 live version

Package-Manager: Portage-2.3.59, Repoman-2.3.12
Signed-off-by: Niccolò Scatena <speedjack95 <AT> gmail.com>
Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>

 dev-libs/swayidle/swayidle-9999.ebuild | 57 ++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

diff --git a/dev-libs/swayidle/swayidle-9999.ebuild b/dev-libs/swayidle/swayidle-9999.ebuild
new file mode 100644
index 00000000000..774758c9815
--- /dev/null
+++ b/dev-libs/swayidle/swayidle-9999.ebuild
@@ -0,0 +1,57 @@
+# 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"
+
+if [[ ${PV} == 9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/swaywm/${PN}.git"
+else
+	SRC_URI="https://github.com/swaywm/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="elogind fish-completion +man systemd zsh-completion"
+REQUIRED_USE="?? ( elogind systemd )"
+
+DEPEND="
+	dev-libs/wayland
+	elogind? ( >=sys-auth/elogind-237[policykit] )
+	systemd? ( >=sys-apps/systemd-237[policykit] )
+"
+RDEPEND="
+	${DEPEND}
+	!<=dev-libs/sway-1.0_beta1
+	!~dev-libs/sway-1.0_beta2[swayidle]
+"
+BDEPEND="
+	>=dev-libs/wayland-protocols-1.14
+	virtual/pkgconfig
+	man? ( app-text/scdoc )
+"
+
+src_configure() {
+	local emesonargs=(
+		-Dman-pages=$(usex man enabled disabled)
+		$(meson_use fish-completion fish-completions)
+		$(meson_use zsh-completion zsh-completions)
+		"-Dbash-completions=true"
+		"-Dwerror=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
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/swayidle/
@ 2019-02-09  2:23 Matthew Thode
  0 siblings, 0 replies; 3+ messages in thread
From: Matthew Thode @ 2019-02-09  2:23 UTC (permalink / raw
  To: gentoo-commits

commit:     aacf6db4dee0bc95433c6c69d1d49592843d91da
Author:     Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  9 01:06:31 2019 +0000
Commit:     Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
CommitDate: Sat Feb  9 02:22:53 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aacf6db4

dev-libs/swayidle: initial add

Package-Manager: Portage-2.3.51, Repoman-2.3.12
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>

 dev-libs/swayidle/Manifest            |  1 +
 dev-libs/swayidle/metadata.xml        | 15 ++++++++++++
 dev-libs/swayidle/swayidle-1.2.ebuild | 43 +++++++++++++++++++++++++++++++++++
 3 files changed, 59 insertions(+)

diff --git a/dev-libs/swayidle/Manifest b/dev-libs/swayidle/Manifest
new file mode 100644
index 00000000000..cbd8e77cc47
--- /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 00000000000..b8a1df1de5c
--- /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 00000000000..e7c0885af58
--- /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
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-02-13  0:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-13  0:04 [gentoo-commits] repo/gentoo:master commit in: dev-libs/swayidle/ Aaron Bauman
  -- strict thread matches above, loose matches on Subject: below --
2019-02-13  0:04 Aaron Bauman
2019-02-09  2:23 Matthew Thode

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox