mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-23 14:03:33 -04:00
gui-wm/dwl: savedconfig and use flag for Xwayland
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -3,18 +3,49 @@
|
|||||||
|
|
||||||
EAPI=7
|
EAPI=7
|
||||||
|
|
||||||
|
inherit flag-o-matic savedconfig toolchain-funcs
|
||||||
|
|
||||||
DESCRIPTION="dwm for Wayland"
|
DESCRIPTION="dwm for Wayland"
|
||||||
HOMEPAGE="https://github.com/djpohly/dwl"
|
HOMEPAGE="https://github.com/djpohly/dwl"
|
||||||
SRC_URI="https://github.com/djpohly/dwl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
SRC_URI="https://github.com/djpohly/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
LICENSE="CC0-1.0 GPL-3 MIT"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="X"
|
||||||
|
|
||||||
DEPEND="gui-libs/wlroots
|
RDEPEND="
|
||||||
dev-libs/wayland-protocols"
|
dev-libs/libinput
|
||||||
RDEPEND="${DEPEND}"
|
dev-libs/wayland
|
||||||
|
gui-libs/wlroots[X(-)?]
|
||||||
|
x11-libs/libxcb
|
||||||
|
x11-libs/libxkbcommon
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
BDEPEND="
|
||||||
|
dev-libs/wayland-protocols
|
||||||
|
dev-util/wayland-scanner
|
||||||
|
virtual/pkgconfig
|
||||||
|
"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
restore_config config.h
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
use X && append-cppflags -DXWAYLAND
|
||||||
|
tc-export CC
|
||||||
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
emake PREFIX="${D}"/usr install
|
emake PREFIX="${ED}/usr" install
|
||||||
|
|
||||||
|
insinto /usr/share/wayland-sessions
|
||||||
|
doins "${FILESDIR}"/dwl.desktop
|
||||||
|
|
||||||
|
einstalldocs
|
||||||
|
|
||||||
|
save_config config.h
|
||||||
}
|
}
|
||||||
|
|||||||
7
gui-wm/dwl/files/dwl.desktop
Normal file
7
gui-wm/dwl/files/dwl.desktop
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=dwl
|
||||||
|
Comment=dwm for Wayland
|
||||||
|
Exec=/usr/bin/dwl
|
||||||
|
TryExec=dwl
|
||||||
|
Icon=
|
||||||
|
Type=Application
|
||||||
Reference in New Issue
Block a user