You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 line
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. EGIT_REPO_URI="https://github.com/Alexays/Waybar.git"
  5. EGIT_BRANCH="master"
  6. if [[ ${PV} = 9999* ]]; then
  7. GIT_ECLASS="git-r3"
  8. fi
  9. inherit eutils meson $GIT_ECLASS
  10. DESCRIPTION="Highly customizable Wayland Polybar like bar for Sway and Wlroots based compositors."
  11. HOMEPAGE="https://github.com/Alexays/Waybar"
  12. if [[ $PV = 9999* ]]; then
  13. SRC_URI=""
  14. else
  15. SRC_URI="https://github.com/Alexays/Waybar/archive/${PV}.tar.gz"
  16. KEYWORDS="~x86 ~amd64"
  17. fi
  18. LICENSE="MIT"
  19. SLOT="0"
  20. KEYWORDS=""
  21. IUSE="dbusmenu-gtk network pulseaudio"
  22. RDEPEND="dev-libs/wayland
  23. dev-libs/wlroots
  24. dev-cpp/gtkmm:3.0
  25. dbusmenu-gtk? (
  26. dev-libs/libdbusmenu[gtk3]
  27. dev-libs/glib
  28. )
  29. dev-libs/jsoncpp
  30. dev-libs/libsigc++
  31. network? ( dev-libs/libnl )
  32. pulseaudio? ( media-sound/pulseaudio )
  33. "
  34. DEPEND="${RDEPEND}
  35. >=dev-util/meson-0.47
  36. dev-util/ninja"
  37. src_configure() {
  38. local emesonargs=(
  39. -Dlibnl=$(usex network enabled disabled)
  40. -Dpulseaudio=$(usex pulseaudio enabled disabled)
  41. -Ddbusmenu-gtk=$(usex dbusmenu-gtk enabled disabled)
  42. )
  43. meson_src_configure
  44. }