From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B6F95158086 for ; Tue, 28 Dec 2021 14:51:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A94C22BC013; Tue, 28 Dec 2021 14:51:28 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0CAD42BC013 for ; Tue, 28 Dec 2021 14:51:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C815E342FDD for ; Tue, 28 Dec 2021 14:51:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D37541BD for ; Tue, 28 Dec 2021 14:51:24 +0000 (UTC) From: "Georgy Yakovlev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" Message-ID: <1640702866.7e16982e4fdc7a725f945b21a524ccafb7a26ced.gyakovlev@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/tty-clock/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/tty-clock/Manifest app-misc/tty-clock/metadata.xml app-misc/tty-clock/tty-clock-2.3.ebuild X-VCS-Directories: app-misc/tty-clock/ X-VCS-Committer: gyakovlev X-VCS-Committer-Name: Georgy Yakovlev X-VCS-Revision: 7e16982e4fdc7a725f945b21a524ccafb7a26ced X-VCS-Branch: master Date: Tue, 28 Dec 2021 14:51:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ba82f675-3722-4f26-995a-f4b105c7c3c4 X-Archives-Hash: d27b48d6d3c7c6e9a7291cc7bf4f23e3 commit: 7e16982e4fdc7a725f945b21a524ccafb7a26ced Author: Georgy Yakovlev gentoo org> AuthorDate: Tue Dec 28 14:41:24 2021 +0000 Commit: Georgy Yakovlev gentoo org> CommitDate: Tue Dec 28 14:47:46 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e16982e app-misc/tty-clock: initial import Signed-off-by: Georgy Yakovlev gentoo.org> app-misc/tty-clock/Manifest | 1 + app-misc/tty-clock/metadata.xml | 8 ++++++++ app-misc/tty-clock/tty-clock-2.3.ebuild | 31 +++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+) diff --git a/app-misc/tty-clock/Manifest b/app-misc/tty-clock/Manifest new file mode 100644 index 000000000000..6bfeefe284aa --- /dev/null +++ b/app-misc/tty-clock/Manifest @@ -0,0 +1 @@ +DIST tty-clock-2.3.tar.gz 7764 BLAKE2B 16e764c6321407ba1a4545de6f7aeb5b1b1f3e0d94d2e05ef9a95a20bc178b11962518a946aa292f35be0a293d12e3739353d2da80358e86d4bf9c29983a81d6 SHA512 ff3cfd5c6312377128b33c7e8c2138627b996d1b17730d8a8fdf55e95f2020e591e69317459aab8383d178f3cb71af046b84eeb81cabfa9b09a27008c5f4b626 diff --git a/app-misc/tty-clock/metadata.xml b/app-misc/tty-clock/metadata.xml new file mode 100644 index 000000000000..2f82d0bb8eb7 --- /dev/null +++ b/app-misc/tty-clock/metadata.xml @@ -0,0 +1,8 @@ + + + + + gyakovlev@gentoo.org + Georgy Yakovlev + + diff --git a/app-misc/tty-clock/tty-clock-2.3.ebuild b/app-misc/tty-clock/tty-clock-2.3.ebuild new file mode 100644 index 000000000000..4118f7d9021e --- /dev/null +++ b/app-misc/tty-clock/tty-clock-2.3.ebuild @@ -0,0 +1,31 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Displays a simple digital clock on the terminal" +HOMEPAGE="https://github.com/xorg62/tty-clock" +SRC_URI="https://github.com/xorg62/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc64" + +DEPEND="sys-libs/ncurses:=[unicode(+)]" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +src_compile() { + # makefile does something with ncurses-config and calls old version + # let's just build it manually + $(tc-getCC) -Wall ${CFLAGS} ${PN//-/}.c \ + $($(tc-getPKG_CONFIG) --libs ncursesw) \ + -o ${PN} ${LDFLAGS} || die "Failed to build ${PN}" +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install + einstalldocs +}