gentoo-zh/app-i18n/fcitx-rime/fcitx-rime-9999.ebuild
Lan Yixun (dlan) 293f68e441 app-i18n/fcitx-rime: update metadata.xml
Signed-off-by: Lan Yixun (dlan) <dennis.yxun@gmail.com>
2012-09-03 13:12:16 +08:00

37 lines
863 B
Bash

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit cmake-utils git-2
DESCRIPTION="Rime Support for Fcitx"
HOMEPAGE="http://code.google.com/p/rimeime/"
EGIT_REPO_URI="git://github.com/fcitx/${PN}.git"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE=""
RDEPEND="
app-i18n/rime-data
app-i18n/fcitx
app-i18n/librime
x11-libs/libnotify
"
DEPEND="${RDEPEND}"
src_prepare() {
# dont build data resource here, already provided by app-i18n/rime-data
sed -i -e 's|add_subdirectory(data)||' CMakeLists.txt || die
# search correct data path
sed -i -e 's|/usr/share/rime/brise|/usr/share/rime-data|' \
cmake/FindBrise.cmake || die
# change the patch
sed -i -e '/ibus_rime_traits\.shared_data_dir/s/= shared_data_dir/= \
\"\/usr\/share\/rime-data\"/' src/fcitx-rime.c || die
}