summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatsuu Takuto <matsuu@gentoo.org>2011-05-23 17:28:21 +0000
committerMatsuu Takuto <matsuu@gentoo.org>2011-05-23 17:28:21 +0000
commit584324771532f5a95da2cc79d5c1834f5e3715b1 (patch)
tree1b28b991f3a8af75daca41a5eee050a420d1b852 /app-i18n/uim
parentAdd jruby support. (diff)
downloadhistorical-584324771532f5a95da2cc79d5c1834f5e3715b1.tar.gz
historical-584324771532f5a95da2cc79d5c1834f5e3715b1.tar.bz2
historical-584324771532f5a95da2cc79d5c1834f5e3715b1.zip
Version bumped. Added gtk3 local USE flag. Fixed bug #366889.
Package-Manager: portage-2.1.9.49/cvs/Linux x86_64
Diffstat (limited to 'app-i18n/uim')
-rw-r--r--app-i18n/uim/ChangeLog8
-rw-r--r--app-i18n/uim/Manifest26
-rw-r--r--app-i18n/uim/files/xinput-uim3
-rw-r--r--app-i18n/uim/metadata.xml1
-rw-r--r--app-i18n/uim/uim-1.7.0.ebuild252
5 files changed, 281 insertions, 9 deletions
diff --git a/app-i18n/uim/ChangeLog b/app-i18n/uim/ChangeLog
index 169109e71d1a..100b7545999b 100644
--- a/app-i18n/uim/ChangeLog
+++ b/app-i18n/uim/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-i18n/uim
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-i18n/uim/ChangeLog,v 1.231 2011/03/29 10:50:04 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/uim/ChangeLog,v 1.232 2011/05/23 17:28:21 matsuu Exp $
+
+*uim-1.7.0 (23 May 2011)
+
+ 23 May 2011; MATSUU Takuto <matsuu@gentoo.org> +uim-1.7.0.ebuild,
+ files/xinput-uim, metadata.xml:
+ Version bumped. Added gtk3 local USE flag. Fixed bug #366889.
29 Mar 2011; Samuli Suominen <ssuominen@gentoo.org> uim-1.5.7.ebuild:
Apply -1.6.1-libnotify-0.7.patch also for current stable.
diff --git a/app-i18n/uim/Manifest b/app-i18n/uim/Manifest
index 3fc0a6040e2b..ea584b6becf7 100644
--- a/app-i18n/uim/Manifest
+++ b/app-i18n/uim/Manifest
@@ -1,5 +1,5 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
+Hash: SHA1
AUX 50uim-gentoo.el 113 RMD160 4830acc8f32525aaae156cf0252d9e93cd41cc2c SHA1 64b0c88335dbfdab07938a8d92218407ebec2db1 SHA256 58a536e5b7d0ffac6802e60d348b092623601d25c8917d64a51347efab9e4cb7
AUX uim-1.5.4-gcc43.patch 404 RMD160 99bb3adb856b82b7efcf5e9e07dfe1a647cde83d SHA1 5ec9d1ffbd7eb44568795b9e532e05e7caf59457 SHA256 560494a526ab30d7524d769f359a592c1a73671b51491e426d48306cc537707a
@@ -8,19 +8,31 @@ AUX uim-1.5.4-zhTW.patch 1034 RMD160 8d9102b0937d2746a1b4bad5470b1480b94b5eb8 SH
AUX uim-1.6.0-gentoo.patch 381 RMD160 b1be11c6cda393fac0c9d7848d52c0421e7fee77 SHA1 be3ab78b9262862f7b8e461f118dfd5e94700757 SHA256 c44e97d8c4d2125e17fe0d8107ce3d258c930b9dda3329eec170cfb291ae6c80
AUX uim-1.6.0-linker.patch 5969 RMD160 a6e60d17606a1bede3bb159b0ed34bf2705877a3 SHA1 eded83ebc0dc5ac4bffad982b64f7cd7895ec695 SHA256 432d51518a51aeca563ec9ae0a8b84b3968032afe5b0313c403a2fe872a883d0
AUX uim-1.6.1-libnotify-0.7.patch 661 RMD160 18ded31a4895abd2491fb470e20d8dfc8fbe5f1b SHA1 3130c041f0f62248b1ff0ae5f1a78a6953872f50 SHA256 f96f6fb81208a4a11382f08687bb92e0738ab54bb39a06146a284d8232edd8bb
-AUX xinput-uim 91 RMD160 88eece15af5524e1b1e1568fb0824b9e242eeb92 SHA1 37e09df5d915ff9ecbf645efbdd751d6bc2d2fd6 SHA256 ade06862ce4bf2705886d64be6c18bd97c3d5a981676a98a7daea94e9de02757
+AUX xinput-uim 108 RMD160 f8a0998539cc569d5be54e378104561d6798186d SHA1 ed2669ba359cfd27254728b2a16565bc36b87596 SHA256 972c38f0c227cdf2ace54fa3cb0d0095864e88cf38c73759645151e3eae4b548
DIST uim-1.4.2.tar.bz2 2723523 RMD160 7f0c6a93fb31799643f6c1e594896fc817b2e7f9 SHA1 2ece459ac14e95b2bb2be6135c1a134354dcef09 SHA256 381a4981d942ad5aae01eb711318170706c1cd8ac91a45ab5c733906699d25c2
DIST uim-1.5.7.tar.bz2 3330555 RMD160 037677cd583c2b69293fbbc1c0393756d7c7adac SHA1 fbea2590286ddc857a7824d8544cb08842f4299f SHA256 f404b274c4b7e71b4b912912c758606585af476fcc5f3d602a08564187ad4e46
DIST uim-1.6.1.tar.bz2 6192431 RMD160 26c4e30f59c8eb005189d6778333079c81f8489c SHA1 412bb2df6041185084e2f64fb73357389bf992b5 SHA256 ee23965e26e6e9c52bdc37d87e66da9de2a491221b5f1989942f3666e9a44914
+DIST uim-1.7.0.tar.bz2 6402469 RMD160 e866f4270e60d0590a0a37331f3ccf64d7e48fbf SHA1 b79ed80c2557e804e6d3d2771a213a29cd932a73 SHA256 aa5da7324622df1471f3fdd217e809423695f857cdcec2d750f08748ffde65e8
EBUILD uim-1.4.2.ebuild 3987 RMD160 d290986b0fbefcd7855237c56ac59ec7457de6d4 SHA1 01fd6a01801b0aa17335c7df5582ef460cb229f3 SHA256 02cf0e6dba0b37e028d5e5aedd0aed1b4091a7522e245d55c95ef455d0a81143
EBUILD uim-1.5.7.ebuild 5340 RMD160 e1bea05e98821a63e91c5c687757878744aa2c9e SHA1 fbd35bd0e661dc6c55a05eb81c41f6387d90c8f8 SHA256 681eaeae231fdb61e242a736988b8bce08978a0bc15788101476ab24ad9f278e
EBUILD uim-1.6.1.ebuild 6001 RMD160 684885daddc35675be899fcd409ccb0ffbd59390 SHA1 fce90623f2f0f119dedb67c57fc3ca7fa4d521e8 SHA256 4f372578688a3ec393cfa8619d84d7189f0bdb6f23c0f03557616a0f02f8ffb1
-MISC ChangeLog 33042 RMD160 e4b73e88cfc399f99a6735e13d7d84319b02aa9a SHA1 20d185715ebbf1e6fd598e3c50551697d11d8695 SHA256 8d3e0967d6738bf186214be66114d44b1ff6b58c9eb4f28bf3b0142115a18d98
-MISC metadata.xml 961 RMD160 74d29238a618f2307a09fc3061f0652ceb305073 SHA1 665044f11f9f9b7e16b6b580a379b4138ffd2f1c SHA256 f1ca51e0e41161ec077f759a0e139bf523ace99a60e769b51e6a67fd549f075a
+EBUILD uim-1.7.0.ebuild 6767 RMD160 95b64f1012e05055bed60efcb685baf03ce6a1b4 SHA1 3971dff6899668c4d4f5edbd048742c5f53ffdcf SHA256 44d489fe8d4edcc5c3af2c1a1d737b6b19b3670f5ceacf4bf4c47c822a296e25
+MISC ChangeLog 33232 RMD160 1f448521ff4d6d899ca62bb548ffe41514b68686 SHA1 bbd4563e09e56e17632ed2b4f91cdf94eba70ca7 SHA256 c61f263e2baed515c0a3d74ac2178c188ea7f4116536bce7ccf22e2fd2f63bec
+MISC metadata.xml 1034 RMD160 429bb6d299b51424cae9a1819780f1fc584c0f98 SHA1 47841164009510e27566c649326d0aeca3372561 SHA256 db58c4986dba0f27028a4483ea64403ce8b5b5a47e25a9165f6c9d595eee5497
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
-iF4EAREIAAYFAk2RuXcACgkQXkR9YqOcLPH+1AD/Vmpnv5THIMd7Wn3Z1QdfYxIv
-Gx8CQQW533+a3iDLYkYA/1ZMI75wbVft7C2NxKPM44Y7YKaMOUDiHN2f2rVY+kqj
-=FWJ2
+iQIcBAEBAgAGBQJN2plLAAoJECaGw+YFKA1pvT4P/3Nv++rsemFiLjiaQuz5LyDQ
+zSIn9BhYgn2wgHsH4gY0wwdU8WafqnycMBgMwio61KPqnS0TXWBKByCH22Vb+PDe
+TfjeBLuzYMd36RVKQxD6HLaC5LZpikG/mswbIowZ11J78X2MYxH588dXpUQ8U36A
+An4Opl5QyimS7izJxlwvs02gGgfR/y5WEIosS8x9+ImWXH7X6X1Jc8kGqEEpzPpF
+HBT+5xKzdOT1ssqUaFOM0jtyiIVApxi9MRTll+8uXHTsjw4oNZjMMXu7/7QU3hPE
+Yvl99zFDELa9ZNvyB6B4Gyd1bkpEstlnNQBkGonw6ldpXPdrJCXxp/vbEJfbhN6S
+CGe8bdG02Ibv4URTIHy2CY74zgcsa2q3p1zLxJPbOhds4SDz2tM1apNw3nqdhr10
+4KMk3ec+3hyWXNe50URs8xRIKY0Q6olFF35gYFRQOFluG5ePpuQAOsthgS6MhgyO
+lzqjVD978mbClTBeE2REmTsT9dOwnTq5GeSXjwX0c2nF1q5O7VUe/gvhG244/VKs
+C0G7WHz1tiO1+3irwapC6ORghyB0iD4R8lTWHW8OqSls6mNBu+VKv+1JikRqkmyd
+CBFJbLut/dZ6rXx7d4tJSdhf2z867NlN0Hu7If2cvntr/xXS/f5GY+rrn9OGYWLD
+Uldzr+RDd4CpTScrWhgF
+=F38f
-----END PGP SIGNATURE-----
diff --git a/app-i18n/uim/files/xinput-uim b/app-i18n/uim/files/xinput-uim
index ff046b4fc851..a0969dd9f01a 100644
--- a/app-i18n/uim/files/xinput-uim
+++ b/app-i18n/uim/files/xinput-uim
@@ -1,5 +1,6 @@
XIM=uim
-XIM_PROGRAM=@EPREFIX@/usr/bin/uim-xim
+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
index 1d847239d5d0..57336b6a3202 100644
--- a/app-i18n/uim/metadata.xml
+++ b/app-i18n/uim/metadata.xml
@@ -14,6 +14,7 @@
</flag>
<flag name='eb'>Enable support for <pkg>dev-libs/eb</pkg></flag>
<flag name='ffi'>Enable support for <pkg>virtual/libffi</pkg></flag>
+ <flag name='gtk3'>Enable support for <pkg>x11-libs/gtk+</pkg>:3</flag>
<flag name='prime'>Enable support for <pkg>app-i18n/prime</pkg></flag>
<flag name='skk'>Enable support for <pkg>app-i18n/skk-jisyo</pkg></flag>
</use>
diff --git a/app-i18n/uim/uim-1.7.0.ebuild b/app-i18n/uim/uim-1.7.0.ebuild
new file mode 100644
index 000000000000..4af289fe6c34
--- /dev/null
+++ b/app-i18n/uim/uim-1.7.0.ebuild
@@ -0,0 +1,252 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/uim/uim-1.7.0.ebuild,v 1.1 2011/05/23 17:28:21 matsuu Exp $
+
+EAPI="3"
+inherit autotools eutils multilib elisp-common flag-o-matic
+
+DESCRIPTION="Simple, secure and flexible input method library"
+HOMEPAGE="http://code.google.com/p/uim/"
+SRC_URI="http://uim.googlecode.com/files/${P}.tar.bz2"
+
+LICENSE="BSD GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
+IUSE="+anthy canna curl eb emacs ffi gnome gtk gtk3 kde libedit libnotify m17n-lib ncurses nls prime qt4 skk sqlite ssl static-libs test unicode X xft linguas_zh_CN linguas_zh_TW linguas_ja linguas_ko"
+
+RESTRICT="test"
+
+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 )
+ ffi? ( virtual/libffi )
+ gnome? ( >=gnome-base/gnome-panel-2.14 )
+ gtk? ( >=x11-libs/gtk+-2.4:2 )
+ gtk3? ( x11-libs/gtk+:3 )
+ kde? ( >=kde-base/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 )
+ nls? ( virtual/libintl )
+ prime? ( app-i18n/prime )
+ qt4? ( x11-libs/qt-gui:4[qt3support] )
+ skk? ( app-i18n/skk-jisyo )
+ sqlite? ( dev-db/sqlite:3 )
+ ssl? ( dev-libs/openssl )
+ !dev-scheme/sigscheme
+ !app-i18n/uim-svn
+ !<app-i18n/prime-0.9.4"
+# >=dev-scheme/sigscheme-0.8.5
+# mana? ( app-i18n/mana )
+# scim? ( >=app-i18n/scim-1.3.0 ) # broken
+# sj3? ( >=app-i18n/sj3-2.0.1.21 )
+# wnn? ( app-i18n/wnn )
+# gnome? (
+# gtk? ( >=gnome-base/gnome-panel-2.14 )
+# gtk3? ( >=gnome-base/gnome-panel-3 )
+# )
+DEPEND="${RDEPEND}
+ dev-util/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
+ linguas_zh_CN? (
+ || ( media-fonts/font-isas-misc media-fonts/intlfonts )
+ )
+ linguas_zh_TW? (
+ media-fonts/intlfonts
+ )
+ linguas_ja? (
+ || ( media-fonts/font-jis-misc media-fonts/intlfonts )
+ )
+ linguas_ko? (
+ || ( media-fonts/font-daewoo-misc media-fonts/intlfonts )
+ )
+ )"
+# test? ( dev-scheme/gauche )
+
+SITEFILE=50${PN}-gentoo.el
+
+update_gtk_immodules() {
+ local GTK2_CONFDIR="/etc/gtk-2.0"
+ # bug #366889
+ if has_version '>=x11-libs/gtk+-2.22.1-r1:2' || has_multilib_profile ; then
+ GTK2_CONFDIR="${GTK2_CONFDIR}/$(get_abi_CHOST)"
+ fi
+ mkdir -p "${EPREFIX}${GTK2_CONFDIR}"
+
+ if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" ] ; then
+ "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" > "${EPREFIX}${GTK2_CONFDIR}/gtk.immodules"
+ fi
+}
+
+update_gtk3_immodules() {
+ if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-3.0" ] ; then
+ "${EPREFIX}/usr/bin/gtk-query-immodules-3.0" --update-cache
+ 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
+ #./autogen.sh
+ 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
+
+ #if use gnome ; then
+ # myconf="${myconf} $(use_enable gtk gnome-applet)"
+ # myconf="${myconf} $(use_enable gtk3 gnome3-applet)"
+ #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 ffi) \
+ $(use_enable gnome 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) \
+ $(use_with prime) \
+ --without-qt \
+ --without-qt-immodule \
+ $(use_with qt4 qt4) \
+ $(use_with qt4 qt4-immodule) \
+ $(use_with skk) \
+ $(use_with sqlite sqlite3) \
+ $(use_enable ssl openssl) \
+ $(use_enable static-libs static) \
+ $(use_with xft) \
+ ${myconf}
+ # $(use_enable qt4 qt4-qt3support) \
+}
+
+src_compile() {
+ emake || die "emake failed"
+
+ 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 || die "make install failed"
+
+ dodoc AUTHORS ChangeLog* NEWS README RELNOTE || die
+ 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
+ insinto /etc/X11/xinit/xinput.d
+ doins "${T}/uim.conf" || die
+
+ # collision with dev-scheme/sigscheme, bug #330975
+ # find "${ED}" -name '*gcroots*' -delete || 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 && update_gtk_immodules
+ use gtk3 && update_gtk3_immodules
+ 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 && update_gtk_immodules
+ use gtk3 && update_gtk3_immodules
+ use emacs && elisp-site-regen
+}