# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ NEED_PYTHON="2.5" inherit autotools git python EGIT_REPO_URI="http://github.com/phuang/ibus-chewing.git" DESCRIPTION="Chinese Chewing Engine for IBus Framework" HOMEPAGE="http://ibus.googlecode.com" SRC_URI="" LICENSE="GPL-2" SLOT="0" KEYWORDS="" IUSE="nls" # Autopoint needs cvs. Bug #152872 COMMON_DEPEND=">=dev-libs/libchewing-0.3.0.901" DEPEND="${COMMON_DEPEND} dev-lang/swig dev-util/cvs dev-util/pkgconfig sys-devel/gettext" RDEPEND="${COMMON_DEPEND} app-i18n/ibus" src_unpack() { git_src_unpack autopoint || die "failed to run autopoint" eautoreconf } src_compile() { econf $(use_enable nls) emake || die "emake failed" } src_install() { emake install DESTDIR="${D}" || die "Install failed" dodoc AUTHORS ChangeLog NEWS README } pkg_postinst() { echo ewarn "This package is very experimental, please report your bugs to" ewarn "http://ibus.googlecode.com/issues/list" echo elog "You should run ibus-setup and enable IMEngines you want to use." echo }