summaryrefslogtreecommitdiffstats
path: root/app-i18n/gtk1-utf8/gtk1-utf8-1.1.ebuild
blob: 1b1ef04ec3452ce347b895c6a0c78e644863d9c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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/share/X11/locale/ru_RU.UTF-8
	insinto /usr/share/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/share/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/share/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/share/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/share/X11/locale/locale.dir
}