diff options
Diffstat (limited to 'app-i18n/sunpinyin/sunpinyin-2.0.3_rc2.ebuild')
-rw-r--r-- | app-i18n/sunpinyin/sunpinyin-2.0.3_rc2.ebuild | 49 |
1 files changed, 16 insertions, 33 deletions
diff --git a/app-i18n/sunpinyin/sunpinyin-2.0.3_rc2.ebuild b/app-i18n/sunpinyin/sunpinyin-2.0.3_rc2.ebuild index 9c6187f..0f4e52e 100644 --- a/app-i18n/sunpinyin/sunpinyin-2.0.3_rc2.ebuild +++ b/app-i18n/sunpinyin/sunpinyin-2.0.3_rc2.ebuild @@ -3,45 +3,28 @@ # $Header: /var/cvsroot/gentoo-x86/app-i18n/sunpinyin/sunpinyin-2.0.2.ebuild,v 1.1 2010/12/02 07:03:49 qiaomuf Exp $ EAPI="1" -PYTHON_DEPEND="ibus? 2:2.5" -inherit python scons-utils +inherit scons-utils MY_P=${P/_/-} -MY_PV=${PV/_/-} -ARCHIVE="${PN}-all-in-one-${MY_PV}.tar.gz" DESCRIPTION="SunPinyin is a SLM (Statistical Language Model) based IME" HOMEPAGE="http://sunpinyin.googlecode.com" -SRC_URI="${HOMEPAGE}/files/${ARCHIVE} +SRC_URI="${HOMEPAGE}/files/${MY_P}.tar.gz http://open-gram.googlecode.com/files/dict.utf8.tar.bz2 http://open-gram.googlecode.com/files/lm_sc.t3g.arpa.tar.bz2" -RESTRICT="mirror" LICENSE="LGPL-2.1 CDDL" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="ibus scim +xim" +IUSE="" -RDEPEND="dev-db/sqlite:3 - ibus? ( - >=app-i18n/ibus-1.1 - sys-devel/gettext - ) - xim? ( - x11-libs/gtk+:2 - x11-libs/libX11 - ) - scim? ( - app-i18n/scim - x11-libs/gtk+:2 - )" +RDEPEND="dev-db/sqlite:3" DEPEND="${RDEPEND} - dev-util/pkgconfig - xim? ( x11-proto/xproto )" + dev-util/pkgconfig" S="${WORKDIR}/${MY_P}" src_unpack() { - unpack "${ARCHIVE}" + unpack "${MY_P}.tar.gz" mv "${DISTDIR}/dict.utf8.tar.bz2" "${S}/raw/" || die "dict file not found" mv "${DISTDIR}/lm_sc.t3g.arpa.tar.bz2" "${S}/raw/" || die "dict file not found" } @@ -52,14 +35,14 @@ src_compile() { src_install() { escons --prefix="/usr" --install-sandbox="${D}" install - if use ibus; then - cd "${S}/wrapper/ibus" - escons --prefix="/usr" --install-sandbox="${D}" install - elif use xim; then - cd "${S}/wrapper/xim" - escons --prefix="/usr" --install-sandbox="${D}" install - elif use scim; then - cd "${S}/wrapper/scim" - escons --prefix="/usr" --install-sandbox="${D}" install - fi +} + +pkg_postinst() { + elog "" + elog "To use any wrapper for ${PN}, please merge any of the following" + elog "packages: " + elog "emerge app-i18n/ibus-sunpinyin" + elog "emerge app-i18n/scim-sunpinyin" + elog "emerge app-i18n/xsunpinyin" + elog "" } |