diff options
Diffstat (limited to 'app-misc/ttyload/ttyload-0.5.3-r1.ebuild')
-rw-r--r-- | app-misc/ttyload/ttyload-0.5.3-r1.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/app-misc/ttyload/ttyload-0.5.3-r1.ebuild b/app-misc/ttyload/ttyload-0.5.3-r1.ebuild new file mode 100644 index 000000000000..5a031a28898f --- /dev/null +++ b/app-misc/ttyload/ttyload-0.5.3-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="color-coded graph of load averages over time" +HOMEPAGE="https://www.daveltd.com/src/util/ttyload https://github.com/lindes/ttyload" +SRC_URI="https://www.daveltd.com/src/util/${PN}/${P}.tar.bz2" + +KEYWORDS="~amd64 ~x86" +LICENSE="ISC" +SLOT="0" + +DEPEND="sys-libs/ncurses:0=" + +RESTRICT="test" + +DOCS=( BUGS HISTORY LICENSE README.md TODO ) + +src_prepare() { + default + + eapply "${FILESDIR}/ttyload-0.5.3-fix-sigabrt-in-strcpy.patch" + + sed -i '10i#include <time.h>' "${PN}.h" || die + + sed -e "s#make#$\(MAKE\)#" \ + -e "s#^CFLAGS.*#CFLAGS=\$(INCLUDES) ${CFLAGS} \$(VERSION)#" \ + -i Makefile || die +} + +src_compile() { + emake CC=$(tc-getCC) LDFLAGS="${LDFLAGS}" +} + +src_install() { + dobin "${PN}" + doman "${PN}.1" + einstalldocs +} |