Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/tty-clock/
Date: Tue, 28 Dec 2021 14:51:29
Message-Id: 1640702866.7e16982e4fdc7a725f945b21a524ccafb7a26ced.gyakovlev@gentoo
1 commit: 7e16982e4fdc7a725f945b21a524ccafb7a26ced
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 28 14:41:24 2021 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 28 14:47:46 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e16982e
7
8 app-misc/tty-clock: initial import
9
10 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
11
12 app-misc/tty-clock/Manifest | 1 +
13 app-misc/tty-clock/metadata.xml | 8 ++++++++
14 app-misc/tty-clock/tty-clock-2.3.ebuild | 31 +++++++++++++++++++++++++++++++
15 3 files changed, 40 insertions(+)
16
17 diff --git a/app-misc/tty-clock/Manifest b/app-misc/tty-clock/Manifest
18 new file mode 100644
19 index 000000000000..6bfeefe284aa
20 --- /dev/null
21 +++ b/app-misc/tty-clock/Manifest
22 @@ -0,0 +1 @@
23 +DIST tty-clock-2.3.tar.gz 7764 BLAKE2B 16e764c6321407ba1a4545de6f7aeb5b1b1f3e0d94d2e05ef9a95a20bc178b11962518a946aa292f35be0a293d12e3739353d2da80358e86d4bf9c29983a81d6 SHA512 ff3cfd5c6312377128b33c7e8c2138627b996d1b17730d8a8fdf55e95f2020e591e69317459aab8383d178f3cb71af046b84eeb81cabfa9b09a27008c5f4b626
24
25 diff --git a/app-misc/tty-clock/metadata.xml b/app-misc/tty-clock/metadata.xml
26 new file mode 100644
27 index 000000000000..2f82d0bb8eb7
28 --- /dev/null
29 +++ b/app-misc/tty-clock/metadata.xml
30 @@ -0,0 +1,8 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
33 +<pkgmetadata>
34 + <maintainer type="person">
35 + <email>gyakovlev@g.o</email>
36 + <name>Georgy Yakovlev</name>
37 + </maintainer>
38 +</pkgmetadata>
39
40 diff --git a/app-misc/tty-clock/tty-clock-2.3.ebuild b/app-misc/tty-clock/tty-clock-2.3.ebuild
41 new file mode 100644
42 index 000000000000..4118f7d9021e
43 --- /dev/null
44 +++ b/app-misc/tty-clock/tty-clock-2.3.ebuild
45 @@ -0,0 +1,31 @@
46 +# Copyright 2021 Gentoo Authors
47 +# Distributed under the terms of the GNU General Public License v2
48 +
49 +EAPI=8
50 +
51 +inherit toolchain-funcs
52 +
53 +DESCRIPTION="Displays a simple digital clock on the terminal"
54 +HOMEPAGE="https://github.com/xorg62/tty-clock"
55 +SRC_URI="https://github.com/xorg62/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
56 +
57 +LICENSE="BSD"
58 +SLOT="0"
59 +KEYWORDS="~amd64 ~ppc64"
60 +
61 +DEPEND="sys-libs/ncurses:=[unicode(+)]"
62 +RDEPEND="${DEPEND}"
63 +BDEPEND="virtual/pkgconfig"
64 +
65 +src_compile() {
66 + # makefile does something with ncurses-config and calls old version
67 + # let's just build it manually
68 + $(tc-getCC) -Wall ${CFLAGS} ${PN//-/}.c \
69 + $($(tc-getPKG_CONFIG) --libs ncursesw) \
70 + -o ${PN} ${LDFLAGS} || die "Failed to build ${PN}"
71 +}
72 +
73 +src_install() {
74 + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
75 + einstalldocs
76 +}