diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-i18n/uim |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-i18n/uim')
-rw-r--r-- | app-i18n/uim/Manifest | 11 | ||||
-rw-r--r-- | app-i18n/uim/files/50uim-gentoo.el | 4 | ||||
-rw-r--r-- | app-i18n/uim/files/uim-1.5.4-zhTW.patch | 12 | ||||
-rw-r--r-- | app-i18n/uim/files/uim-1.6.0-gentoo.patch | 11 | ||||
-rw-r--r-- | app-i18n/uim/files/uim-1.8.6-libressl.patch | 79 | ||||
-rw-r--r-- | app-i18n/uim/files/xinput-uim | 6 | ||||
-rw-r--r-- | app-i18n/uim/metadata.xml | 25 | ||||
-rw-r--r-- | app-i18n/uim/uim-1.8.6-r1.ebuild | 223 | ||||
-rw-r--r-- | app-i18n/uim/uim-1.8.6-r2.ebuild | 227 |
9 files changed, 598 insertions, 0 deletions
diff --git a/app-i18n/uim/Manifest b/app-i18n/uim/Manifest new file mode 100644 index 000000000000..37c48a28e80a --- /dev/null +++ b/app-i18n/uim/Manifest @@ -0,0 +1,11 @@ +AUX 50uim-gentoo.el 113 SHA256 58a536e5b7d0ffac6802e60d348b092623601d25c8917d64a51347efab9e4cb7 SHA512 5bdf2d6ea7203fa171e2183b272f9b1e7dfde990d14fdb13a4abc64a3eaaebb65d0325006451979cff00f6dde8c90d58e4905dbdabe0b5c4b4fa3eb721c01b7a WHIRLPOOL a4ad6ec76f4734cbde576d857dbba5b0f1b97e7df7aa131b05e508ec58f7f1c6d6d38c578b99e3418f50e80fc4860561063cfb9f8bd29eb5d249f36e57bd44b1 +AUX uim-1.5.4-zhTW.patch 1034 SHA256 82afb0a1cc1c2e706ac02da71084fe16655bbcb9719710ae37057ab6c14b9196 SHA512 0fb31957a74b49bd2ca335357b8aa177dda4fb90687b8ee4ce86595940d7fd36b82ccaf12850d658dfbf0e7f2e5119dd26ecf9246806d854cf22bde633687aee WHIRLPOOL 77ac84c09f36888817b0763db3ce4f7ff356f15cc3dde44f7151ad55261dd9516088934ddff5aaf6646df2d28977d774cf9146f4f907e67929ea458aac895e3e +AUX uim-1.6.0-gentoo.patch 381 SHA256 c44e97d8c4d2125e17fe0d8107ce3d258c930b9dda3329eec170cfb291ae6c80 SHA512 c5445c74269aa51a07fc41e5ecc05bc6c4e73527dd6780e13070efa4f9074f5a3eddcd150c38981393cec5d883e73ba55e4b1f3d460aeaf40817ce60c268f417 WHIRLPOOL 2ab3952deb6d52a70870535f07269e104546d35a0cdfc23f92f01ee5be9dd8b9d10bf3bc320b802adf0b1ecd014825279b7dd12d9fa500428d45c6531c428dab +AUX uim-1.8.6-libressl.patch 2041 SHA256 85f6c122ff782ca0a934396353f2dda62d1dc2fb8b910ffa3120016e6ee62c5e SHA512 a1af2af13b26b631064165c8f6d6dafaba09d236b489e0e8fd84a7ab6d9c0720a8a91cd9f8baabcc1e640157559fd77f68e18d5e85aaf0c335e25b69e0ef120a WHIRLPOOL 4b8b6abdf9c3ffaeff464582dff9380b1d0272bfa6bb1c427ec2452076101e1f2f467bbbee9c6cc15c7358c693aeb9078f56fefdf1235b759fbc9de86a417132 +AUX xinput-uim 108 SHA256 972c38f0c227cdf2ace54fa3cb0d0095864e88cf38c73759645151e3eae4b548 SHA512 b3ba31a87e19f589ac8051ece45b6b6c44b295dde76a5ce6164d1e435d791c4e7cafc7192177384f4052fd928caabb8574a9192cf783f4cb22e4ee16741343fc WHIRLPOOL 0ceb8889d4771f09588d9c53a73dc557aa09a00587df0982620615796d0530ef2c9604018f25dc50ece679ab55ea68b44edad96ba06f91950f0b9fd2200d32e2 +DIST uim-1.8.6.tar.bz2 6500739 SHA256 7b1ea803c73f3478917166f04f67cce6e45ad7ea5ab6df99b948c17eb1cb235f SHA512 26a95d3b51ef7a99108234b9af30ee7b74141cb3af13d092d4cdbf0749f630934cfd67f74b09dacc3adcdce4a390104489d68a4e2419ec07418645a9b4e5715b WHIRLPOOL 77362b5ac6bea217b4373184eb19d79c0b19a8c3f9c27945abccfd414d0409a33438a3cd1d1d2370b6b2f7154a6c35688ae4b2e57f50dc29524bf71938a38a28 +EBUILD uim-1.8.6-r1.ebuild 5863 SHA256 15b9e837c21c5155d81197a6666ac612e31bc30a510c7ec6de6e24944d2d403c SHA512 1068c38129f16af382a6642edab0225e0d31b533eb6faf821f668fe7e595ec86bca3abe7ca08113f8ceafa90094610f8b492d004066fab0c05a0f839625386ec WHIRLPOOL 8258ad1ed771b3a3622e5a40c9bcfafa8214e314785c002792642e95e346486d009d83182e468f5b3c30b26f6d764dd3853ebdcb2dfdea3895e779d0461effb5 +EBUILD uim-1.8.6-r2.ebuild 5971 SHA256 9759ebb2c08c19cf0ec73fec82f3e25937fd0f73b10a3966265c64e15672b945 SHA512 9fe8ead692d3ec17f05bbc34b77545be6a597f44cd00c6ac9543da56799164b4379e801535bb402cecc2a18cf5eba96b3be4a47127c12a4f1a7aa2a9379ce2c3 WHIRLPOOL 2d96c5fd43bc24a4d9c37e11aa0878286a8e20e2f0d41fb2d73a2b8f25427ce0b266aeabf5006f811dad5a09a4f97cb2737e1947076616e71827daaa42dcb1c9 +MISC ChangeLog 3640 SHA256 7e1ec06b8ecbe6b4298803bbeb09f715b63fd84a9f42829afdcc543cfba90501 SHA512 f36c21c2a62399a6bc18f3895aa45a97c872e1db319225f50e24957af987b726937b2f454813c428106e8757d9ea5e1505739ff988a4b1fb9515cbd8638767c6 WHIRLPOOL 66a2ae25185f2160afd00087a6d95680e434608d480db25b7a777641b83fb221e5fa58370831da97840174ca3c64aa36b8f67fcb3df7fbb35ff90e5aedde59b4 +MISC ChangeLog-2015 39642 SHA256 74d96bf580e119e5c8d7f276a0c4067b0b3a9322c282a002baaf052733eca193 SHA512 3764fa28eb878b045bc1d414945b656ba24ad24ef40bcced37e5000fa32a1b92ed02c5ef3dd99e75fca7d611f36e383449cce0533e96d9a3a9ca73e897687d74 WHIRLPOOL aef3eb2d004039753482c64565e6c019831c5f25b2d2b767f7d2aeb7cf913c4e36d11b7172b7a30cc722a48d5c747947b5d2b84cb45814f4a4873d017e67a311 +MISC metadata.xml 1064 SHA256 14855bf233af45060c19e681dffc7ff66929f12b8acec83bda498f0eeb19823c SHA512 e265b2bab3338a8cc89b456fbbd46b8a2a1c59f50704e66fe3505e955b75226b786fff3abc061b9c7fe2edb5039fe265d59cf5b4750fd73ad092aafe4b390a56 WHIRLPOOL 25afe388ba976874fa04be357649f502168f78d717878218647f517fd7c99e563f7f0a4c9d15e7aa314c4c7db7c34972faedcf642ded3fa590e998e851bec877 diff --git a/app-i18n/uim/files/50uim-gentoo.el b/app-i18n/uim/files/50uim-gentoo.el new file mode 100644 index 000000000000..350f6216139f --- /dev/null +++ b/app-i18n/uim/files/50uim-gentoo.el @@ -0,0 +1,4 @@ +;;; app-i18n/uim site-lisp configuration + +(add-to-list 'load-path "@SITELISP@") +(autoload 'uim-mode "uim" nil t) diff --git a/app-i18n/uim/files/uim-1.5.4-zhTW.patch b/app-i18n/uim/files/uim-1.5.4-zhTW.patch new file mode 100644 index 000000000000..3836a210caa8 --- /dev/null +++ b/app-i18n/uim/files/uim-1.5.4-zhTW.patch @@ -0,0 +1,12 @@ +diff -Naur uim-1.5.4.orig/xim/convdisp.cpp uim-1.5.4/xim/convdisp.cpp +--- uim-1.5.4.orig/xim/convdisp.cpp 2008-02-13 23:43:42.000000000 +0900 ++++ uim-1.5.4/xim/convdisp.cpp 2008-12-10 02:04:35.000000000 +0900 +@@ -69,7 +69,7 @@ + #endif + + const char *fontset_zhCN = "-sony-fixed-medium-r-normal--16-*-*-*-c-80-iso8859-1, -isas-fangsong ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0"; +-const char *fontset_zhTW = "-sony-fixed-medium-r-normal--16-*-*-*-c-80-iso8859-1, -taipei-fixed-medium-r-normal--16-150-75-75-c-160-big5-0"; ++const char *fontset_zhTW = "-sony-fixed-medium-r-normal--16-*-*-*-c-80-iso8859-1, -eten-fixed-medium-r-normal--16-150-75-75-c-160-big5.eten-0"; + const char *fontset_ja = "-sony-fixed-medium-r-normal--16-*-*-*-c-80-iso8859-1, -jis-fixed-medium-r-normal--16-*-75-75-c-160-jisx0208.1983-0, -sony-fixed-medium-r-normal--16-*-*-*-c-80-jisx0201.1976-0"; + const char *fontset_ko = "-sony-fixed-medium-r-normal--16-*-*-*-c-80-iso8859-1, -daewoo-gothic-medium-r-normal--16-120-100-100-c-160-ksc5601.1987-0"; + diff --git a/app-i18n/uim/files/uim-1.6.0-gentoo.patch b/app-i18n/uim/files/uim-1.6.0-gentoo.patch new file mode 100644 index 000000000000..206a1cdfb1e0 --- /dev/null +++ b/app-i18n/uim/files/uim-1.6.0-gentoo.patch @@ -0,0 +1,11 @@ +diff -Naur uim-1.6.0.orig/configure.ac uim-1.6.0/configure.ac +--- uim-1.6.0.orig/configure.ac 2010-08-02 09:30:14.000000000 +0900 ++++ uim-1.6.0/configure.ac 2010-08-14 08:30:34.000000000 +0900 +@@ -1696,6 +1696,7 @@ + + QT_CONFIG_OPTS="release" + fi ++QT_CONFIG_OPTS="$QT_CONFIG_OPTS nostrip" + + AC_ARG_ENABLE(warnings-into-error, + AC_HELP_STRING([--enable-warnings-into-error], diff --git a/app-i18n/uim/files/uim-1.8.6-libressl.patch b/app-i18n/uim/files/uim-1.8.6-libressl.patch new file mode 100644 index 000000000000..b14de58433aa --- /dev/null +++ b/app-i18n/uim/files/uim-1.8.6-libressl.patch @@ -0,0 +1,79 @@ +From 7a281b1131399f04627986e6f9a54499b08e239d Mon Sep 17 00:00:00 2001 +From: Felix Janda <felix.janda@posteo.de> +Date: Thu, 21 Apr 2016 23:12:10 +0200 +Subject: [PATCH] Make openssl SSLv2 and SSLv3 support optional + +Fixes compilation with libressl +--- + uim/openssl.c | 30 ++++++++++++++++++++++++++++++ + 1 file changed, 30 insertions(+) + +diff --git a/uim/openssl.c b/uim/openssl.c +index ba1b238..35ca1ca 100644 +--- a/uim/openssl.c ++++ b/uim/openssl.c +@@ -208,34 +208,64 @@ c_SSL_write(uim_lisp s_, uim_lisp buf_) + static uim_lisp + c_SSLv2_method(void) + { ++#ifndef OPENSSL_NO_SSL2 + return MAKE_PTR(SSLv2_method()); ++#else ++ uim_notify_fatal(N_("uim-openssl: SSLv2_method() is not supported on this system")); ++ return uim_scm_f(); ++#endif + } + static uim_lisp + c_SSLv2_server_method(void) + { ++#ifndef OPENSSL_NO_SSL2 + return MAKE_PTR(SSLv2_server_method()); ++#else ++ uim_notify_fatal(N_("uim-openssl: SSLv2_server_method() is not supported on this system")); ++ return uim_scm_f(); ++#endif + } + static uim_lisp + c_SSLv2_client_method(void) + { ++#ifndef OPENSSL_NO_SSL2 + return MAKE_PTR(SSLv2_client_method()); ++#else ++ uim_notify_fatal(N_("uim-openssl: SSLv2_client_method() is not supported on this system")); ++ return uim_scm_f(); ++#endif + } + + /* SSLv3 */ + static uim_lisp + c_SSLv3_method(void) + { ++#ifndef OPENSSL_NO_SSL3 + return MAKE_PTR(SSLv3_method()); ++#else ++ uim_notify_fatal(N_("uim-openssl: SSLv3_method() is not supported on this system")); ++ return uim_scm_f(); ++#endif + } + static uim_lisp + c_SSLv3_server_method(void) + { ++#ifndef OPENSSL_NO_SSL3 + return MAKE_PTR(SSLv3_server_method()); ++#else ++ uim_notify_fatal(N_("uim-openssl: SSLv3_server_method() is not supported on this system")); ++ return uim_scm_f(); ++#endif + } + static uim_lisp + c_SSLv3_client_method(void) + { ++#ifndef OPENSSL_NO_SSL3 + return MAKE_PTR(SSLv3_client_method()); ++#else ++ uim_notify_fatal(N_("uim-openssl: SSLv3_client_method() is not supported on this system")); ++ return uim_scm_f(); ++#endif + } + + /* SSLv3 but can rollback to v2 */ diff --git a/app-i18n/uim/files/xinput-uim b/app-i18n/uim/files/xinput-uim new file mode 100644 index 000000000000..a0969dd9f01a --- /dev/null +++ b/app-i18n/uim/files/xinput-uim @@ -0,0 +1,6 @@ +XIM=uim +XIM_PROGRAM="@EPREFIX@/usr/bin/uim-xim" +XIM_ARGS= +GTK_IM_MODULE=uim +QT_IM_MODULE=uim +SHORT_DESC=UIM diff --git a/app-i18n/uim/metadata.xml b/app-i18n/uim/metadata.xml new file mode 100644 index 000000000000..0e2214531e40 --- /dev/null +++ b/app-i18n/uim/metadata.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>cjk@gentoo.org</email> + <name>Cjk</name> + </maintainer> + <longdescription lang="en"> + uim is a simple, secure and flexible input method library. At the moment + Anthy, SKK, Prime, T-code, TUT-code (these are Japanese input method), + Pinyin (Chinese input method), Hangul (Korean input method), IPA + (International Phonetic Alphabet) are implemented. You can extend the + library with Scheme thus easily, or with C if it becomes rather complicated. +</longdescription> + <use> + <flag name="anthy">Enable support for <pkg>app-i18n/anthy</pkg> input method + </flag> + <flag name="eb">Enable support for <pkg>dev-libs/eb</pkg></flag> + <flag name="gtk3">Enable support for <pkg>x11-libs/gtk+</pkg>:3</flag> + <flag name="skk">Enable support for <pkg>app-i18n/skk-jisyo</pkg></flag> + </use> + <upstream> + <remote-id type="github">uim/uim</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-i18n/uim/uim-1.8.6-r1.ebuild b/app-i18n/uim/uim-1.8.6-r1.ebuild new file mode 100644 index 000000000000..c5648efd8e3d --- /dev/null +++ b/app-i18n/uim/uim-1.8.6-r1.ebuild @@ -0,0 +1,223 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" +inherit autotools eutils multilib elisp-common gnome2-utils + +DESCRIPTION="Simple, secure and flexible input method library" +HOMEPAGE="https://github.com/uim/uim/" +SRC_URI="https://uim.googlecode.com/files/${P}.tar.bz2" + +LICENSE="BSD GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 ~arm hppa ppc ppc64 x86" +IUSE="+anthy canna curl eb emacs expat libffi gtk gtk3 kde libedit libnotify m17n-lib ncurses nls qt4 skk sqlite ssl static-libs test unicode X xft l10n_ja l10n_ko l10n_zh-CN l10n_zh-TW" + +RESTRICT="test" + +REQUIRED_USE="gtk? ( X ) qt4? ( X )" + +RDEPEND="X? ( + x11-libs/libX11 + x11-libs/libXft + x11-libs/libXt + x11-libs/libICE + x11-libs/libSM + x11-libs/libXext + x11-libs/libXrender + ) + anthy? ( + unicode? ( >=app-i18n/anthy-8622 ) + !unicode? ( app-i18n/anthy ) + ) + canna? ( app-i18n/canna ) + curl? ( >=net-misc/curl-7.16.4 ) + eb? ( dev-libs/eb ) + emacs? ( virtual/emacs ) + expat? ( dev-libs/expat ) + libffi? ( virtual/libffi ) + gtk? ( >=x11-libs/gtk+-2.4:2 ) + gtk3? ( x11-libs/gtk+:3 ) + kde? ( kde-frameworks/kdelibs:4 ) + libedit? ( dev-libs/libedit ) + libnotify? ( >=x11-libs/libnotify-0.4 ) + m17n-lib? ( >=dev-libs/m17n-lib-1.3.1 ) + ncurses? ( sys-libs/ncurses:0= ) + nls? ( virtual/libintl ) + qt4? ( dev-qt/qtgui:4[qt3support] ) + skk? ( app-i18n/skk-jisyo ) + sqlite? ( dev-db/sqlite:3 ) + ssl? ( dev-libs/openssl:0 ) + !dev-scheme/sigscheme" +# scim? ( >=app-i18n/scim-1.3.0 ) # broken +# wnn? ( app-i18n/wnn ) + +DEPEND="${RDEPEND} + dev-util/intltool + virtual/pkgconfig + >=sys-devel/gettext-0.15 + kde? ( dev-util/cmake ) + X? ( + x11-proto/xextproto + x11-proto/xproto + )" + +RDEPEND="${RDEPEND} + X? ( + media-fonts/font-sony-misc + l10n_ja? ( || ( media-fonts/font-jis-misc media-fonts/intlfonts ) ) + l10n_ko? ( || ( media-fonts/font-daewoo-misc media-fonts/intlfonts ) ) + l10n_zh-CN? ( || ( media-fonts/font-isas-misc media-fonts/intlfonts ) ) + l10n_zh-TW? ( media-fonts/intlfonts ) + )" +# test? ( dev-scheme/gauche ) + +SITEFILE=50${PN}-gentoo.el + +pkg_setup() { + strip-linguas fr ja ko + if [[ -z "${LINGUAS}" ]]; then + # no linguas set, using the default one + LINGUAS=" " + fi +} + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-1.6.0-gentoo.patch \ + "${FILESDIR}"/${PN}-1.5.4-zhTW.patch + + # bug 275420 + sed -i -e "s:\$libedit_path/lib:/$(get_libdir):g" configure.ac || die "sed failed!" + + AT_NO_RECURSIVE=1 eautoreconf +} + +src_configure() { + local myconf + + if (use gtk || use gtk3) && (use anthy || use canna) ; then + myconf="${myconf} --enable-dict" + else + myconf="${myconf} --disable-dict" + fi + + if use gtk || use gtk3 || use qt4 ; then + myconf="${myconf} --enable-pref" + else + myconf="${myconf} --disable-pref" + fi + + if use anthy ; then + if use unicode ; then + myconf="${myconf} --with-anthy-utf8" + else + myconf="${myconf} --with-anthy" + fi + else + myconf="${myconf} --without-anthy" + fi + + if use libnotify ; then + myconf="${myconf} --enable-notify=libnotify" + fi + + econf $(use_with X x) \ + $(use_with canna) \ + $(use_with curl) \ + $(use_with eb) \ + $(use_enable emacs) \ + $(use_with emacs lispdir "${SITELISP}") \ + $(use_with expat) \ + $(use_with libffi ffi) \ + --disable-gnome-applet \ + $(use_with gtk gtk2) \ + $(use_with gtk3) \ + $(use_with libedit) \ + --disable-kde-applet \ + $(use_enable kde kde4-applet) \ + $(use_with m17n-lib m17nlib) \ + $(use_enable ncurses fep) \ + $(use_enable nls) \ + --without-qt \ + --without-qt-immodule \ + $(use_with qt4 qt4) \ + $(use_with qt4 qt4-immodule) \ + $(use_enable qt4 qt4-qt3support) \ + $(use_with skk) \ + $(use_with sqlite sqlite3) \ + $(use_enable ssl openssl) \ + $(use_enable static-libs static) \ + $(use_with xft) \ + ${myconf} +} + +src_compile() { + default + + if use emacs; then + cd emacs + elisp-compile *.el || die "elisp-compile failed!" + fi +} + +src_install() { + # parallel make install b0rked, bug #222677 + emake -j1 INSTALL_ROOT="${D}" DESTDIR="${D}" install + + dodoc AUTHORS ChangeLog* NEWS README RELNOTE + if use emacs; then + elisp-install uim-el emacs/*.elc || die "elisp-install failed!" + elisp-site-file-install "${FILESDIR}/${SITEFILE}" uim-el \ + || die "elisp-site-file-install failed!" + fi + + find "${ED}/usr/$(get_libdir)/uim" -name '*.la' -exec rm {} + + use static-libs || find "${ED}" -name '*.la' -exec rm {} + + + sed -e "s:@EPREFIX@:${EPREFIX}:" "${FILESDIR}/xinput-uim" > "${T}/uim.conf" || die "sed failed!" + insinto /etc/X11/xinit/xinput.d + doins "${T}/uim.conf" + + # collision with dev-scheme/sigscheme, bug #330975 + # find "${ED}" -name '*gcroots*' -delete || die + + #rmdir "${ED}"/usr/share/doc/sigscheme || die +} + +pkg_postinst() { + elog + elog "New input method switcher has been introduced. You need to set" + elog + elog "% GTK_IM_MODULE=uim ; export GTK_IM_MODULE" + elog "% QT_IM_MODULE=uim ; export QT_IM_MODULE" + elog "% XMODIFIERS=@im=uim ; export XMODIFIERS" + elog + elog "If you would like to use uim-anthy as default input method, put" + elog "(define default-im-name 'anthy)" + elog "to your ~/.uim." + elog + elog "All input methods can be found by running uim-im-switcher-gtk, " + elog "uim-im-switcher-gtk3 or uim-im-switcher-qt4." + elog + elog "If you upgrade from a version of uim older than 1.4.0," + elog "you should run revdep-rebuild." + + use gtk && gnome2_query_immodules_gtk2 + use gtk3 && gnome2_query_immodules_gtk3 + if use emacs; then + elisp-site-regen + echo + elog "uim is autoloaded with Emacs with a minimal set of features:" + elog "There is no keybinding defined to call it directly, so please" + elog "create one yourself and choose an input method." + elog "Integration with LEIM is not done with this ebuild, please have" + elog "a look at the documentation how to achieve this." + fi +} + +pkg_postrm() { + use gtk && gnome2_query_immodules_gtk2 + use gtk3 && gnome2_query_immodules_gtk3 + use emacs && elisp-site-regen +} diff --git a/app-i18n/uim/uim-1.8.6-r2.ebuild b/app-i18n/uim/uim-1.8.6-r2.ebuild new file mode 100644 index 000000000000..bd5220cb72cc --- /dev/null +++ b/app-i18n/uim/uim-1.8.6-r2.ebuild @@ -0,0 +1,227 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" +inherit autotools eutils multilib elisp-common gnome2-utils + +DESCRIPTION="Simple, secure and flexible input method library" +HOMEPAGE="https://github.com/uim/uim/" +SRC_URI="https://uim.googlecode.com/files/${P}.tar.bz2" + +LICENSE="BSD GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" +IUSE="+anthy canna curl eb emacs expat libffi gtk gtk3 kde libedit libnotify libressl m17n-lib ncurses nls qt4 skk sqlite ssl static-libs test unicode X xft l10n_ja l10n_ko l10n_zh-CN l10n_zh-TW" + +RESTRICT="test" + +REQUIRED_USE="gtk? ( X ) qt4? ( X )" + +RDEPEND="X? ( + x11-libs/libX11 + x11-libs/libXft + x11-libs/libXt + x11-libs/libICE + x11-libs/libSM + x11-libs/libXext + x11-libs/libXrender + ) + anthy? ( + unicode? ( >=app-i18n/anthy-8622 ) + !unicode? ( app-i18n/anthy ) + ) + canna? ( app-i18n/canna ) + curl? ( >=net-misc/curl-7.16.4 ) + eb? ( dev-libs/eb ) + emacs? ( virtual/emacs ) + expat? ( dev-libs/expat ) + libffi? ( virtual/libffi ) + gtk? ( >=x11-libs/gtk+-2.4:2 ) + gtk3? ( x11-libs/gtk+:3 ) + kde? ( kde-frameworks/kdelibs:4 ) + libedit? ( dev-libs/libedit ) + libnotify? ( >=x11-libs/libnotify-0.4 ) + m17n-lib? ( >=dev-libs/m17n-lib-1.3.1 ) + ncurses? ( sys-libs/ncurses:0= ) + nls? ( virtual/libintl ) + qt4? ( dev-qt/qtgui:4[qt3support] ) + skk? ( app-i18n/skk-jisyo ) + sqlite? ( dev-db/sqlite:3 ) + ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + ) + !dev-scheme/sigscheme" +# scim? ( >=app-i18n/scim-1.3.0 ) # broken +# wnn? ( app-i18n/wnn ) + +DEPEND="${RDEPEND} + dev-util/intltool + virtual/pkgconfig + >=sys-devel/gettext-0.15 + kde? ( dev-util/cmake ) + X? ( + x11-proto/xextproto + x11-proto/xproto + )" + +RDEPEND="${RDEPEND} + X? ( + media-fonts/font-sony-misc + l10n_ja? ( || ( media-fonts/font-jis-misc media-fonts/intlfonts ) ) + l10n_ko? ( || ( media-fonts/font-daewoo-misc media-fonts/intlfonts ) ) + l10n_zh-CN? ( || ( media-fonts/font-isas-misc media-fonts/intlfonts ) ) + l10n_zh-TW? ( media-fonts/intlfonts ) + )" +# test? ( dev-scheme/gauche ) + +SITEFILE=50${PN}-gentoo.el + +pkg_setup() { + strip-linguas fr ja ko + if [[ -z "${LINGUAS}" ]]; then + # no linguas set, using the default one + LINGUAS=" " + fi +} + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-1.6.0-gentoo.patch \ + "${FILESDIR}"/${PN}-1.5.4-zhTW.patch \ + "${FILESDIR}"/${P}-libressl.patch + + # bug 275420 + sed -i -e "s:\$libedit_path/lib:/$(get_libdir):g" configure.ac || die "sed failed!" + + AT_NO_RECURSIVE=1 eautoreconf +} + +src_configure() { + local myconf + + if (use gtk || use gtk3) && (use anthy || use canna) ; then + myconf="${myconf} --enable-dict" + else + myconf="${myconf} --disable-dict" + fi + + if use gtk || use gtk3 || use qt4 ; then + myconf="${myconf} --enable-pref" + else + myconf="${myconf} --disable-pref" + fi + + if use anthy ; then + if use unicode ; then + myconf="${myconf} --with-anthy-utf8" + else + myconf="${myconf} --with-anthy" + fi + else + myconf="${myconf} --without-anthy" + fi + + if use libnotify ; then + myconf="${myconf} --enable-notify=libnotify" + fi + + econf $(use_with X x) \ + $(use_with canna) \ + $(use_with curl) \ + $(use_with eb) \ + $(use_enable emacs) \ + $(use_with emacs lispdir "${SITELISP}") \ + $(use_with expat) \ + $(use_with libffi ffi) \ + --disable-gnome-applet \ + $(use_with gtk gtk2) \ + $(use_with gtk3) \ + $(use_with libedit) \ + --disable-kde-applet \ + $(use_enable kde kde4-applet) \ + $(use_with m17n-lib m17nlib) \ + $(use_enable ncurses fep) \ + $(use_enable nls) \ + --without-qt \ + --without-qt-immodule \ + $(use_with qt4 qt4) \ + $(use_with qt4 qt4-immodule) \ + $(use_enable qt4 qt4-qt3support) \ + $(use_with skk) \ + $(use_with sqlite sqlite3) \ + $(use_enable ssl openssl) \ + $(use_enable static-libs static) \ + $(use_with xft) \ + ${myconf} +} + +src_compile() { + default + + if use emacs; then + cd emacs + elisp-compile *.el || die "elisp-compile failed!" + fi +} + +src_install() { + # parallel make install b0rked, bug #222677 + emake -j1 INSTALL_ROOT="${D}" DESTDIR="${D}" install + + dodoc AUTHORS ChangeLog* NEWS README RELNOTE + if use emacs; then + elisp-install uim-el emacs/*.elc || die "elisp-install failed!" + elisp-site-file-install "${FILESDIR}/${SITEFILE}" uim-el \ + || die "elisp-site-file-install failed!" + fi + + find "${ED}/usr/$(get_libdir)/uim" -name '*.la' -exec rm {} + + use static-libs || find "${ED}" -name '*.la' -exec rm {} + + + sed -e "s:@EPREFIX@:${EPREFIX}:" "${FILESDIR}/xinput-uim" > "${T}/uim.conf" || die "sed failed!" + insinto /etc/X11/xinit/xinput.d + doins "${T}/uim.conf" + + # collision with dev-scheme/sigscheme, bug #330975 + # find "${ED}" -name '*gcroots*' -delete || die + + #rmdir "${ED}"/usr/share/doc/sigscheme || die +} + +pkg_postinst() { + elog + elog "New input method switcher has been introduced. You need to set" + elog + elog "% GTK_IM_MODULE=uim ; export GTK_IM_MODULE" + elog "% QT_IM_MODULE=uim ; export QT_IM_MODULE" + elog "% XMODIFIERS=@im=uim ; export XMODIFIERS" + elog + elog "If you would like to use uim-anthy as default input method, put" + elog "(define default-im-name 'anthy)" + elog "to your ~/.uim." + elog + elog "All input methods can be found by running uim-im-switcher-gtk, " + elog "uim-im-switcher-gtk3 or uim-im-switcher-qt4." + elog + elog "If you upgrade from a version of uim older than 1.4.0," + elog "you should run revdep-rebuild." + + use gtk && gnome2_query_immodules_gtk2 + use gtk3 && gnome2_query_immodules_gtk3 + if use emacs; then + elisp-site-regen + echo + elog "uim is autoloaded with Emacs with a minimal set of features:" + elog "There is no keybinding defined to call it directly, so please" + elog "create one yourself and choose an input method." + elog "Integration with LEIM is not done with this ebuild, please have" + elog "a look at the documentation how to achieve this." + fi +} + +pkg_postrm() { + use gtk && gnome2_query_immodules_gtk2 + use gtk3 && gnome2_query_immodules_gtk3 + use emacs && elisp-site-regen +} |