diff options
Diffstat (limited to 'app-i18n/im-ja/im-ja-1.3-r1.ebuild')
-rw-r--r-- | app-i18n/im-ja/im-ja-1.3-r1.ebuild | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/app-i18n/im-ja/im-ja-1.3-r1.ebuild b/app-i18n/im-ja/im-ja-1.3-r1.ebuild index 97731c8097b5..9f05709f330d 100644 --- a/app-i18n/im-ja/im-ja-1.3-r1.ebuild +++ b/app-i18n/im-ja/im-ja-1.3-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/im-ja/im-ja-1.3-r1.ebuild,v 1.4 2005/03/27 09:06:36 kloeri Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-i18n/im-ja/im-ja-1.3-r1.ebuild,v 1.5 2005/04/14 16:29:48 usata Exp $ inherit gnome2 eutils @@ -36,6 +36,14 @@ RDEPEND="virtual/libc DOCS="AUTHORS README ChangeLog TODO" +get_gtk_confdir() { + if useq amd64 || ( [ "${CONF_LIBDIR}" == "lib32" ] && useq x86 ) ; then + echo "/etc/gtk-2.0/${CHOST}" + else + echo "/etc/gtk-2.0" + fi +} + src_compile() { local myconf # You cannot use `use_enable ...` here. im-ja's configure script @@ -55,7 +63,7 @@ src_compile() { pkg_postinst() { if [ -x /usr/bin/gtk-query-immodules-2.0 ] ; then - gtk-query-immodules-2.0 > ${ROOT}/etc/gtk-2.0/gtk.immodules + gtk-query-immodules-2.0 > ${ROOT}/$(get_gtk_confdir)/gtk.immodules fi gnome2_pkg_postinst einfo @@ -70,7 +78,7 @@ pkg_postinst() { pkg_postrm() { if [ -x /usr/bin/gtk-query-immodules-2.0 ] ; then - gtk-query-immodules-2.0 > ${ROOT}/etc/gtk-2.0/gtk.immodules + gtk-query-immodules-2.0 > ${ROOT}/$(get_gtk_confdir)/gtk.immodules fi gnome2_pkg_postrm } |