Gentoo Archives: gentoo-commits

From: "Matsuu Takuto (matsuu)" <matsuu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-i18n/x-unikey: ChangeLog x-unikey-1.0.4-r1.ebuild x-unikey-1.0.ebuild x-unikey-1.0.2.ebuild
Date: Wed, 31 Dec 2008 14:28:45
Message-Id: E1LI23v-0008Ve-4U@stork.gentoo.org
1 matsuu 08/12/31 14:28:43
2
3 Modified: ChangeLog
4 Added: x-unikey-1.0.4-r1.ebuild
5 Removed: x-unikey-1.0.ebuild x-unikey-1.0.2.ebuild
6 Log:
7 Added ~amd64. Fixed gcc-4.3 issue, bug #250682. Clean up.
8 (Portage version: 2.1.6.4/cvs/Linux 2.6.28-gentoo x86_64)
9
10 Revision Changes Path
11 1.20 app-i18n/x-unikey/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/x-unikey/ChangeLog?rev=1.20&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/x-unikey/ChangeLog?rev=1.20&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/x-unikey/ChangeLog?r1=1.19&r2=1.20
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-i18n/x-unikey/ChangeLog,v
20 retrieving revision 1.19
21 retrieving revision 1.20
22 diff -u -r1.19 -r1.20
23 --- ChangeLog 16 Aug 2008 17:05:12 -0000 1.19
24 +++ ChangeLog 31 Dec 2008 14:28:43 -0000 1.20
25 @@ -1,6 +1,14 @@
26 # ChangeLog for app-i18n/x-unikey
27 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/x-unikey/ChangeLog,v 1.19 2008/08/16 17:05:12 tove Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/x-unikey/ChangeLog,v 1.20 2008/12/31 14:28:43 matsuu Exp $
30 +
31 +*x-unikey-1.0.4-r1 (31 Dec 2008)
32 +
33 + 31 Dec 2008; MATSUU Takuto <matsuu@g.o>
34 + +files/x-unikey-1.0.4-gcc43.patch, +files/x-unikey-1.0.4-gentoo.patch,
35 + -x-unikey-1.0.ebuild, -x-unikey-1.0.2.ebuild, +x-unikey-1.0.4-r1.ebuild:
36 + Added ~amd64. Fixed gcc-4.3 issue, bug #250682. Clean up. Removed old
37 + versions.
38
39 16 Aug 2008; Torsten Veller <tove@g.o> metadata.xml:
40 Remove pclouds from metadata.xml (#49680)
41
42
43
44 1.1 app-i18n/x-unikey/x-unikey-1.0.4-r1.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/x-unikey/x-unikey-1.0.4-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/x-unikey/x-unikey-1.0.4-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: x-unikey-1.0.4-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2008 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/app-i18n/x-unikey/x-unikey-1.0.4-r1.ebuild,v 1.1 2008/12/31 14:28:43 matsuu Exp $
54
55 inherit autotools eutils multilib
56
57 DESCRIPTION="Vietnamese X Input Method"
58 HOMEPAGE="http://www.unikey.org/"
59 SRC_URI="mirror://sourceforge/unikey/${P}.tar.bz2"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~ppc ~x86"
64 IUSE="nls gtk"
65
66 RDEPEND="x11-libs/libX11
67 x11-libs/libSM
68 x11-libs/libICE
69 gtk? ( >=x11-libs/gtk+-2.2 )
70 nls? ( virtual/libintl )"
71 DEPEND="${RDEPEND}
72 dev-util/pkgconfig
73 nls? ( sys-devel/gettext )"
74
75 pkg_setup() {
76 # An arch specific config directory is used on multilib systems
77 has_multilib_profile && GTK2_CONFDIR="/etc/gtk-2.0/${CHOST}"
78 GTK2_CONFDIR=${GTK2_CONFDIR:=/etc/gtk-2.0/}
79 }
80
81 src_unpack() {
82 unpack ${A}
83 cd "${S}"
84 epatch "${FILESDIR}/${P}-gcc43.patch"
85 epatch "${FILESDIR}/${P}-gentoo.patch"
86 eautoreconf
87 }
88
89 src_compile() {
90 local myconf
91 # --with-gtk-sysconfdir to prevent sandbox violation only
92 use gtk && myconf="--with-unikey-gtk --with-gtk-sysconfdir=${GTK2_CONFDIR}"
93 econf ${myconf} || die "./configure failed"
94 emake || die
95 }
96
97 src_install() {
98 if use gtk;then
99 dodir "${GTK2_CONFDIR}"
100 # emake DESTDIR="${D}" install -C src/unikey-gtk || die
101 fi
102 # dobin src/xim/ukxim src/gui/unikey
103 emake DESTDIR="${D}" install || die
104 doenvd "${FILESDIR}/01x-unikey"
105
106 dodoc AUTHORS CREDITS ChangeLog NEWS README TODO
107 cd doc
108 dodoc README1ST keymap-syntax manual options ukmacro \
109 unikey-manual-0.9.pdf unikey.png unikeyrc
110 }
111
112 pkg_postinst() {
113 elog
114 elog "Go to /etc/env.d/01x-unikey and uncomment appropriate lines"
115 elog "to enable x-unikey"
116 elog
117 if use gtk; then
118 gtk-query-immodules-2.0 > "${ROOT}/${GTK2_CONFDIR}/gtk.immodules"
119 elog "If you want to use x-unikey as the default gtk+ input method,"
120 elog "change GTK_IM_MODULE in /etc/env.d/01x-unikey to \"unikey\""
121 elog
122 fi
123 }
124
125 pkg_postrm() {
126 if use gtk; then
127 gtk-query-immodules-2.0 > "${ROOT}/${GTK2_CONFDIR}/gtk.immodules"
128 fi
129 }