summaryrefslogtreecommitdiff
path: root/app-i18n/scim
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-06-01 00:07:06 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-06-01 00:07:06 +0100
commit1551fe56fd6ba43a94509cffc61b6bf854b7ac9f (patch)
treebe99b6ceb874878a108d68c641b476a2df076517 /app-i18n/scim
parent0e2a727aba684f1a44cc0402a3f77d242140681b (diff)
gentoo auto-resync : 01:06:2024 - 00:07:06
Diffstat (limited to 'app-i18n/scim')
-rw-r--r--app-i18n/scim/Manifest1
-rw-r--r--app-i18n/scim/scim-1.4.18-r1.ebuild129
2 files changed, 130 insertions, 0 deletions
diff --git a/app-i18n/scim/Manifest b/app-i18n/scim/Manifest
index 5b920db4a8c4..6b814b34b362 100644
--- a/app-i18n/scim/Manifest
+++ b/app-i18n/scim/Manifest
@@ -1,5 +1,6 @@
AUX scim-1.4.18-slibtool.patch 1406 BLAKE2B 32390a24dd0e9865f13fc177e16131693c8f6b4df9a41f0552b8a2fea8ae72f2ab346372a8b274de36c8d7425547508d27382e1ad9f7aae93addba93106dcdb8 SHA512 3e209659da0a99f300fa93e2ce6637c1f345a2a7c0c8b4b009af3698114e05fbf0177f0f9cff17e3de47ca0af9785fa62f241183aadd4f35507933ed71e1e490
AUX xinput-scim 240 BLAKE2B 8c235304288f531db5bea179ff0100f6152b55348057a2604f37e37522a54883d06c954f2804ad4c04dfd3b3518fc5401ad5185e85a85a68d80e38dbbd728eef SHA512 1cfe95fdbf840b9fa43c980bb3f2e16fc6008714f8807650582ca906cb91ddd28b3b7b3c9f1325035e2c614d587d172071b2b7e3c6b30ca3128902b335773893
DIST scim-1.4.18.tar.gz 1288060 BLAKE2B c2f1ce5608423734899aa6698060245c4ee253048d04d32bf5e853b8c68255340a8d35c0ebaaa50871b07c23ee9018b6bac03b18fbd4fa4dbea0e67c32c9ae30 SHA512 9a6090fc1ab950905a9c54d6678ce3d2a44297d1a992a3e933b0466688638e6cf470c1682daa58a6fbb6de3216b649273faf7edff1ac0ecca1c2c77fc19108fb
+EBUILD scim-1.4.18-r1.ebuild 3176 BLAKE2B 8cb56b9c6a5bc12822745c24e00a622c0898b734de3bd43a10c1d7b08bba93cf30b804d004544c92a4101966a933016e1db4611b062f0fb843432bd8306bff2e SHA512 b9ef9f992688d752b27235f93e3bfdd973306b74c277f6aa546f360469b68bee1c16ed9eb47c0f2a181d22c631e987f8bf2f64b0a2bcc0ab55e8dd7ca57ae4c5
EBUILD scim-1.4.18.ebuild 2615 BLAKE2B 9f12c825cb48e7387baf2e01c262de5b860d60a0132734c37ee465db33185c7b2070f03acb09e7c19e0df47d92d389ab7806e326d800794fcab687138b321548 SHA512 0fe55cea65f23c826f4eca2a952dc2a7879c4ac38464dc4d3f80f5698bbc096de443505f7fcfabcc80f172d3c8a7642e32fe6f069a84e726885e341b75af15f7
MISC metadata.xml 400 BLAKE2B f8307fe1316c950d280d7bd3de69e60cd9b021be9de9b43680b99251a5aaf0d3b8f4abba22788ee27b881aa1514830103c70f15b2772707fe7f1e3ed535f42b8 SHA512 9be9b385d794144dcc158126e4a0ba2b9432c0fbade970eaa2c3073d24dab5a8649019c43505f5b810757379bfdaaf80b28dc49b14f870c0841cea09dfa180a4
diff --git a/app-i18n/scim/scim-1.4.18-r1.ebuild b/app-i18n/scim/scim-1.4.18-r1.ebuild
new file mode 100644
index 000000000000..17444be79e05
--- /dev/null
+++ b/app-i18n/scim/scim-1.4.18-r1.ebuild
@@ -0,0 +1,129 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools flag-o-matic gnome2-utils
+
+DESCRIPTION="Smart Common Input Method (SCIM) is an Input Method (IM) development platform"
+HOMEPAGE="https://github.com/scim-im/scim"
+SRC_URI="https://github.com/scim-im/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="doc gtk3 static-libs test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ app-accessibility/at-spi2-core:2
+ dev-libs/glib:2
+ dev-libs/libltdl
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/harfbuzz:=
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf:2
+ x11-libs/libX11
+ >=x11-libs/pango-1
+ gtk3? ( x11-libs/gtk+:3[X] )
+ !gtk3? ( x11-libs/gtk+:2 )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ dev-lang/perl
+ virtual/pkgconfig
+ >=dev-util/intltool-0.33
+ dev-build/libtool
+ doc? (
+ app-text/doxygen
+ >=app-text/docbook-xsl-stylesheets-1.73.1
+ )
+"
+
+DOCS=( README AUTHORS ChangeLog docs/developers docs/scim.cfg )
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.4.18-slibtool.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ # bug #83625
+ filter-flags -fvisibility-inlines-hidden -fvisibility=hidden
+
+ local myeconfargs=(
+ --enable-ld-version-script
+ $(usex gtk3 --with-gtk-version={3,2})
+ $(usex !gtk3 --disable-gtk3-immodule)
+ --disable-qt3-immodule
+ --disable-qt4-immodule
+ --without-included-libltdl
+ $(use_enable static-libs static)
+ $(use_enable test tests)
+ $(use_with doc doxygen)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+ default
+ use doc && emake docs
+}
+
+src_test() {
+ ./tests/testlang || die "testlang failed"
+ ./tests/testiconvert || die "testiconvert failed"
+}
+
+src_install() {
+ use doc && HTML_DOCS=( "${S}/docs/html/" )
+ default
+ if ! use static-libs; then
+ find "${ED}" -name '*.la' -delete || die
+ fi
+
+ sed -e "s:@EPREFIX@:${EPREFIX}:" "${FILESDIR}/xinput-${PN}" > "${T}/${PN}.conf" || die
+ insinto /etc/X11/xinit/xinput.d
+ doins "${T}/${PN}.conf"
+}
+
+pkg_postinst() {
+ elog
+ elog "To use SCIM with both GTK and XIM, you should use the following"
+ elog "in your user startup scripts such as .gnomerc or .xinitrc:"
+ elog
+ elog "LANG='your_language' scim -d"
+ elog "export XMODIFIERS=@im=SCIM"
+ elog "export GTK_IM_MODULE=\"scim\""
+ elog "export QT_IM_MODULE=\"scim\""
+ elog
+ elog "where 'your_language' can be zh_CN, zh_TW, ja_JP.eucJP or any other"
+ elog "UTF-8 locale such as en_US.UTF-8 or ja_JP.UTF-8"
+ elog
+ elog "To use Chinese input methods:"
+ elog " # emerge app-i18n/scim-tables app-i18n/scim-pinyin"
+ elog "To use Korean input methods:"
+ elog " # emerge app-i18n/scim-hangul"
+ elog "To use Japanese input methods:"
+ elog " # emerge app-i18n/scim-anthy"
+ elog "To use various input methods (more than 30 languages):"
+ elog " # emerge app-i18n/scim-m17n"
+ elog
+ elog "Please modify ${EPREFIX}/etc/scim/global and add your UTF-8 locale to"
+ elog "/SupportedUnicodeLocales entry."
+ elog
+ ewarn
+ ewarn "If you upgraded from scim-1.2.x or scim-1.0.x, you should remerge all SCIM modules."
+ ewarn
+
+ gnome2_query_immodules_gtk2
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk2
+}