|
|
@@ -0,0 +1,56 @@ |
|
|
|
# Copyright 1999-2018 Gentoo Foundation |
|
|
|
# Distributed under the terms of the GNU General Public License v2 |
|
|
|
|
|
|
|
EAPI=6 |
|
|
|
|
|
|
|
EGIT_REPO_URI="https://github.com/Alexays/Waybar.git" |
|
|
|
EGIT_BRANCH="master" |
|
|
|
|
|
|
|
if [[ ${PV} = 9999* ]]; then |
|
|
|
GIT_ECLASS="git-r3" |
|
|
|
fi |
|
|
|
|
|
|
|
inherit eutils meson $GIT_ECLASS |
|
|
|
|
|
|
|
DESCRIPTION="Highly customizable Wayland Polybar like bar for Sway and Wlroots based compositors." |
|
|
|
HOMEPAGE="https://github.com/Alexays/Waybar" |
|
|
|
|
|
|
|
if [[ $PV = 9999* ]]; then |
|
|
|
SRC_URI="" |
|
|
|
else |
|
|
|
SRC_URI="https://github.com/Alexays/Waybar/archive/${PV}.tar.gz -> ${P}.tar.gz" |
|
|
|
KEYWORDS="~amd64 ~x86" |
|
|
|
fi |
|
|
|
|
|
|
|
LICENSE="MIT" |
|
|
|
SLOT="0" |
|
|
|
IUSE="dbusmenu-gtk network pulseaudio udev" |
|
|
|
|
|
|
|
RDEPEND="dev-libs/wayland |
|
|
|
dev-cpp/gtkmm:3.0 |
|
|
|
dbusmenu-gtk? ( |
|
|
|
dev-libs/libdbusmenu[gtk3] |
|
|
|
dev-libs/glib |
|
|
|
) |
|
|
|
dev-libs/jsoncpp |
|
|
|
dev-libs/libsigc++ |
|
|
|
>=dev-libs/libfmt-5.3.0 |
|
|
|
network? ( dev-libs/libnl ) |
|
|
|
pulseaudio? ( media-sound/pulseaudio ) |
|
|
|
udev? ( virtual/udev )" |
|
|
|
|
|
|
|
DEPEND="${RDEPEND} |
|
|
|
>=dev-util/meson-0.47 |
|
|
|
dev-util/ninja |
|
|
|
>=dev-util/gdbus-codegen-2.56 |
|
|
|
>=sys-devel/gcc-8.0" |
|
|
|
|
|
|
|
src_configure() { |
|
|
|
local emesonargs=( |
|
|
|
-Dlibnl=$(usex network enabled disabled) |
|
|
|
-Dpulseaudio=$(usex pulseaudio enabled disabled) |
|
|
|
-Ddbusmenu-gtk=$(usex dbusmenu-gtk enabled disabled) |
|
|
|
-Dlibudev=$(usex udev enabled disabled) |
|
|
|
) |
|
|
|
meson_src_configure |
|
|
|
} |