public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Patrice Clement" <monsieurp@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/sway/
Date: Thu,  8 Nov 2018 22:12:46 +0000 (UTC)	[thread overview]
Message-ID: <1541715138.91396769767b5d2f56f3bc6cf53e1b78b0f7145c.monsieurp@gentoo> (raw)

commit:     91396769767b5d2f56f3bc6cf53e1b78b0f7145c
Author:     Niccolò Scatena <speedjack95 <AT> gmail <DOT> com>
AuthorDate: Mon Oct 22 15:45:17 2018 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Thu Nov  8 22:12:18 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91396769

dev-libs/sway: version bump to 1.0_beta1.

This commit adds the first Sway 1.0 beta release based on wlroots
(should be merged first). Release by upstream on Oct 21.

Closes: https://bugs.gentoo.org/669256
Signed-off-by: Niccolò Scatena <speedjack95 <AT> gmail.com>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Closes: https://github.com/gentoo/gentoo/pull/10201
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>

 dev-libs/sway/Manifest              |  1 +
 dev-libs/sway/metadata.xml          | 30 +++++++-----
 dev-libs/sway/sway-1.0_beta1.ebuild | 95 +++++++++++++++++++++++++++++++++++++
 3 files changed, 115 insertions(+), 11 deletions(-)

diff --git a/dev-libs/sway/Manifest b/dev-libs/sway/Manifest
index 499346e4411..f6de05a43d7 100644
--- a/dev-libs/sway/Manifest
+++ b/dev-libs/sway/Manifest
@@ -1 +1,2 @@
 DIST sway-0.15.2.tar.gz 5398956 BLAKE2B 6bb527e802b7837ef39cb1e29597d55fd33831231dbfb7f12225e50c38e49ae17d8bf2eb43672c195c6e074986d254b1680bac7c9d60b80b84feaf07e09718df SHA512 c457ace514f5c69ebd366d313cce93a76b199bb51c7540debc9c0586bff490401e6374f9725c784474afdfcca15bcab686a972c6c178117e45e2de83825ed370
+DIST sway-1.0_beta1.tar.gz 5444424 BLAKE2B b2803b6770ac3fbb3c21b892a208008e60780b6002e983e6d144d4f97e04992d3a3e5589abe36042221d67a107e31f5e76ae193cbf3e36c71fcf027095140944 SHA512 745b16be7641446c54e1b8777be1f8a26e8275f7826590f594bf4a2001a6de42e394b602e1ccd26a1e8ebe256fde6f9b393f5560a1dd0a610867819076645c69

diff --git a/dev-libs/sway/metadata.xml b/dev-libs/sway/metadata.xml
index a4e44bee20a..2533f9dd5ac 100644
--- a/dev-libs/sway/metadata.xml
+++ b/dev-libs/sway/metadata.xml
@@ -22,19 +22,27 @@
 		something else.
 	</longdescription>
 	<use>
-		<flag name="gdk-pixbuf">
-			Enable additional image format support via the
-			<pkg>x11-libs/gdk-pixbuf</pkg> library.
-		</flag>
-		<flag name="swaybar">Build 'swaybar': sway's status bar component.</flag>
-		<flag name="swaybg">Build 'swaybg': allows to set a desktop background image.</flag>
-		<flag name="swaygrab">Build 'swaygrab': allows taking screenshots or screencasts.</flag>
-		<flag name="swaylock">Build 'swaylock': sway's screen locker.</flag>
-		<flag name="swaymsg">Build 'swaymsg': tool for communicating with a running sway instance.</flag>
-		<flag name="wallpapers">Install sway's default wallpaper image.</flag>
-		<flag name="tray">Enable support for StatusNotifierItem tray specification.</flag>
+		<flag name="elogind">Enable support for rootless session via elogind</flag>
+		<flag name="filecaps">Use Linux capability SYS_CAP_ADMIN rather than set*id for sway binary</flag>
+		<flag name="fish-completion">Enable fish completion support</flag>
+		<flag name="gdk-pixbuf">Enable additional image format support via the <pkg>x11-libs/gdk-pixbuf</pkg> library</flag>
+		<flag name="swaybar">Install 'swaybar': sway's status bar component</flag>
+		<flag name="swaybg">Install 'swaybg': allows to set a desktop background image</flag>
+		<flag name="swaygrab">Install 'swaygrab': allows taking screenshots or screencasts</flag>
+		<flag name="swaylock">Install 'swaylock': sway's screen locker</flag>
+		<flag name="swaymsg">Install 'swaymsg': tool for communicating with a running sway instance</flag>
+		<flag name="tray">Enable support for StatusNotifierItem tray specification</flag>
+		<flag name="wallpapers">Install sway's default wallpaper image</flag>
+		<flag name="X">Enable support for X11 applications (XWayland)</flag>
 	</use>
 	<upstream>
 		<remote-id type="github">swaywm/sway</remote-id>
+		<maintainer status="active">
+			<email>sir@cmpwn.com</email>
+			<name>Drew DeVault</name>
+		</maintainer>
+		<bugs-to>https://github.com/swaywm/sway/issues</bugs-to>
+		<doc>https://github.com/swaywm/sway/wiki</doc>
+		<changelog>https://github.com/swaywm/sway/releases</changelog>
 	</upstream>
 </pkgmetadata>

diff --git a/dev-libs/sway/sway-1.0_beta1.ebuild b/dev-libs/sway/sway-1.0_beta1.ebuild
new file mode 100644
index 00000000000..76a39cb5232
--- /dev/null
+++ b/dev-libs/sway/sway-1.0_beta1.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+if [[ ${PV} == 9999 ]] ; then
+		EGIT_REPO_URI="https://github.com/swaywm/sway.git"
+		inherit git-r3
+else
+		# Version format: major.minor-beta.betanum
+		SWAY_PV="$(ver_cut 1-2)-$(ver_cut 3).$(ver_cut 4)"
+		SRC_URI="https://github.com/swaywm/sway/archive/${SWAY_PV}.tar.gz -> ${P}.tar.gz"
+		S="${WORKDIR}/sway-${SWAY_PV}"
+		KEYWORDS="~amd64 ~x86"
+fi
+
+inherit eutils fcaps meson pam
+
+DESCRIPTION="i3-compatible Wayland window manager"
+HOMEPAGE="https://swaywm.org"
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="elogind fish-completion +swaybar +swaybg +swaylock systemd +tray wallpapers X zsh-completion"
+REQUIRED_USE="?? ( elogind systemd )"
+
+RDEPEND="~dev-libs/wlroots-0.1[systemd=,elogind=,X=]
+	>=dev-libs/json-c-0.13:0=
+	>=dev-libs/libinput-1.6.0:0=
+	dev-libs/libpcre
+	dev-libs/wayland
+	>=dev-libs/wayland-protocols-1.14
+	x11-libs/cairo
+	x11-libs/libxkbcommon
+	x11-libs/pango
+	x11-libs/pixman
+	elogind? ( >=sys-auth/elogind-237 )
+	swaybar? ( x11-libs/gdk-pixbuf:2[jpeg] )
+	swaybg? ( x11-libs/gdk-pixbuf:2[jpeg] )
+	swaylock? (
+		virtual/pam
+		x11-libs/gdk-pixbuf:2[jpeg]
+	)
+	systemd? ( >=sys-apps/systemd-237 )
+	tray? ( >=sys-apps/dbus-1.10 )
+	X? ( x11-libs/libxcb:0=[xkb] )"
+DEPEND="${RDEPEND}"
+BDEPEND="app-text/scdoc
+	virtual/pkgconfig"
+
+FILECAPS=( cap_sys_admin usr/bin/sway )
+
+src_prepare() {
+	default
+
+	use swaybar || sed -e "s/subdir('swaybar')//g" -i meson.build || die
+	use swaybg || sed -e "s/subdir('swaybg')//g" -i meson.build || die
+	use swaylock || sed -e "s/subdir('swaylock')//g" -i meson.build || die
+}
+
+src_configure() {
+	local emesonargs=(
+		"-Dsway-version=${SWAY_PV}"
+		$(meson_use wallpapers default-wallpaper)
+		$(meson_use zsh-completion zsh-completions)
+		$(meson_use fish-completion fish-completions)
+		$(meson_use X enable-xwayland)
+		"-Dbash-completions=true"
+		"-Dwerror=false"
+	)
+
+	meson_src_configure
+}
+
+src_install() {
+	meson_src_install
+
+	use swaylock && newpamd swaylock/pam/swaylock.linux swaylock
+}
+
+pkg_postinst() {
+	elog "You must be in the input group to allow sway to access input devices!"
+	local dbus_cmd=""
+	if use tray ; then
+		elog ""
+		optfeature "experimental xembed tray icons support" kde-plasma/xembed-sni-proxy
+		dbus_cmd="dbus-launch --sh-syntax --exit-with-session "
+	fi
+	if ! use systemd && ! use elogind ; then
+		fcaps_pkg_postinst
+		elog ""
+		elog "If you use ConsoleKit2, remember to launch sway using:"
+		elog "exec ck-launch-session ${dbus_cmd}sway"
+	fi
+}


             reply	other threads:[~2018-11-08 22:12 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-08 22:12 Patrice Clement [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-02-22 22:54 [gentoo-commits] repo/gentoo:master commit in: dev-libs/sway/ Aaron Bauman
2019-02-19  0:21 Matthew Thode
2019-02-13  0:04 Aaron Bauman
2019-02-13  0:04 Aaron Bauman
2019-02-13  0:04 Aaron Bauman
2019-02-09  2:24 Matthew Thode
2019-02-09  2:23 Matthew Thode
2018-12-02  0:27 Aaron Bauman
2018-12-01 17:49 Aaron Bauman
2018-12-01 17:49 Aaron Bauman
2018-11-08 22:12 Patrice Clement
2018-11-08 22:12 Patrice Clement
2018-10-22 22:20 Andreas Sturmlechner
2018-05-05 21:47 Aaron Bauman
2018-05-05 21:47 Aaron Bauman
2018-05-05 21:47 Aaron Bauman
2018-01-13 22:17 David Seifert
2018-01-13 22:17 David Seifert
2017-12-19 21:45 Thomas Deutschmann
2017-11-12 18:01 Patrice Clement
2017-11-12 18:01 Patrice Clement
2017-11-12 18:01 Patrice Clement
2017-10-28  8:59 Patrice Clement
2017-10-16 10:06 Patrice Clement
2017-07-30 14:37 David Seifert
2017-07-30 14:37 David Seifert
2017-07-30 14:37 David Seifert
2017-05-11 18:29 Michał Górny
2017-04-08 15:00 David Seifert
2017-04-08 15:00 David Seifert
2017-03-28 19:18 Göktürk Yüksek
2017-03-16 19:13 David Seifert
2017-03-16 19:13 David Seifert
2017-01-26 23:06 David Seifert
2017-01-15 13:44 David Seifert
2017-01-03 23:08 Patrice Clement
2016-12-29 12:56 David Seifert
2016-12-28  0:18 Patrice Clement
2016-12-28  0:18 Patrice Clement
2016-12-28  0:18 Patrice Clement
2016-11-04 22:23 Patrice Clement
2016-11-04 22:23 Patrice Clement
2016-11-04 22:23 Patrice Clement
2016-08-25 17:51 Patrice Clement
2016-05-24  3:06 Ian Delaney
2016-05-15  9:44 Ian Delaney
2016-05-13  3:34 Ian Delaney

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=1541715138.91396769767b5d2f56f3bc6cf53e1b78b0f7145c.monsieurp@gentoo \
    --to=monsieurp@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