You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-misc/ttyload/ttyload-0.5.3.ebuild

37 lines
715 B

# 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
}