summaryrefslogtreecommitdiff
path: root/gui-apps/slstatus/slstatus-9999.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'gui-apps/slstatus/slstatus-9999.ebuild')
-rw-r--r--gui-apps/slstatus/slstatus-9999.ebuild25
1 files changed, 11 insertions, 14 deletions
diff --git a/gui-apps/slstatus/slstatus-9999.ebuild b/gui-apps/slstatus/slstatus-9999.ebuild
index 13104ba..3856f3e 100644
--- a/gui-apps/slstatus/slstatus-9999.ebuild
+++ b/gui-apps/slstatus/slstatus-9999.ebuild
@@ -21,7 +21,7 @@ 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 savedconfig toolchain-funcs git-r3
+inherit toolchain-funcs git-r3
# official gentoo dwl ebuilds:
# https://codeberg.org/gentoo/gentoo/src/branch/master/gui-wm/dwl
@@ -79,7 +79,7 @@ SLOT="0"
# exists for. If the package was for an x86 binary package, then
# KEYWORDS would be set like this: KEYWORDS="-* x86"
# Do not use KEYWORDS="*"; this is not valid in an ebuild context.
-KEYWORDS="~amd64"
+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".
@@ -103,14 +103,15 @@ RDEPEND="x11-libs/libX11"
# 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="${RDEPEND}"
# 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=""
+BDEPEND="virtual/pkgconfig"
+MAKE_ARGS=(
+ PREFIX="${EPREFIX}/usr"
+)
# The following src_configure function is implemented as default by portage, so
# you only need to call it if you need a different behaviour.
@@ -133,11 +134,7 @@ src_configure() {
# Note the use of --infodir and --mandir, above. This is to make
# this package FHS 2.2-compliant. For more information, see
# https://wiki.linuxfoundation.org/lsb/fhs
- if [[ -f "${EROOT}/etc/portage/savedconfig/${CATEGORY}/${PF}" ]]; then
- restore_config config.h
- else
- cp config.def.h config.h
- fi
+ default
}
# The following src_compile function is implemented as default by portage, so
@@ -151,8 +148,8 @@ src_compile() {
# visual clue to others that the makefiles have bugs that have been
# worked around.
- tc-export CC
- emake
+ tc-export CC PKG_CONFIG
+ emake "${MAKE_ARGS[@]}"
}
# The following src_install function is implemented as default by portage, so
@@ -182,7 +179,7 @@ src_install() {
# Again, verify the Makefiles! We don't want anything falling
# outside of ${D}.
- emake PREFIX="${ED}/usr" install
+ emake "${MAKE_ARGS[@]}" DESTDIR="${D}" install
- save_config config.h
+ dodoc README
}