gui-apps/sfwbar: fix deps & use

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2023-03-26 20:18:51 +05:00
parent c193b15968
commit ea04a57aa5
3 changed files with 56 additions and 58 deletions

View File

@@ -1,13 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>harley@hosers.org</email>
<name>Lev Babiev</name>
</maintainer>
<upstream>
<remote-id type="github">LBCrion/sfwbar</remote-id>
<bugs-to>https://github.com/LBCrion/sfwbar/issues</bugs-to>
<changelog>https://github.com/LBCrion/sfwbar/releases</changelog>
</upstream>
<maintainer type="person">
<email>harley@hosers.org</email>
<name>Lev Babiev</name>
</maintainer>
<use>
<flag name="mpd">Add support for Music Player Daemon</flag>
</use>
<upstream>
<remote-id type="github">LBCrion/sfwbar</remote-id>
<bugs-to>https://github.com/LBCrion/sfwbar/issues</bugs-to>
<changelog>https://github.com/LBCrion/sfwbar/releases</changelog>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,44 @@
# Copyright 2020-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson xdg
DESCRIPTION="S* Floating Window Bar"
HOMEPAGE="https://github.com/LBCrion/sfwbar"
SRC_URI="https://github.com/LBCrion/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
LICENSE="GPL-3"
SLOT="0"
IUSE="X mpd pulseaudio"
COMMON_DEPEND="
dev-libs/glib:2
dev-libs/json-c:=
dev-libs/wayland
gui-libs/gtk-layer-shell
>=x11-libs/gtk+-3.22.0:3[introspection,wayland]
X? ( x11-libs/libxkbcommon )
mpd? ( media-libs/libmpdclient )
pulseaudio? ( media-libs/libpulse[glib] )
"
RDEPEND="${COMMON_DEPEND}
virtual/freedesktop-icon-theme
"
DEPEND="${COMMON_DEPEND}
>=dev-libs/wayland-protocols-1.17
"
BDEPEND="dev-util/wayland-scanner"
src_configure() {
local emesonargs=(
$(meson_feature mpd)
$(meson_feature pulseaudio pulse)
$(meson_feature X xkb)
-Dnetwork=enabled
)
meson_src_configure
}

View File

@@ -1,49 +0,0 @@
# Copyright 2020-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson xdg-utils
DESCRIPTION="S* Floating Window Bar"
HOMEPAGE="https://github.com/LBCrion/sfwbar"
SRC_URI="https://github.com/LBCrion/sfwbar/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
LICENSE="GPL-3"
SLOT="0"
IUSE="+mpd +pulse +net +xkb"
DEPEND="
mpd? ( media-libs/libmpdclient )
pulse? ( media-libs/libpulse )
xkb? ( x11-libs/libxkbcommon )
>=x11-libs/gtk+-3.22.0:3[introspection,wayland]
gui-libs/gtk-layer-shell
dev-libs/json-c
dev-util/wayland-scanner
virtual/freedesktop-icon-theme
>=dev-libs/wayland-protocols-1.17
"
RDEPEND="${DEPEND}"
BDEPEND="
virtual/pkgconfig
"
src_configure() {
local emesonargs=(
$(meson_feature mpd)
$(meson_feature pulse)
$(meson_feature net network)
)
meson_src_configure
}
pkg_postinst() {
xdg_icon_cache_update
}
pkg_postrm() {
xdg_icon_cache_update
}