summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2005-05-30 21:51:00 +0000
committerMamoru Komachi <usata@gentoo.org>2005-05-30 21:51:00 +0000
commit00a493bd04fa7a0d59cfd5b64f5303011103ff4a (patch)
treeb01f4b6083594703717ebf8617243ab01c6e94b1 /app-i18n
parentStable on sparc (diff)
downloadgentoo-2-00a493bd04fa7a0d59cfd5b64f5303011103ff4a.tar.gz
gentoo-2-00a493bd04fa7a0d59cfd5b64f5303011103ff4a.tar.bz2
gentoo-2-00a493bd04fa7a0d59cfd5b64f5303011103ff4a.zip
Fixed --with-gtk2 option (uim-pref-gtk was not properly built)
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'app-i18n')
-rw-r--r--app-i18n/uim/ChangeLog8
-rw-r--r--app-i18n/uim/files/digest-uim-0.4.6-r23
-rw-r--r--app-i18n/uim/files/uim-0.4.6-gtk2_4-gentoo.diff11
-rw-r--r--app-i18n/uim/uim-0.4.6-r2.ebuild122
4 files changed, 143 insertions, 1 deletions
diff --git a/app-i18n/uim/ChangeLog b/app-i18n/uim/ChangeLog
index 4721b4ba6de3..66c0d4388458 100644
--- a/app-i18n/uim/ChangeLog
+++ b/app-i18n/uim/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-i18n/uim
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-i18n/uim/ChangeLog,v 1.93 2005/05/30 19:31:29 gustavoz Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/uim/ChangeLog,v 1.94 2005/05/30 21:51:00 usata Exp $
+
+*uim-0.4.6-r2 (30 May 2005)
+
+ 30 May 2005; Mamoru KOMACHI <usata@gentoo.org>
+ +files/uim-0.4.6-gtk2_4-gentoo.diff, +uim-0.4.6-r2.ebuild:
+ Fixed --with-gtk2 option (uim-pref-gtk was not properly built)
30 May 2005; Gustavo Zacarias <gustavoz@gentoo.org> uim-0.4.6-r1.ebuild:
Stable on sparc
diff --git a/app-i18n/uim/files/digest-uim-0.4.6-r2 b/app-i18n/uim/files/digest-uim-0.4.6-r2
new file mode 100644
index 000000000000..508954e86b6c
--- /dev/null
+++ b/app-i18n/uim/files/digest-uim-0.4.6-r2
@@ -0,0 +1,3 @@
+MD5 a61636b7eb4cab6c09eb3d661d1d7db4 uim-0.4.6.tar.gz 1467039
+MD5 ade5e6e9805e1aff24b51372526c04d3 skk-dic-serv.diff2.bin 2168
+MD5 c3bb6df8590986104e41c23330d90aef prime-1.0.0.1.tar.gz 300251
diff --git a/app-i18n/uim/files/uim-0.4.6-gtk2_4-gentoo.diff b/app-i18n/uim/files/uim-0.4.6-gtk2_4-gentoo.diff
new file mode 100644
index 000000000000..429b0fbdd9b9
--- /dev/null
+++ b/app-i18n/uim/files/uim-0.4.6-gtk2_4-gentoo.diff
@@ -0,0 +1,11 @@
+--- configure.ac-gtk2_4 2005-02-26 05:14:54.000000000 +0900
++++ configure.ac 2005-05-31 06:32:03.959252192 +0900
+@@ -232,7 +232,7 @@
+ ;;
+ yes|*)
+ PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.2.0, use_gtk2="yes",use_gtk2="no")
+- PKG_CHECK_MODULES(GTK2_4, gtk+-2.0 >= 2.4.0, use_gtk2.4="yes",use_gtk2.4="no")
++ PKG_CHECK_MODULES(GTK2_4, gtk+-2.0 >= 2.4.0, use_gtk2_4="yes",use_gtk2.4="no")
+ ;;
+ esac
+ ],
diff --git a/app-i18n/uim/uim-0.4.6-r2.ebuild b/app-i18n/uim/uim-0.4.6-r2.ebuild
new file mode 100644
index 000000000000..5f44529fb211
--- /dev/null
+++ b/app-i18n/uim/uim-0.4.6-r2.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/uim/uim-0.4.6-r2.ebuild,v 1.1 2005/05/30 21:51:00 usata Exp $
+
+inherit eutils kde-functions
+
+MY_P="${P/_/}"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="a simple, secure and flexible input method library"
+HOMEPAGE="http://uim.freedesktop.org/"
+SRC_URI="http://uim.freedesktop.org/releases/${MY_P}.tar.gz
+ http://lists.sourceforge.jp/mailman/archives/anthy-dev/attachments/20050313/47aab99c/skk-dic-serv.diff2.bin
+ http://prime.sourceforge.jp/src/prime-1.0.0.1.tar.gz"
+
+LICENSE="GPL-2 BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc x86"
+IUSE="gtk qt immqt immqt-bc nls X m17n-lib canna"
+
+RDEPEND="X? ( virtual/x11 )
+ gtk? ( >=x11-libs/gtk+-2 )
+ m17n-lib? ( dev-libs/m17n-lib )
+ !app-i18n/uim-svn
+ !app-i18n/uim-fep
+ canna? ( app-i18n/canna )
+ immqt? ( >=x11-libs/qt-3.3.3-r1 )
+ immqt-bc? ( >=x11-libs/qt-3.3.3-r1 )
+ qt? ( >=x11-libs/qt-3.3.3-r1
+ !app-i18n/uim-kdehelper )
+ !<app-i18n/prime-0.9.4"
+DEPEND="${RDEPEND}
+ dev-lang/perl
+ dev-perl/XML-Parser
+ >=sys-apps/sed-4
+ sys-devel/autoconf
+ sys-devel/automake
+ sys-devel/libtool
+ nls? ( sys-devel/gettext )"
+
+# An arch specific config directory is used on multilib systems
+has_multilib_profile && GTK2_CONFDIR="/etc/gtk-2.0/${CHOST}"
+GTK2_CONFDIR=${GTK2_CONFDIR:=/etc/gtk-2.0/}
+
+src_unpack() {
+ unpack ${A}
+ cp "${DISTDIR}"/skk-dic-serv.diff2.bin "${WORKDIR}"/skk-dic-serv.diff2.gz
+
+ cd "${S}"
+ # we execute gtk-query-immodules-2.0 in pkg_postinst()
+ # to not violate sandbox.
+ sed -i -e "/gtk-query-immodules-2.0/s/.*/ :\\\\/g" \
+ Makefile.am || die
+ use X || sed -i -e '/^SUBDIRS/s/xim//' Makefile.in || die
+ cd uim; epatch "${WORKDIR}"/skk-dic-serv.diff2.gz
+ cd "${S}"; epatch "${FILESDIR}"/${P}-gtk2_4-gentoo.diff
+}
+
+src_compile() {
+ local myconf
+ if use immqt || use immqt-bc ; then
+ myconf="${myconf} --enable-qt-immodule"
+ export CPPFLAGS="${CPPFLAGS} -I${S}/qt"
+ fi
+ use qt && set-qtdir 3
+
+ myconf="$(use_enable nls)
+ $(use_with X x)
+ $(use_with gtk gtk2)
+ $(use_with m17n-lib m17nlib)
+ $(use_with canna)
+ $(use_with qt)"
+
+ autoreconf
+ libtoolize --copy --force
+
+ econf ${myconf} || die "econf failed"
+ emake -j1 || die "emake failed"
+
+ cd ${WORKDIR}/prime-1.0.0.1
+ econf || die
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+
+ cd ${WORKDIR}/prime-1.0.0.1
+ make DESTDIR="${D}" install-uim || die "make install-uim failed"
+ cd -
+
+ dodoc AUTHORS ChangeLog INSTALL* NEWS README*
+ dodoc doc/{HELPER-CANDWIN,KEY,UIM-SH}
+ use X && dodoc doc/XIM-SERVER
+}
+
+pkg_postinst() {
+ einfo
+ einfo "To use uim-anthy you should emerge app-i18n/anthy or app-i18n/anthy-ss."
+ einfo "To use uim-skk you should emerge app-i18n/skk-jisyo."
+ einfo "To use uim-prime you should emerge app-i18n/prime."
+ einfo
+
+ ewarn
+ ewarn "New input method switcher has been introduced. You need to set"
+ ewarn
+ ewarn "% GTK_IM_MODULE=uim ; export GTK_IM_MODULE"
+ ewarn "% XMODIFIERS=@im=uim ; export XMODIFIERS"
+ ewarn
+ ewarn "If you would like to use uim-anthy as default input method, put"
+ ewarn "(define default-im-name 'anthy)"
+ ewarn "to your ~/.uim."
+ ewarn
+ ewarn "All input methods can be found by running uim-im-switcher-gtk"
+ ewarn "or uim-im-switcher-qt."
+ ewarn
+
+ use gtk && gtk-query-immodules-2.0 > ${ROOT}/${GTK2_CONFDIR}/gtk.immodules
+}
+
+pkg_postrm() {
+ use gtk && gtk-query-immodules-2.0 > ${ROOT}/${GTK2_CONFDIR}/gtk.immodules
+}