summaryrefslogtreecommitdiff
path: root/app-i18n/kakasi
diff options
context:
space:
mode:
Diffstat (limited to 'app-i18n/kakasi')
-rw-r--r--app-i18n/kakasi/Manifest3
-rw-r--r--app-i18n/kakasi/files/kakasi-2.3.6-configure-clang16.patch19
-rw-r--r--app-i18n/kakasi/kakasi-2.3.6-r1.ebuild (renamed from app-i18n/kakasi/kakasi-2.3.6.ebuild)15
3 files changed, 35 insertions, 2 deletions
diff --git a/app-i18n/kakasi/Manifest b/app-i18n/kakasi/Manifest
index 55ecfcfc37ef..cafc72835191 100644
--- a/app-i18n/kakasi/Manifest
+++ b/app-i18n/kakasi/Manifest
@@ -1,3 +1,4 @@
+AUX kakasi-2.3.6-configure-clang16.patch 723 BLAKE2B c5310769baea3c1d1fbc73dc1bf114f7c63cee1b298732b7e676dfc77125d505ede063ff143dd3fa0fc2a13c8cf95d763ef4ad233bc11ae81096319ff4d4aeda SHA512 6aae0f94b19b68d940b09917261a6b9df934f4ee7f4ea66e99284ce9b1afbee92fe888911cfd182bd2f40ab06a9f528ff07e4f5da3796265950fda7138b08115
DIST kakasi-2.3.6.tar.gz 1352154 BLAKE2B 2e23c5e83aefc040567d0a945b98c52a1123fe41383ded90a2e2a0cea5a9ee0e8d1f4560cb1d5959df5253702eaa958d3522791ef16235aa07dcc2beb2fe008c SHA512 212dbf4125db343b5d8ab5849fd85cbc1060c259eb1a37593817a990104ce53c146e0ba8e79c7f7427d1eb59b0d7d6c3d7f9e2cb8e303cff3088a030f1b0327a
-EBUILD kakasi-2.3.6.ebuild 780 BLAKE2B 733be03e501b50d44a08142082f4568b517e0ed7c735fb5ff135716560f748185019e54b0a6518d057c2e8e4003597442237d359e2e819d5bb00a8d4a01a89dd SHA512 3ed2c49893ed8c292a4a867838673db9501b1bae7ef05028d1ed6e11d76159a27b716ca32029098cead68fda58f03ab839106b861dab7054b680374ddcb64f87
+EBUILD kakasi-2.3.6-r1.ebuild 923 BLAKE2B 1d76b0add3e806189a699dad77816a26de3ed702ed0bd9edb156a30f6199ce27488f82334bc86567c701a6d0983b7c88c421afe61577c8d64ecc015400afc364 SHA512 e6d8102403a7a728e753b030efef003c6c4b21392ebb96116929fe86f2b6af7f56b641bc856897409a39e73ed9e79d4c8d4c9c4a9c7d124ea93fe545066724c4
MISC metadata.xml 235 BLAKE2B a3e5a3109b59e3f97ef14f8d55ba13b16dc5371a1b7d6f238230aa4494db32dd4a42e3ee012ec8b18fae394feb2b1b56882bc70504aa7c6b969c1b20140f0ece SHA512 7c4e5f5dea465e45c662f5f53513626088aff514e1326593426af227d77e63d8a00d8af05aa208881a399f83dd41e73cd2ef81c8b7f275a2fa891f295231d67c
diff --git a/app-i18n/kakasi/files/kakasi-2.3.6-configure-clang16.patch b/app-i18n/kakasi/files/kakasi-2.3.6-configure-clang16.patch
new file mode 100644
index 000000000000..7c6dd035f57c
--- /dev/null
+++ b/app-i18n/kakasi/files/kakasi-2.3.6-configure-clang16.patch
@@ -0,0 +1,19 @@
+https://src.fedoraproject.org/rpms/kakasi/raw/4756771349822d4ccd4d74a6ce70040ca57084cb/f/kakasi-configure-c99.patch
+https://bugs.gentoo.org/874654
+
+Avoid an implicit declaration of exit and build failures with future
+compilers which do not support implicit function declarations by
+default.
+
+--- a/configure.in
++++ b/configure.in
+@@ -85,7 +85,7 @@ AS_VAR_IF(utf8, "yes",[
+ LIBS="$LIBICONV $LIBS"
+ AC_DEFINE(KAKASI_SUPPORT_UTF8, 1, [KAKASI_SUPPORT_UTF8])
+ AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <iconv.h>],
+- [if (iconv_open("EUC-JP", "UTF-8") == -1) exit(1);])],
++ [if (iconv_open("EUC-JP", "UTF-8") == -1) return 1;])],
+ [],
+ [AC_MSG_ERROR([can not use EUC-JP or UTF-8 encoding on iconv])])
+ ])
+
diff --git a/app-i18n/kakasi/kakasi-2.3.6.ebuild b/app-i18n/kakasi/kakasi-2.3.6-r1.ebuild
index d7894efeacfb..8e5806c37964 100644
--- a/app-i18n/kakasi/kakasi-2.3.6.ebuild
+++ b/app-i18n/kakasi/kakasi-2.3.6-r1.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
+inherit autotools
+
DESCRIPTION="Converts Japanese text between kanji, kana, and romaji"
HOMEPAGE="http://kakasi.namazu.org/"
SRC_URI="http://${PN}.namazu.org/stable/${P}.tar.gz"
@@ -14,6 +16,17 @@ IUSE="l10n_ja static-libs"
DOCS=( AUTHORS ChangeLog {,O}NEWS README{,-ja} THANKS TODO doc/{ChangeLog.lib,JISYO,README.lib} )
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.3.6-configure-clang16.patch
+)
+
+src_prepare() {
+ default
+
+ # Clang 16 patch
+ eautoreconf
+}
+
src_install() {
default
einstalldocs