logo

overlay

My (experimental) gentoo overlay

waybar-0.7.1.ebuild (1162B)


      1 # Copyright 1999-2019 Gentoo Authors
      2 # Distributed under the terms of the GNU General Public License v2
      3 
      4 EAPI=7
      5 
      6 inherit meson
      7 
      8 DESCRIPTION="Highly customizable Wayland bar for Sway and Wlroots based compositors."
      9 HOMEPAGE="https://github.com/Alexays/Waybar"
     10 
     11 if [[ ${PV} == 9999 ]]; then
     12 	inherit git-r3
     13 	EGIT_REPO_URI="https://github.com/Alexays/Waybar.git"
     14 else
     15 	SRC_URI="https://github.com/Alexays/Waybar/archive/${PV}.tar.gz -> ${P}.tar.gz"
     16 	KEYWORDS="~amd64"
     17 fi
     18 
     19 LICENSE="MIT"
     20 SLOT="0"
     21 IUSE="mpd network pulseaudio tray udev"
     22 S="$WORKDIR/Waybar-$PV"
     23 
     24 DEPEND="
     25 	dev-libs/libinput:=
     26 	>=dev-libs/libfmt-5.3.0:=
     27 	>=dev-libs/spdlog-1.3.1:=
     28 	dev-libs/wayland:=
     29 	dev-cpp/gtkmm:3.0=
     30 	tray? (
     31 		dev-libs/libdbusmenu:=[gtk3]
     32 		dev-libs/glib:=
     33 	)
     34 	dev-libs/jsoncpp:=
     35 	dev-libs/libsigc++:2=
     36 	network? ( dev-libs/libnl:3= )
     37 	pulseaudio? ( media-sound/pulseaudio:= )
     38 	udev? ( virtual/udev )
     39 	mpd? ( media-libs/libmpdclient:= )
     40 "
     41 RDEPEND="${DEPEND}"
     42 
     43 src_configure() {
     44 	local emesonargs=(
     45 		$(meson_feature network libnl)
     46 		$(meson_feature udev libudev)
     47 		$(meson_feature pulseaudio)
     48 		$(meson_feature tray dbusmenu-gtk)
     49 		$(meson_feature mpd)
     50 	)
     51 
     52 	meson_src_configure
     53 }