summaryrefslogtreecommitdiffstats
path: root/app-i18n/gtk1-utf8/gtk1-utf8-1.0.ebuild
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
commitca9627e70852f6b2e835660df870fe3ab405882d (patch)
tree0a008b1d5b16fa0679a195ed7b5662c7891f591c /app-i18n/gtk1-utf8/gtk1-utf8-1.0.ebuild
downloaddarklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip
Initial import
Diffstat (limited to 'app-i18n/gtk1-utf8/gtk1-utf8-1.0.ebuild')
-rw-r--r--app-i18n/gtk1-utf8/gtk1-utf8-1.0.ebuild36
1 files changed, 36 insertions, 0 deletions
diff --git a/app-i18n/gtk1-utf8/gtk1-utf8-1.0.ebuild b/app-i18n/gtk1-utf8/gtk1-utf8-1.0.ebuild
new file mode 100644
index 0000000..a7101b0
--- /dev/null
+++ b/app-i18n/gtk1-utf8/gtk1-utf8-1.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+DESCRIPTION="Fix for GTK1+ && ru_RU.UTF8"
+HOMEPAGE="http://wiki.fantoo.ru/index.php/HOWTO_GTK1_with_UTF8"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 amd64"
+
+RDEPEND=">=x11-libs/gtk+-1.2.10-r11 x11-base/xorg-x11 media-fonts/terminus-font"
+DEPEND="${RDEPEND}"
+
+src_install() {
+ dodir /usr/lib/X11/locale/ru_RU.UTF-8
+ insinto /usr/lib/X11/locale/ru_RU.UTF-8/
+ doins ${FILESDIR}/XLC_LOCALE
+ doins ${FILESDIR}/XI18N_OBJS
+ doins ${FILESDIR}/Compose
+
+ insinto /etc/gtk
+ doins ${FILESDIR}/gtkrc.ru_RU.utf-8
+
+ einfo "Please, read documentation here"
+ einfo "http://wiki.fantoo.ru/index.php/HOWTO_GTK1_with_UTF8"
+}
+
+pkg_postinst() {
+ perl -pi -e 's|en_US.UTF-8/Compose\s+ru_RU.UTF-8|ru_RU.UTF-8/Compose ru_RU.UTF-8|' /usr/lib/X11/locale/compose.dir
+ perl -pi -e 's|en_US.UTF-8/Compose:\s+ru_RU.UTF-8|ru_RU.UTF-8/Compose: ru_RU.UTF-8|' /usr/lib/X11/locale/compose.dir
+ perl -pi -e 's|en_US.UTF-8/XLC_LOCALE\s+ru_RU.UTF-8|ru_RU.UTF-8/XLC_LOCALE ru_RU.UTF-8|' /usr/lib/X11/locale/locale.dir
+ perl -pi -e 's|en_US.UTF-8/XLC_LOCALE:\s+ru_RU.UTF-8|ru_RU.UTF-8/XLC_LOCALE: ru_RU.UTF-8|' /usr/lib/X11/locale/locale.dir
+}