summaryrefslogtreecommitdiff
path: root/gui-wm/dwl/dwl-9999.ebuild
diff options
context:
space:
mode:
authorChris Sobczak <chris@sobczak.family>2026-06-24 23:20:06 -0700
committerChris Sobczak <chris@sobczak.family>2026-06-24 23:20:06 -0700
commitffe8f5efe139c04cedc1fdb1509cab1ee322ee25 (patch)
tree8307e11f630a831a6f601690e0aa4171f9a1772a /gui-wm/dwl/dwl-9999.ebuild
parentffd4bd9f84fd8df528298a5bc4169f941f9ce291 (diff)
Add src functions
Diffstat (limited to 'gui-wm/dwl/dwl-9999.ebuild')
-rw-r--r--gui-wm/dwl/dwl-9999.ebuild22
1 files changed, 17 insertions, 5 deletions
diff --git a/gui-wm/dwl/dwl-9999.ebuild b/gui-wm/dwl/dwl-9999.ebuild
index d317ec0..7cd7497 100644
--- a/gui-wm/dwl/dwl-9999.ebuild
+++ b/gui-wm/dwl/dwl-9999.ebuild
@@ -136,6 +136,13 @@ BDEPEND="
"
+src_prepare() {
+ restore_config config.h
+
+ default
+}
+
+
# The following src_configure function is implemented as default by portage, so
# you only need to call it if you need a different behaviour.
#src_configure() {
@@ -161,7 +168,7 @@ BDEPEND="
# The following src_compile function is implemented as default by portage, so
# you only need to call it, if you need different behaviour.
-#src_compile() {
+src_compile() {
# emake is a script that calls the standard GNU make with parallel
# building options for speedier builds (especially on SMP systems).
# Try emake first. It might not work for some packages, because
@@ -170,12 +177,12 @@ BDEPEND="
# visual clue to others that the makefiles have bugs that have been
# worked around.
- #emake
-#}
+ emake PKG_CONFIG="$(tc-getPKG_CONFIG)" CC="$(tc-getCC)" XWAYLAND="$(usev X -DXWAYLAND)" XLIBS="$(usev X "xcb xcb-icccm")" dwl
+}
# The following src_install function is implemented as default by portage, so
# you only need to call it, if you need different behaviour.
-#src_install() {
+src_install() {
# You must *personally verify* that this trick doesn't install
# anything outside of DESTDIR; do this by reading and
# understanding the install part of the Makefiles.
@@ -199,4 +206,9 @@ BDEPEND="
# install
# Again, verify the Makefiles! We don't want anything falling
# outside of ${D}.
-#}
+
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
+ dodoc CHANGELOG.md README.md
+
+ save_config config.h
+}