diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-01-04 01:27:12 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-01-04 01:27:12 +0000 |
commit | 3517852e3b8a68d1e997770fc0650c5053bafc6c (patch) | |
tree | 44068672445b1418489aed82de58df3c470289e7 /app-misc/tty-clock | |
parent | 0f15659d48c193027158492acb726297501202c5 (diff) |
gentoo resync : 04.01.2022
Diffstat (limited to 'app-misc/tty-clock')
-rw-r--r-- | app-misc/tty-clock/Manifest | 3 | ||||
-rw-r--r-- | app-misc/tty-clock/metadata.xml | 12 | ||||
-rw-r--r-- | app-misc/tty-clock/tty-clock-2.3.ebuild | 31 |
3 files changed, 46 insertions, 0 deletions
diff --git a/app-misc/tty-clock/Manifest b/app-misc/tty-clock/Manifest new file mode 100644 index 000000000000..8845adda61e1 --- /dev/null +++ b/app-misc/tty-clock/Manifest @@ -0,0 +1,3 @@ +DIST tty-clock-2.3.tar.gz 7764 BLAKE2B 16e764c6321407ba1a4545de6f7aeb5b1b1f3e0d94d2e05ef9a95a20bc178b11962518a946aa292f35be0a293d12e3739353d2da80358e86d4bf9c29983a81d6 SHA512 ff3cfd5c6312377128b33c7e8c2138627b996d1b17730d8a8fdf55e95f2020e591e69317459aab8383d178f3cb71af046b84eeb81cabfa9b09a27008c5f4b626 +EBUILD tty-clock-2.3.ebuild 815 BLAKE2B 50b570f75652e4155e2583d86c86cab25adee8c53f2fdf5fcc46c322f98eef508419913708d5b9c6671b80961a7655143cfeb51fb93e7537f1b1c638f8a2a0e6 SHA512 101a9f0e9a145eba6549643e01c0c4e9c42fba2ed9af8292ba8c9032d7fa819248c933333eef6bf2cc0bda507cdb9b918889aa5ea0c3faa0fe63f21c5f3dc30a +MISC metadata.xml 397 BLAKE2B dd4f4373146118d21274cc8e25e9e4ba51c4ea161635e4e73af2e80117022841439d2ade6d59f73e4abc34f6cbac27fcafe2f8067549f1b1bdd324fa12882881 SHA512 816707d2f7ae1ebf9315e84bb1271e1eeccdd8dc80f059993eefb37dd079106ea33b9ae00ba3fff48de5d9eac9b302dc39a88fa4102f8246a7e14fe2bf202fb3 diff --git a/app-misc/tty-clock/metadata.xml b/app-misc/tty-clock/metadata.xml new file mode 100644 index 000000000000..c4519674f74f --- /dev/null +++ b/app-misc/tty-clock/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>gyakovlev@gentoo.org</email> + <name>Georgy Yakovlev</name> + </maintainer> + <upstream> + <bugs-to>https://github.com/xorg62/tty-clock/issues</bugs-to> + <remote-id type="github">xorg62/tty-clock</remote-id> + </upstream> +</pkgmetadata> 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 +} |