100 lines
2.1 KiB
Bash
100 lines
2.1 KiB
Bash
# Copyright 2022-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# Based on https://data.gpo.zugaina.org/gentoo/gui-wm/dwl/dwl-9999.ebuild
|
|
|
|
EAPI=8
|
|
|
|
DESCRIPTION="dwm for Wayland"
|
|
HOMEPAGE="https://gitea.sravanbalaji.com/sravan/dwl"
|
|
|
|
EGIT_REPO_URI="https://gitea.sravanbalaji.com/sravan/dwl.git"
|
|
EGIT_BRANCH="main"
|
|
EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}"
|
|
EGIT_SUBMODULES=( '*' )
|
|
|
|
LICENSE="CC0-1.0 GPL-3+ MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
IUSE="X"
|
|
|
|
S="${WORKDIR}/${PN}"
|
|
|
|
inherit git-r3 toolchain-funcs
|
|
|
|
COMMON_DEPEND="
|
|
gui-libs/wlroots:=[libinput,session,X?]
|
|
dev-libs/libinput:=
|
|
dev-libs/wayland
|
|
x11-libs/libxkbcommon
|
|
X? (
|
|
x11-libs/libxcb:=
|
|
x11-libs/xcb-util-wm
|
|
)
|
|
"
|
|
RDEPEND="
|
|
${COMMON_DEPEND}
|
|
X? (
|
|
x11-base/xwayland
|
|
x11-apps/xlsclients
|
|
)
|
|
app-misc/winit-wayland-session
|
|
gui-apps/waybar:=[network,tray]
|
|
app-misc/swhkd
|
|
app-misc/brightnessctl
|
|
dev-qt/qtwayland
|
|
gui-apps/qt6ct
|
|
app-misc/nwg-look
|
|
gui-apps/wlr-randr
|
|
gui-apps/wdisplays
|
|
gui-apps/shikane
|
|
x11-misc/gammastep
|
|
gui-apps/wev
|
|
gui-apps/rofi-wayland:=[drun,windowmode]
|
|
app-misc/cliphist
|
|
x11-misc/dunst:=[wayland]
|
|
gui-apps/foot
|
|
sys-apps/xdg-desktop-portal:=[geolocation]
|
|
gui-libs/xdg-desktop-portal-wlr
|
|
gui-apps/swayidle
|
|
gui-apps/swaylock-effects:=[fish-completion]
|
|
gui-apps/swappy
|
|
gui-apps/grim:=[jpeg]
|
|
gui-apps/slurp
|
|
gui-apps/swaybg:=[gdk-pixbuf]
|
|
gui-apps/azote
|
|
app-shells/fish
|
|
app-shells/starship
|
|
app-shells/krabby-bin
|
|
media-fonts/nerd-fonts
|
|
sys-process/btop
|
|
sys-apps/qdirstat
|
|
sys-apps/gnome-disk-utility
|
|
media-sound/playerctl
|
|
media-sound/pavucontrol:=[X?]
|
|
sys-auth/polkit
|
|
gnome-extra/polkit-gnome
|
|
app-misc/fastfetch:=[wayland,X?]
|
|
net-wireless/blueman
|
|
app-misc/openrgb
|
|
"
|
|
# uses <linux/input-event-codes.h>
|
|
DEPEND="
|
|
${COMMON_DEPEND}
|
|
sys-kernel/linux-headers
|
|
"
|
|
BDEPEND="
|
|
dev-libs/wayland-protocols
|
|
dev-util/wayland-scanner
|
|
virtual/pkgconfig
|
|
"
|
|
|
|
src_compile() {
|
|
emake PKG_CONFIG="$(tc-getPKG_CONFIG)" CC="$(tc-getCC)" \
|
|
XWAYLAND="$(usev X -DXWAYLAND)" XLIBS="$(usev X "xcb xcb-icccm")" dwl
|
|
}
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
|
|
dodoc CHANGELOG.md README.md
|
|
}
|