gui-wm/dwl - 0.8 (gentoo)

Search

Install

Install this version:

emerge -a =gui-wm/dwl-0.8

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =gui-wm/dwl-0.8

Or alternatively:

emerge --autounmask-write -a =gui-wm/dwl-0.8

Package Information

Description:
dwm for Wayland
Homepage:
https://codeberg.org/dwl/dwl
License:
CC0-1.0 GPL-3+ MIT

Ebuild Details

Version EAPI Keywords Slot
0.8 8 ~amd64 ~arm64 ~ppc64 ~x86 0
View Raw Ebuild
# Copyright 2022-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit savedconfig toolchain-funcs

if [[ ${PV} == 9999 ]]; then
	EGIT_REPO_URI="https://codeberg.org/dwl/dwl.git"
	inherit git-r3
else
	MY_PV="${PV/_rc/-rc}"
	MY_P="${PN}-v${MY_PV}"
	SRC_URI="https://codeberg.org/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
	S="${WORKDIR}/${PN}"
	KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
fi

DESCRIPTION="dwm for Wayland"
HOMEPAGE="https://codeberg.org/dwl/dwl"

LICENSE="CC0-1.0 GPL-3+ MIT"
SLOT="0"
IUSE="X"

if [[ ${PV} == 9999 && $EGIT_OVERRIDE_BRANCH_DWL_DWL == "wlroots-next" ]]
then
	COMMON_DEPEND="~gui-libs/wlroots-9999:=[libinput,session,X?]"
else
	COMMON_DEPEND="gui-libs/wlroots:0.19[libinput,session,X?]"
fi

COMMON_DEPEND+="
	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-1.32
	>=dev-util/wayland-scanner-1.23
	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
}

pkg_postinst() {
	if [[ ${PV} == 9999 && ${EGIT_OVERRIDE_BRANCH_DWL_DWL} != "wlroots-next" ]]
	then
		einfo "The live ebuild uses the main ${PN} branch with the latest wlroots release"
		einfo "Use EGIT_OVERRIDE_BRANCH_DWL_DWL to build the wlroots-next branch"
	fi
}

USE Flags

Manage flags for this package: euse -i <flag> -p gui-wm/dwl | euse -E <flag> -p gui-wm/dwl | euse -D <flag> -p gui-wm/dwl

Global/Standard Flags

X

Inherited Eclasses

Dependencies

DEPEND

	gui-libs/wlroots:0.19[libinput,session,X?] 
	dev-libs/libinput:=
	dev-libs/wayland
	x11-libs/libxkbcommon
	X? (
		x11-libs/libxcb:=
		x11-libs/xcb-util-wm
	)

	sys-kernel/linux-headers

RDEPEND

	gui-libs/wlroots:0.19[libinput,session,X?] 
	dev-libs/libinput:=
	dev-libs/wayland
	x11-libs/libxkbcommon
	X? (
		x11-libs/libxcb:=
		x11-libs/xcb-util-wm
	)

	X? (
		x11-base/xwayland
	)

BDEPEND

	>=dev-libs/wayland-protocols-1.32
	>=dev-util/wayland-scanner-1.23
	virtual/pkgconfig

Manifest for 0.8

Type File Size Source URLs
DIST dwl-v0.8.tar.gz 65818 bytes https://codeberg.org/dwl/dwl/archive/v0.8.tar.gz