summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui-wm/dwl/dwl-9999.ebuild (renamed from gui-wm/dwl/dwl.ebuild)37
1 files changed, 32 insertions, 5 deletions
diff --git a/gui-wm/dwl/dwl.ebuild b/gui-wm/dwl/dwl-9999.ebuild
index 4cc2c49..d317ec0 100644
--- a/gui-wm/dwl/dwl.ebuild
+++ b/gui-wm/dwl/dwl-9999.ebuild
@@ -21,7 +21,10 @@ EAPI=8
#
# Eclasses tend to list descriptions of how to use their functions properly.
# Take a look at the eclass/ directory for more examples.
-inherit git-r3 cmake
+inherit savedconfig toolchain-funcs git-r3
+
+# official gentoo dwl ebuilds:
+# https://codeberg.org/gentoo/gentoo/src/branch/master/gui-wm/dwl
# Short one-line description of this package.
DESCRIPTION="Fork of dwl, the minimal wayland window manager"
@@ -80,12 +83,23 @@ KEYWORDS=""
# Comprehensive list of any and all USE flags leveraged in the ebuild,
# with some exceptions, e.g., ARCH specific flags like "amd64" or "ppc".
# Not needed if the ebuild doesn't use any USE flags.
-IUSE=""
+IUSE="X"
# A space delimited list of portage features to restrict. man 5 ebuild
# for details. Usually not needed.
#RESTRICT="strip"
+COMMON_DEPEND="
+ >=gui-libs/wlroots-0.18:=[libinput,session,X?]
+ <gui-libs/wlroots-0.19:=
+ dev-libs/libinput:=
+ dev-libs/wayland
+ x11-libs/libxkbcommon
+ X? (
+ x11-libs/libxcb:=
+ x11-libs/xcb-util-wm
+ )
+"
# Run-time dependencies. Must be defined to whatever this depends on to run.
# Example:
@@ -95,18 +109,31 @@ IUSE=""
# had installed on your system when you tested the package. Then
# other users hopefully won't be caught without the right version of
# a dependency.
-RDEPEND="dev-libs/libinput dev-libs/wayland gui-libs/wlroot x11-base/xwayland x11-libs/libxcb x11-libs/libxkbcommon x11-libs/xcb-util-wm"
+RDEPEND="
+ ${COMMON_DEPEND}
+ X? (
+ x11-base/xwayland
+ )
+"
# Build-time dependencies that need to be binary compatible with the system
# being built (CHOST). These include libraries that we link against.
# The below is valid if the same run-time depends are required to compile.
#DEPEND="${RDEPEND}"
-DEPEND="dev-libs/libinput dev-libs/wayland gui-libs/wlroot sys-kernel/linux-headers x11-libs/libxcb x11-libs/libxkbcommon x11-libs/xcb-util-wm"
+DEPEND="
+ ${COMMON_DEPEND}
+ sys-kernel/linux-headers
+"
# Build-time dependencies that are executed during the emerge process, and
# only need to be present in the native build system (CBUILD). Example:
#BDEPEND="virtual/pkgconfig"
-BDEPEND="dev-libs/wayland-protocols dev-util/wayland-scanner dev-vcs/git virtual/pkgconfig"
+BDEPEND="
+ >=dev-libs/wayland-protocols-1.32
+ >=dev-util/wayland-scanner-1.23
+ dev-vcs/git
+ virtual/pkgconfig
+"
# The following src_configure function is implemented as default by portage, so