Initial attempt at dwl package for personal fork
This commit is contained in:
67
gui-wm/dwl/dwl-9999.ebuild
Normal file
67
gui-wm/dwl/dwl-9999.ebuild
Normal file
@@ -0,0 +1,67 @@
|
||||
# Copyright 2022-2024 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 savedconfig 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
|
||||
)
|
||||
"
|
||||
# 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_prepare() {
|
||||
restore_config config.h
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
save_config config.h
|
||||
}
|
Reference in New Issue
Block a user