# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/ebuildteam/app-i18n/gcin/gcin-0.8.8.ebuild,v 1.1 2005/03/13 14:30:00 scsi Exp $

inherit eutils

DESCRIPTION="Another Traditional Chinese IM."
HOMEPAGE="http://www.csie.nctu.edu.tw/~cp76/gcin/"
SRC_URI="http://www.csie.nctu.edu.tw/~cp76/gcin/download/${PN}-${PV}.tar.bz2"
#RESTRICT="nomirror"
KEYWORDS="x86"
DEPEND=""
RDEPEND="virtual/x11
    >=x11-libs/gtk+-2
    >=dev-libs/glib-2.4
    >=dev-libs/atk-1.0.1
    >=x11-libs/pango-1.4
    media-fonts/zh-kcfonts"
IUSE=""

MAKEOPTS="-j1"

src_compile() {
	cd ${S}
	#epatch ${FILESDIR}/gcin.install_dir_fix.patch
	./configure --prefix=/usr
	emake || die
}

src_install() {
	cd ${S}
	make DESTDIR=${D} install || die

	insinto /etc/xim-select/
	doins ${FILESDIR}/extras/gcin

	dodoc README
	dodoc COPYING
}