Gentoo Archives: gentoo-commits

From: Haelwenn Monnier <contact@×××××××××.me>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-cpp/termcolor/
Date: Tue, 25 May 2021 23:08:09
Message-Id: 1621939369.46a004b1bc95f92ce2c306c5dc7ed8900960b9b2.lanodan@gentoo
1 commit: 46a004b1bc95f92ce2c306c5dc7ed8900960b9b2
2 Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
3 AuthorDate: Tue May 25 10:38:30 2021 +0000
4 Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
5 CommitDate: Tue May 25 10:42:49 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=46a004b1
7
8 dev-cpp/termcolor: New package.
9
10 Header-only library for printing colored messages to the terminal,
11 dependency for app-text/epubgrep.
12
13 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>
14
15 dev-cpp/termcolor/Manifest | 1 +
16 dev-cpp/termcolor/metadata.xml | 11 +++++++++++
17 dev-cpp/termcolor/termcolor-2.0.0.ebuild | 28 ++++++++++++++++++++++++++++
18 3 files changed, 40 insertions(+)
19
20 diff --git a/dev-cpp/termcolor/Manifest b/dev-cpp/termcolor/Manifest
21 new file mode 100644
22 index 000000000..49924bd31
23 --- /dev/null
24 +++ b/dev-cpp/termcolor/Manifest
25 @@ -0,0 +1 @@
26 +DIST termcolor-2.0.0.tar.gz 88582 BLAKE2B 3e7a4a99af3586fff103d0de0601e019881745e2921b4750dbf476439138a71120b6513a287c5fe26fd96a9c6115cb82295810d9bea11d0992f48fcd5d0a8d18 SHA512 72dead77fb9f3ff79432b1659b57c3d961a57b46305937acd0c221f5abb016f609dfaf7a9bf508bd7a073338ee604cf55f9915c8e8a76ddfaf6c68bc031e37f9
27
28 diff --git a/dev-cpp/termcolor/metadata.xml b/dev-cpp/termcolor/metadata.xml
29 new file mode 100644
30 index 000000000..6e2037282
31 --- /dev/null
32 +++ b/dev-cpp/termcolor/metadata.xml
33 @@ -0,0 +1,11 @@
34 +<?xml version="1.0" encoding="UTF-8"?>
35 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
36 +<pkgmetadata>
37 + <maintainer type="person">
38 + <email>gentoo@××××××××.de</email>
39 + <name>Ronny (tastytea) Gutbrod</name>
40 + </maintainer>
41 + <upstream>
42 + <bugs-to>https://github.com/ikalnytskyi/termcolor/issues</bugs-to>
43 + </upstream>
44 +</pkgmetadata>
45
46 diff --git a/dev-cpp/termcolor/termcolor-2.0.0.ebuild b/dev-cpp/termcolor/termcolor-2.0.0.ebuild
47 new file mode 100644
48 index 000000000..c8ec44777
49 --- /dev/null
50 +++ b/dev-cpp/termcolor/termcolor-2.0.0.ebuild
51 @@ -0,0 +1,28 @@
52 +# Copyright 2021 Gentoo Authors
53 +# Distributed under the terms of the GNU General Public License v2
54 +
55 +EAPI=7
56 +
57 +inherit cmake
58 +
59 +DESCRIPTION="Header-only library for printing colored messages to the terminal"
60 +HOMEPAGE="https://termcolor.readthedocs.io/"
61 +SRC_URI="https://github.com/ikalnytskyi/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
62 +
63 +LICENSE="BSD"
64 +SLOT="0"
65 +KEYWORDS="~amd64"
66 +IUSE="test"
67 +RESTRICT="!test? ( test )"
68 +
69 +src_configure() {
70 + local mycmakeargs=(
71 + "-DTERMCOLOR_TESTS=$(usex test)"
72 + )
73 +
74 + cmake_src_configure
75 +}
76 +
77 +src_test() {
78 + "${BUILD_DIR}"/test_termcolor || die
79 +}