diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2017-07-26 23:06:56 +0200 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2017-07-26 23:07:53 +0200 |
commit | 21516363acf4b6bd91d34bec182b78ca467cd5d8 (patch) | |
tree | 06861ee719107c476b25952f6a68afd3b498dd06 /app-misc/ttyload/ttyload-0.5.3.ebuild | |
parent | app-admin/entr: clean up old. (diff) | |
download | gentoo-21516363acf4b6bd91d34bec182b78ca467cd5d8.tar.gz gentoo-21516363acf4b6bd91d34bec182b78ca467cd5d8.tar.bz2 gentoo-21516363acf4b6bd91d34bec182b78ca467cd5d8.zip |
app-misc/ttyload: new package.
ttyload is an utility to display color-coded graph of load averages over time.
shell-tools will co-maintain this ebuild with me.
Gentoo-Bug: https://bugs.gentoo.org/355503
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'app-misc/ttyload/ttyload-0.5.3.ebuild')
-rw-r--r-- | app-misc/ttyload/ttyload-0.5.3.ebuild | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/app-misc/ttyload/ttyload-0.5.3.ebuild b/app-misc/ttyload/ttyload-0.5.3.ebuild new file mode 100644 index 000000000000..0ef762b01215 --- /dev/null +++ b/app-misc/ttyload/ttyload-0.5.3.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="color-coded graph of load averages over time" +HOMEPAGE="http://www.daveltd.com/src/util/ttyload https://github.com/lindes/ttyload" +SRC_URI="http://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 + sed -i '10i#include <time.h>' "${PN}.h" || die + sed -i -e "s#make#$\(MAKE\)#" Makefile || die +} + +src_compile() { + emake CC=$(tc-getCC) +} + +src_install() { + dobin "${PN}" + doman "${PN}.1" + einstalldocs +} |