Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/ttyload/
Date: Wed, 26 Jul 2017 21:07:59
Message-Id: 1501103273.21516363acf4b6bd91d34bec182b78ca467cd5d8.monsieurp@gentoo
1 commit: 21516363acf4b6bd91d34bec182b78ca467cd5d8
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 26 21:06:56 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 26 21:07:53 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21516363
7
8 app-misc/ttyload: new package.
9
10 ttyload is an utility to display color-coded graph of load averages over time.
11
12 shell-tools will co-maintain this ebuild with me.
13
14 Gentoo-Bug: https://bugs.gentoo.org/355503
15
16 Package-Manager: Portage-2.3.6, Repoman-2.3.1
17
18 app-misc/ttyload/Manifest | 1 +
19 app-misc/ttyload/metadata.xml | 12 ++++++++++++
20 app-misc/ttyload/ttyload-0.5.3.ebuild | 36 +++++++++++++++++++++++++++++++++++
21 3 files changed, 49 insertions(+)
22
23 diff --git a/app-misc/ttyload/Manifest b/app-misc/ttyload/Manifest
24 new file mode 100644
25 index 00000000000..26f237a74b6
26 --- /dev/null
27 +++ b/app-misc/ttyload/Manifest
28 @@ -0,0 +1 @@
29 +DIST ttyload-0.5.3.tar.bz2 15039 SHA256 7d3147b22530e6de865279aaad8b9e0348575379413ed1a2d410257baf92d783 SHA512 1affc171fd569d4127d7a51dda5764272e554a96db6ad4418ff6120f9b0e573679b33d45797adcb667216d167e9f3ee41349a53d4f7808b3b1c5bed76e3f4bbb WHIRLPOOL 469011ee2acc6e785ecbbe957a6ebe6e88e0d97cee9b3872d663a7ed907768167aaf2c8113d853de905db84ec96a03c6798926013a7aed76f9ebd70807b0c500
30
31 diff --git a/app-misc/ttyload/metadata.xml b/app-misc/ttyload/metadata.xml
32 new file mode 100644
33 index 00000000000..94248608af4
34 --- /dev/null
35 +++ b/app-misc/ttyload/metadata.xml
36 @@ -0,0 +1,12 @@
37 +<?xml version="1.0" encoding="UTF-8"?>
38 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
39 +<pkgmetadata>
40 + <maintainer type="person">
41 + <email>monsieurp@g.o</email>
42 + <name>Patrice Clement</name>
43 + </maintainer>
44 + <maintainer type="project">
45 + <email>shell-tools@g.o</email>
46 + <name>Gentoo Shell Tools Project</name>
47 + </maintainer>
48 +</pkgmetadata>
49
50 diff --git a/app-misc/ttyload/ttyload-0.5.3.ebuild b/app-misc/ttyload/ttyload-0.5.3.ebuild
51 new file mode 100644
52 index 00000000000..0ef762b0121
53 --- /dev/null
54 +++ b/app-misc/ttyload/ttyload-0.5.3.ebuild
55 @@ -0,0 +1,36 @@
56 +# Copyright 1999-2017 Gentoo Foundation
57 +# Distributed under the terms of the GNU General Public License v2
58 +
59 +EAPI=6
60 +
61 +inherit toolchain-funcs
62 +
63 +DESCRIPTION="color-coded graph of load averages over time"
64 +HOMEPAGE="http://www.daveltd.com/src/util/ttyload https://github.com/lindes/ttyload"
65 +SRC_URI="http://www.daveltd.com/src/util/${PN}/${P}.tar.bz2"
66 +
67 +KEYWORDS="~amd64 ~x86"
68 +LICENSE="ISC"
69 +SLOT="0"
70 +
71 +DEPEND="sys-libs/ncurses:0="
72 +
73 +RESTRICT="test"
74 +
75 +DOCS=( BUGS HISTORY LICENSE README.md TODO )
76 +
77 +src_prepare() {
78 + default
79 + sed -i '10i#include <time.h>' "${PN}.h" || die
80 + sed -i -e "s#make#$\(MAKE\)#" Makefile || die
81 +}
82 +
83 +src_compile() {
84 + emake CC=$(tc-getCC)
85 +}
86 +
87 +src_install() {
88 + dobin "${PN}"
89 + doman "${PN}.1"
90 + einstalldocs
91 +}