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
matsuu      08/12/31 14:28:43

  Modified:             ChangeLog
  Added:                x-unikey-1.0.4-r1.ebuild
  Removed:              x-unikey-1.0.ebuild x-unikey-1.0.2.ebuild
  Log:
  Added ~amd64. Fixed gcc-4.3 issue, bug #250682. Clean up.
  (Portage version: 2.1.6.4/cvs/Linux 2.6.28-gentoo x86_64)

Revision  Changes    Path
1.20                 app-i18n/x-unikey/ChangeLog

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/x-unikey/ChangeLog?rev=1.20&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/x-unikey/ChangeLog?rev=1.20&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/x-unikey/ChangeLog?r1=1.19&r2=1.20

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-i18n/x-unikey/ChangeLog,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- ChangeLog	16 Aug 2008 17:05:12 -0000	1.19
+++ ChangeLog	31 Dec 2008 14:28:43 -0000	1.20
@@ -1,6 +1,14 @@
 # ChangeLog for app-i18n/x-unikey
 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-i18n/x-unikey/ChangeLog,v 1.19 2008/08/16 17:05:12 tove Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/x-unikey/ChangeLog,v 1.20 2008/12/31 14:28:43 matsuu Exp $
+
+*x-unikey-1.0.4-r1 (31 Dec 2008)
+
+  31 Dec 2008; MATSUU Takuto <matsuu@g.o>
+  +files/x-unikey-1.0.4-gcc43.patch, +files/x-unikey-1.0.4-gentoo.patch,
+  -x-unikey-1.0.ebuild, -x-unikey-1.0.2.ebuild, +x-unikey-1.0.4-r1.ebuild:
+  Added ~amd64. Fixed gcc-4.3 issue, bug #250682. Clean up. Removed old
+  versions.
 
   16 Aug 2008; Torsten Veller <tove@g.o> metadata.xml:
   Remove pclouds from metadata.xml (#49680)



1.1                  app-i18n/x-unikey/x-unikey-1.0.4-r1.ebuild

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
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

Index: x-unikey-1.0.4-r1.ebuild
===================================================================
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $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 $

inherit autotools eutils multilib

DESCRIPTION="Vietnamese X Input Method"
HOMEPAGE="http://www.unikey.org/"
SRC_URI="mirror://sourceforge/unikey/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="nls gtk"

RDEPEND="x11-libs/libX11
	x11-libs/libSM
	x11-libs/libICE
	gtk? ( >=x11-libs/gtk+-2.2 )
	nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
	dev-util/pkgconfig
	nls? ( sys-devel/gettext )"

pkg_setup() {
	# 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}
	cd "${S}"
	epatch "${FILESDIR}/${P}-gcc43.patch"
	epatch "${FILESDIR}/${P}-gentoo.patch"
	eautoreconf
}

src_compile() {
	local myconf
	# --with-gtk-sysconfdir to prevent sandbox violation only
	use gtk && myconf="--with-unikey-gtk --with-gtk-sysconfdir=${GTK2_CONFDIR}"
	econf ${myconf} || die "./configure failed"
	emake || die
}

src_install() {
	if use gtk;then
		dodir "${GTK2_CONFDIR}"
#		emake DESTDIR="${D}" install -C src/unikey-gtk || die
	fi
#	dobin src/xim/ukxim src/gui/unikey
	emake DESTDIR="${D}" install || die
	doenvd "${FILESDIR}/01x-unikey"

	dodoc AUTHORS CREDITS ChangeLog NEWS README TODO
	cd doc
	dodoc README1ST keymap-syntax manual options ukmacro \
		unikey-manual-0.9.pdf unikey.png unikeyrc
}

pkg_postinst() {
	elog
	elog "Go to /etc/env.d/01x-unikey and uncomment appropriate lines"
	elog "to enable x-unikey"
	elog
	if use gtk; then
		gtk-query-immodules-2.0 > "${ROOT}/${GTK2_CONFDIR}/gtk.immodules"
		elog "If you want to use x-unikey as the default gtk+ input method,"
		elog "change GTK_IM_MODULE in /etc/env.d/01x-unikey to \"unikey\""
		elog
	fi
}

pkg_postrm() {
	if use gtk; then
		gtk-query-immodules-2.0 > "${ROOT}/${GTK2_CONFDIR}/gtk.immodules"
	fi
}