commit: 539dce8c73ed254b0312ec0ab33e8545c2927b9a Author: Eli Burch <eli.burch <AT> burchbytes <DOT> com> AuthorDate: Sun Jul 21 20:47:41 2024 +0000 Commit: Eli Burch <redawl <AT> burchbytes <DOT> com> CommitDate: Sun Jul 21 20:50:00 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=539dce8c
x11-misc/slstatus: new package, add 1.0 Signed-off-by: Eli Burch <eli.burch <AT> burchbytes.com> x11-misc/slstatus/Manifest | 1 + x11-misc/slstatus/metadata.xml | 8 ++++++ x11-misc/slstatus/slstatus-1.0.ebuild | 48 +++++++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+) diff --git a/x11-misc/slstatus/Manifest b/x11-misc/slstatus/Manifest new file mode 100644 index 000000000..2ff2b4699 --- /dev/null +++ b/x11-misc/slstatus/Manifest @@ -0,0 +1 @@ +DIST slstatus-1.0.tar.gz 17400 BLAKE2B 812576b0f9f338d39b38011e8e14e4f19dcffa0076631c2f72f8b0f40fe7646dac8d3400b7009528506374ea6695ae1a1f2c41f7ff8aa8d807ffdc118bcaab19 SHA512 026be4a6808e5e4c57720fe77018c8880d3da0422fb88d39ddd752dc64eb9c2602368948ac1fd752585d136da7bcd790d7368186ba39e05a822c274ca3d12b1b diff --git a/x11-misc/slstatus/metadata.xml b/x11-misc/slstatus/metadata.xml new file mode 100644 index 000000000..51a228631 --- /dev/null +++ b/x11-misc/slstatus/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>eli.bu...@burchbytes.com</email> + <name>Eli Burch</name> + </maintainer> +</pkgmetadata> diff --git a/x11-misc/slstatus/slstatus-1.0.ebuild b/x11-misc/slstatus/slstatus-1.0.ebuild new file mode 100644 index 000000000..d03f76338 --- /dev/null +++ b/x11-misc/slstatus/slstatus-1.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs savedconfig + +DESCRIPTION="Status monitor for window managers that use WM_NAME/stdin to fill the status bar" +HOMEPAGE="https://tools.suckless.org/slstatus/" +SRC_URI="https://dl.suckless.org/tools/${P}.tar.gz" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="savedconfig" + +RDEPEND=" + x11-libs/libX11 +" +DEPEND=" + ${RDEPEND} + x11-base/xorg-proto +" + +src_prepare(){ + default + + sed -i \ + -e "s/ -Os / /" \ + -e "/^\(LDFLAGS\|CFLAGS\|CPPFLAGS\)/{s| = | += |g;s|-s ||g}" \ + -e "/^X11LIB/{s:/usr/X11R6/lib:/usr/$(get_libdir)/X11:}" \ + -e '/^X11INC/{s:/usr/X11R6/include:/usr/include/X11:}' \ + config.mk || die + + restore_config config.def.h +} + +src_compile(){ + emake CC="$(tc-getCC)" +} + +src_install(){ + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install + einstalldocs + + save_config config.def.h +}