diff options
author | Niccolò Scatena <speedjack95@gmail.com> | 2019-02-11 20:09:46 +0100 |
---|---|---|
committer | Aaron Bauman <bman@gentoo.org> | 2019-02-12 19:04:18 -0500 |
commit | 8f79b3218cee58947760601f96d31bad1738cadb (patch) | |
tree | 0917b765ec8ccaf07d762fa72cef396679d7630d /dev-libs | |
parent | dev-libs/sway: various fixes (diff) | |
download | gentoo-8f79b3218cee58947760601f96d31bad1738cadb.tar.gz gentoo-8f79b3218cee58947760601f96d31bad1738cadb.tar.bz2 gentoo-8f79b3218cee58947760601f96d31bad1738cadb.zip |
dev-libs/sway: version bump to 1.0_rc2
Closes: https://bugs.gentoo.org/677774
Package-Manager: Portage-2.3.59, Repoman-2.3.12
Signed-off-by: Niccolò Scatena <speedjack95@gmail.com>
Signed-off-by: Aaron Bauman <bman@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/sway/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/sway/sway-1.0_rc2.ebuild | 109 |
2 files changed, 110 insertions, 0 deletions
diff --git a/dev-libs/sway/Manifest b/dev-libs/sway/Manifest index 8c229cddf4f3..d350b238f41d 100644 --- a/dev-libs/sway/Manifest +++ b/dev-libs/sway/Manifest @@ -2,3 +2,4 @@ DIST sway-0.15.2.tar.gz 5398956 BLAKE2B 6bb527e802b7837ef39cb1e29597d55fd3383123 DIST sway-1.0_beta1.tar.gz 5444424 BLAKE2B b2803b6770ac3fbb3c21b892a208008e60780b6002e983e6d144d4f97e04992d3a3e5589abe36042221d67a107e31f5e76ae193cbf3e36c71fcf027095140944 SHA512 745b16be7641446c54e1b8777be1f8a26e8275f7826590f594bf4a2001a6de42e394b602e1ccd26a1e8ebe256fde6f9b393f5560a1dd0a610867819076645c69 DIST sway-1.0_beta2.tar.gz 5454362 BLAKE2B 2cb7f3042a53879c962e7204917765b4a7a2e90f2a6a7eb6bbb63383e31d7526e71ad7ac4edd708c47a31f3166f70c1633719c9cddf5b751327da79b523d6780 SHA512 532acb6f1510578b7d9d222f04ff8104c836428ef215ddb6d7181839231d65101b3d47c8389a38f14cf59692116495b60759062ebd797edf83cf77aebaac379f DIST sway-1.0_rc1.tar.gz 5461910 BLAKE2B a9b3a14dfbb40a616b58fce896f0088dfc722e942129e12e7dae3f2121cb84ffcd565902ee49712275e01d6b6a344642d85d8cf394a35b151725dcc94d19b40d SHA512 6532bae679774fcdb1bcc3044740ff5c56f5f6a007a08e910f4d9ee43ac0488be7666a87106b493923432f975088c90ff47369fa1a01c5e1cb67d3a1f9b74bce +DIST sway-1.0_rc2.tar.gz 5462530 BLAKE2B 95868df3d03a61be33e04602d6891a2827cd1b5eab08644f74e04c3cbae39e686ee046be5ae9762595774fd22190e2460e246b564db92c50509ad61a16bb0835 SHA512 78c93f2326952d9e56ebf38f5d6b646934230b1bf5fac50cf35f16b2c1753ffa31dd9ec874a05025ed0d1d828b9a8643c78e739abbcfba55301255b3d0ed4a3e diff --git a/dev-libs/sway/sway-1.0_rc2.ebuild b/dev-libs/sway/sway-1.0_rc2.ebuild new file mode 100644 index 000000000000..f1d3935e2f12 --- /dev/null +++ b/dev-libs/sway/sway-1.0_rc2.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit eutils meson + +DESCRIPTION="i3-compatible Wayland window manager" +HOMEPAGE="https://swaywm.org" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/swaywm/${PN}.git" +else + MY_PV=${PV/_rc/-rc} + SRC_URI="https://github.com/swaywm/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" + S="${WORKDIR}/${PN}-${MY_PV}" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="elogind fish-completion +man +swaybar +swaybg +swayidle +swaylock +swaymsg +swaynag systemd tray wallpapers X zsh-completion" +REQUIRED_USE="?? ( elogind systemd ) + tray? ( || ( elogind systemd ) )" + +DEPEND=" + >=dev-libs/json-c-0.13:0= + >=dev-libs/libinput-1.6.0:0= + dev-libs/libpcre + dev-libs/wayland + x11-libs/cairo + x11-libs/libxkbcommon + x11-libs/pango + x11-libs/pixman + elogind? ( >=sys-auth/elogind-239 ) + swaybar? ( x11-libs/gdk-pixbuf:2 ) + swaybg? ( x11-libs/gdk-pixbuf:2 ) + swayidle? ( dev-libs/swayidle ) + swaylock? ( dev-libs/swaylock ) + systemd? ( >=sys-apps/systemd-239 ) + X? ( x11-libs/libxcb:0= ) +" +if [[ ${PV} == 9999 ]]; then + DEPEND+="~dev-libs/wlroots-9999[elogind=,systemd=,X=]" +else + DEPEND+=">=dev-libs/wlroots-0.3[elogind=,systemd=,X=]" +fi +RDEPEND=" + x11-misc/xkeyboard-config + ${DEPEND} +" +BDEPEND=" + >=dev-libs/wayland-protocols-1.14 + virtual/pkgconfig + man? ( >=app-text/scdoc-1.8.1 ) +" + +src_prepare() { + default + + use swaybar || sed -e "s/subdir('swaybar')//g" -e "/sway-bar.[0-9].scd/d" \ + -e "/completions\/[a-z]\+\/_\?swaybar/d" -i meson.build || die + use swaybg || sed -e "s/subdir('swaybg')//g" -i meson.build || die + use swaymsg || sed -e "s/subdir('swaymsg')//g" -e "/swaymsg.[0-9].scd/d" \ + -e "/completions\/[a-z]\+\/_\?swaymsg/d" -i meson.build || die + use swaynag || sed -e "s/subdir('swaynag')//g" -e "/swaynag.[0-9].scd/d" \ + -e "/completions\/[a-z]\+\/_\?swaynag/d" -i meson.build || die +} + +src_configure() { + local emesonargs=( + -Dman-pages=$(usex man enabled disabled) + -Dtray=$(usex tray enabled disabled) + -Dxwayland=$(usex X enabled disabled) + $(meson_use wallpapers default-wallpaper) + $(meson_use fish-completion fish-completions) + $(meson_use zsh-completion zsh-completions) + "-Dbash-completions=true" + "-Dwerror=false" + ) + + if use swaybar || use swaybg; then + emesonargs+=("-Dgdk-pixbuf=enabled") + else + emesonargs+=("-Dgdk-pixbuf=disabled") + fi + + meson_src_configure +} + +pkg_preinst() { + if ! use systemd && ! use elogind; then + fowners root:0 /usr/bin/sway + fperms 4511 /usr/bin/sway + fi +} + +pkg_postinst() { + if ! use systemd && ! use elogind; then + elog "" + elog "If you use ConsoleKit2, remember to launch sway using:" + elog "exec ck-launch-session sway" + elog "" + elog "If your system does not set the XDG_RUNTIME_DIR environment" + elog "variable, you must set it manually to run Sway. See wiki" + elog "for details: https://wiki.gentoo.org/wiki/Sway" + fi +} |