# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-i18n/scim-sunpinyin/scim-sunpinyin-2.0.3-r1.ebuild,v 1.2 2011/04/17 09:14:15 qiaomuf Exp $ EAPI="1" inherit eutils scons-utils DESCRIPTION="The SunPinyin IMEngine for Smart Common Input Method (SCIM)" HOMEPAGE="http://sunpinyin.googlecode.com" SRC_URI="${HOMEPAGE}/files/${P}.tar.gz" LICENSE="LGPL-2.1 CDDL" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="app-i18n/scim app-i18n/sunpinyin x11-libs/gtk+:2 " RDEPEND="${DEPEND}" src_unpack() { unpack "${P}.tar.gz" cd "${S}" && epatch "${FILESDIR}/${P}-force-switch.patch" } src_compile() { escons --prefix="/usr" || die } src_install() { escons --prefix="/usr" --install-sandbox="${D}" install || die }