Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/termcolor/
Date: Tue, 17 May 2022 23:32:01
Message-Id: 1652830311.42d845c4b4db3e1aead5721ae2d857c8e0fb2ee2.sam@gentoo
1 commit: 42d845c4b4db3e1aead5721ae2d857c8e0fb2ee2
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 17 23:31:42 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue May 17 23:31:51 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42d845c4
7
8 dev-cpp/termcolor: add 2.1.0
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 dev-cpp/termcolor/Manifest | 1 +
13 dev-cpp/termcolor/termcolor-2.1.0.ebuild | 29 +++++++++++++++++++++++++++++
14 2 files changed, 30 insertions(+)
15
16 diff --git a/dev-cpp/termcolor/Manifest b/dev-cpp/termcolor/Manifest
17 index 49924bd31aaa..a52fc8290f29 100644
18 --- a/dev-cpp/termcolor/Manifest
19 +++ b/dev-cpp/termcolor/Manifest
20 @@ -1 +1,2 @@
21 DIST termcolor-2.0.0.tar.gz 88582 BLAKE2B 3e7a4a99af3586fff103d0de0601e019881745e2921b4750dbf476439138a71120b6513a287c5fe26fd96a9c6115cb82295810d9bea11d0992f48fcd5d0a8d18 SHA512 72dead77fb9f3ff79432b1659b57c3d961a57b46305937acd0c221f5abb016f609dfaf7a9bf508bd7a073338ee604cf55f9915c8e8a76ddfaf6c68bc031e37f9
22 +DIST termcolor-2.1.0.tar.gz 89041 BLAKE2B 1b3681dcd7dde394737bdc02e8a8ae10c61adfddbb1506e7254c27636a9045bc17ebe45801ecf813c3fc6b3a4bb3ea90bc6246e651105fab2e42b0807fa74339 SHA512 668853a93e1208a08a4ea9ac8db2d9c615cefd0325c35402b767e0b1bf373589507b8eb7685babd5801c1e4f2533db6f4eabfedde365737a4c7c069f00f536d8
23
24 diff --git a/dev-cpp/termcolor/termcolor-2.1.0.ebuild b/dev-cpp/termcolor/termcolor-2.1.0.ebuild
25 new file mode 100644
26 index 000000000000..62b3a7572734
27 --- /dev/null
28 +++ b/dev-cpp/termcolor/termcolor-2.1.0.ebuild
29 @@ -0,0 +1,29 @@
30 +# Copyright 2020-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit cmake
36 +
37 +DESCRIPTION="A header-only C++ library for printing colored messages to the terminal"
38 +HOMEPAGE="https://github.com/ikalnytskyi/termcolor https://termcolor.readthedocs.io"
39 +SRC_URI="https://github.com/ikalnytskyi/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
40 +
41 +LICENSE="BSD"
42 +SLOT="0"
43 +KEYWORDS="~amd64"
44 +IUSE="test"
45 +# It's just a visual test, nothing automated / no way to detect failure in an ebuild.
46 +RESTRICT="!test? ( test ) test"
47 +
48 +src_configure() {
49 + local mycmakeargs=(
50 + -DTERMCOLOR_TESTS=$(usex test)
51 + )
52 +
53 + cmake_src_configure
54 +}
55 +
56 +src_test() {
57 + "${BUILD_DIR}"/test_termcolor || die
58 +}