summaryrefslogtreecommitdiff
path: root/gui-wm
diff options
context:
space:
mode:
Diffstat (limited to 'gui-wm')
-rw-r--r--gui-wm/dwl/dwl-9999.ebuild15
1 files changed, 7 insertions, 8 deletions
diff --git a/gui-wm/dwl/dwl-9999.ebuild b/gui-wm/dwl/dwl-9999.ebuild
index 9445eb2..b180ddb 100644
--- a/gui-wm/dwl/dwl-9999.ebuild
+++ b/gui-wm/dwl/dwl-9999.ebuild
@@ -132,6 +132,11 @@ BDEPEND="
virtual/pkgconfig
"
+MAKE_ARGS=(
+ PREFIX="${EPREFIX}/usr"
+ XWAYLAND="-DXWAYLAND"
+ XLIBS="xcb xcb-icccm"
+)
# The following src_configure function is implemented as default by portage, so
# you only need to call it if you need a different behaviour.
@@ -168,10 +173,7 @@ src_compile() {
# worked around.
tc-export CC PKG_CONFIG
- emake \
- XWAYLAND="-DXWAYLAND" \
- XLIBS="xcb xcb-icccm" \
- dwl
+ emake "${MAKE_ARGS[@]}" dwl
}
# The following src_install function is implemented as default by portage, so
@@ -201,10 +203,7 @@ src_install() {
# Again, verify the Makefiles! We don't want anything falling
# outside of ${D}.
- emake \
- DESTDIR="${D}" \
- PREFIX="${EPREFIX}/usr" \
- install
+ emake "${MAKE_ARGS[@]}" DESTDIR="${D}" install
dodoc CHANGELOG.md README.md
}