2019-10-01 06:30:10 +00:00
|
|
|
# Copyright 1999-2019 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
inherit git-r3 savedconfig toolchain-funcs
|
|
|
|
|
2019-10-01 06:34:09 +00:00
|
|
|
DESCRIPTION="a status monitor for window managers use WM_NAME or stdin to fill the status bar"
|
|
|
|
HOMEPAGE="https://tools.suckless.org/slstatus/"
|
|
|
|
EGIT_REPO_URI="https://git.odrling.xyz/odrling/slstatus.git"
|
2019-10-01 06:30:10 +00:00
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS=""
|
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
x11-libs/libX11
|
|
|
|
"
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
virtual/pkgconfig
|
|
|
|
x11-base/xorg-proto
|
|
|
|
"
|
|
|
|
PATCHES=()
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
default
|
|
|
|
|
|
|
|
sed -i \
|
|
|
|
-e 's|^ @| |g' \
|
|
|
|
-e '/^ echo/d' \
|
|
|
|
Makefile || die
|
|
|
|
|
|
|
|
sed -i \
|
|
|
|
-e "s/ -Os / /" \
|
|
|
|
-e "/^\(LDFLAGS\|CFLAGS\|CPPFLAGS\)/{s| = | += |g;s|-s ||g}" \
|
|
|
|
config.mk || die
|
|
|
|
|
|
|
|
restore_config config.h
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
emake CC=$(tc-getCC) \
|
|
|
|
"X11INC=$( $(tc-getPKG_CONFIG) --cflags x11 2>/dev/null )" \
|
|
|
|
"X11LIB=$( $(tc-getPKG_CONFIG) --libs x11 kvm 2>/dev/null )"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
|
|
|
|
|
|
|
|
save_config config.h
|
|
|
|
}
|