public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-i18n/libime/files/, app-i18n/libime/
@ 2024-08-15 20:35 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2024-08-15 20:35 UTC (permalink / raw
  To: gentoo-commits

commit:     ddcfaf999c852cd1b7ef4a68379d9e7615a1cfaf
Author:     Yongxiang Liang <tanekliang <AT> gmail <DOT> com>
AuthorDate: Thu Aug 15 05:58:02 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Aug 15 20:34:49 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ddcfaf99

app-i18n/libime: fix missing cstdint for GCC 15

Closes: https://bugs.gentoo.org/937738
Signed-off-by: Yongxiang Liang <tanekliang <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/38157
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../libime-1.1.8-include-cstdint-for-gcc-15.patch  | 12 +++++
 app-i18n/libime/libime-1.1.8-r1.ebuild             | 54 ++++++++++++++++++++++
 2 files changed, 66 insertions(+)

diff --git a/app-i18n/libime/files/libime-1.1.8-include-cstdint-for-gcc-15.patch b/app-i18n/libime/files/libime-1.1.8-include-cstdint-for-gcc-15.patch
new file mode 100644
index 000000000000..46221b19c5fc
--- /dev/null
+++ b/app-i18n/libime/files/libime-1.1.8-include-cstdint-for-gcc-15.patch
@@ -0,0 +1,12 @@
+https://github.com/fcitx/libime/pull/78
+
+--- a/src/libime/table/autophrasedict.h
++++ b/src/libime/table/autophrasedict.h
+@@ -8,6 +8,7 @@
+ 
+ #include "libimetable_export.h"
+ #include <cstddef>
++#include <cstdint>
+ #include <fcitx-utils/macros.h>
+ #include <functional>
+ #include <istream>

diff --git a/app-i18n/libime/libime-1.1.8-r1.ebuild b/app-i18n/libime/libime-1.1.8-r1.ebuild
new file mode 100644
index 000000000000..2b77704e6cb8
--- /dev/null
+++ b/app-i18n/libime/libime-1.1.8-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 2023-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake unpacker
+
+DESCRIPTION="Fcitx5 Next generation of fcitx "
+HOMEPAGE="https://fcitx-im.org/"
+SRC_URI="https://download.fcitx-im.org/fcitx5/libime/libime-${PV}_dict.tar.zst"
+
+LICENSE="LGPL-2+"
+SLOT="5"
+KEYWORDS="~amd64 ~arm64 ~loong ~riscv ~x86"
+IUSE="+data doc test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	>=app-i18n/fcitx-5.1.5:5
+	app-arch/zstd:=
+	dev-libs/boost:=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+	kde-frameworks/extra-cmake-modules:0
+	virtual/pkgconfig
+	doc? (
+		app-text/doxygen
+		dev-texlive/texlive-fontutils
+	)
+"
+
+PATCHES=(
+	"${FILESDIR}/${P}-include-cstdint-for-gcc-15.patch"
+)
+
+src_configure() {
+	local mycmakeargs=(
+		-DENABLE_DATA=$(usex data)
+		-DENABLE_DOC=$(usex doc)
+		-DENABLE_TEST=$(usex test)
+	)
+	cmake_src_configure
+}
+
+src_compile() {
+	cmake_src_compile
+	use doc && cmake_src_compile doc
+}
+
+src_install() {
+	cmake_src_install
+	use doc && dodoc -r "${BUILD_DIR}"/doc/*
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-08-15 20:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-15 20:35 [gentoo-commits] repo/gentoo:master commit in: app-i18n/libime/files/, app-i18n/libime/ Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox