app-i18n/opencc: fix for gcc-15

Closes: https://bugs.gentoo.org/937629
Signed-off-by: Yongxiang Liang <tanekliang@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/38499
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Yongxiang Liang
2024-09-07 21:20:36 +08:00
committed by Sam James
parent 40ec8378df
commit 233b77e82c
3 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
https://github.com/BYVoid/OpenCC/pull/894
Fix missing cstdint for GCC 15
--- a/src/SerializedValues.cpp
+++ b/src/SerializedValues.cpp
@@ -17,6 +17,7 @@
*/
#include <cassert>
+#include <cstdint>
#include <cstring>
#include "Lexicon.hpp"

View File

@@ -47,6 +47,10 @@ BDEPEND="${PYTHON_DEPS}
DOCS=( AUTHORS NEWS.md README.md )
PATCHES=(
"${FILESDIR}/${P}-fix-missing-cstdint-for-gcc-15.patch"
)
pkg_setup() {
use python && python-single-r1_pkg_setup
}

View File

@@ -34,6 +34,10 @@ BDEPEND="${PYTHON_DEPS}
DOCS=( AUTHORS NEWS.md README.md )
PATCHES=(
"${FILESDIR}/${P}-fix-missing-cstdint-for-gcc-15.patch"
)
src_prepare() {
rm -r deps || die