您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

55 行
1.1 KiB

  1. # Copyright 1999-2018 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit git-r3 eutils meson
  5. DESCRIPTION="i3-compatible Wayland window manager"
  6. HOMEPAGE="http://swaywm.org/"
  7. EGIT_REPO_URI="https://github.com/swaywm/sway.git"
  8. EGIT_BRANCH="master"
  9. LICENSE="MIT"
  10. SLOT="0"
  11. KEYWORDS=""
  12. IUSE="xwayland bash-completion zsh-completion fish-completion systemd elogind"
  13. REQUIRED_USE="systemd? ( !elogind ) elogind? ( !systemd )"
  14. RDEPEND="dev-libs/wlroots[libcap,x11-backend]
  15. dev-libs/libpcre2
  16. >=dev-libs/json-c-0.13
  17. x11-libs/pango
  18. x11-libs/cairo
  19. x11-libs/gdk-pixbuf
  20. virtual/pam
  21. sys-apps/dbus
  22. xwayland? ( dev-libs/wlroots[xwayland] )
  23. systemd? ( dev-libs/wlroots[systemd] )
  24. elogind? ( dev-libs/wlroots[elogind] )"
  25. DEPEND="${RDEPEND}
  26. >=dev-util/meson-0.47
  27. dev-util/ninja
  28. app-text/scdoc"
  29. src_configure() {
  30. local emesonargs=(
  31. $(meson_use bash-completion)
  32. $(meson_use zsh-completion)
  33. $(meson_use fish-completion)
  34. -Denable-xwayland=$(usex xwayland true false)
  35. -Ddefault-wallpaper=true
  36. )
  37. meson_src_configure
  38. }
  39. src_install() {
  40. meson_src_install
  41. use !systemd && use !elogind && fperms u+s /usr/bin/sway
  42. }