dev-cpp/indicators: fix build

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2024-01-09 14:41:11 +05:00
parent 16c020127c
commit a78729f8ee
2 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
Fix "error: 'uint8_t' has not been declared"
--- a/include/indicators/termcolor.hpp
+++ b/include/indicators/termcolor.hpp
@@ -14,6 +14,7 @@
#include <iostream>
#include <cstdio>
+#include <cstdint>
// Detect target's platform and set some macros in order to wrap platform
// specific code this library depends on.

View File

@@ -0,0 +1,27 @@
# Copyright 2021-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Activity indicators for modern C++"
HOMEPAGE="https://github.com/p-ranav/indicators"
SRC_URI="https://github.com/p-ranav/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples"
PATCHES=( "${FILESDIR}"/${P}-include.patch )
QA_PKGCONFIG_VERSION="${PV}.0"
src_install() {
cmake_src_install
rm -r "${ED}"/usr/share/licenses || die
docompress -x /usr/share/doc/${PF}/samples
use examples && dodoc -r demo samples
}