Files
guru/gui-wm/dwl/dwl-9999.ebuild
Leonardo Hernández Hernández 358edb8213 gui-wm/dwl: fix libxcb dependency
also don't include LICENSE* into DOCS

Signed-off-by: Leonardo Hernández Hernández <leohdz172@outlook.com>
2022-09-08 21:52:03 -05:00

56 lines
894 B
Bash

# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit savedconfig git-r3
DESCRIPTION="dwm for Wayland"
HOMEPAGE="https://github.com/djpohly/dwl"
EGIT_REPO_URI="https://github.com/djpohly/dwl"
LICENSE="CC0-1.0 GPL-3 MIT"
SLOT="0"
KEYWORDS=""
IUSE="X"
RDEPEND="
dev-libs/libinput
dev-libs/wayland
x11-libs/libxkbcommon
gui-libs/wlroots:0/15[X(-)?]
X? ( x11-libs/libxcb )
"
DEPEND="${RDEPEND}"
BDEPEND="
dev-libs/wayland-protocols
dev-util/wayland-scanner
virtual/pkgconfig
"
src_prepare() {
restore_config config.h
default
}
src_configure() {
sed -i "s/\/local//" config.mk || die
if use X; then
sed -i \
-e "s/^#XWAYLAND/XWAYLAND/" \
-e "s/^#XLIBS/XLIBS/" \
config.mk || die
fi
}
src_install() {
default
insinto /usr/share/wayland-sessions
doins "${FILESDIR}"/dwl.desktop
save_config config.h
}