32 lines
956 B
Bash
32 lines
956 B
Bash
# Copyright 1999-2012 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/app-i18n/fcitx-rime/fcitx-rime-0.1.1.ebuild,v 1.1 2012/09/01 10:52:19 yngwin Exp $
|
|
|
|
EAPI=4
|
|
|
|
inherit cmake-utils
|
|
|
|
DESCRIPTION="Rime Support for Fcitx"
|
|
HOMEPAGE="http://code.google.com/p/rimeime/"
|
|
SRC_URI="https://fcitx.googlecode.com/files/${P}.tar.xz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE=""
|
|
|
|
RDEPEND="app-i18n/fcitx
|
|
app-i18n/librime
|
|
app-i18n/rime-data
|
|
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
|
|
sed -i -e '/ibus_rime_traits\.shared_data_dir/s/= shared_data_dir/= \
|
|
\"\/usr\/share\/rime-data\"/' src/fcitx-rime.c || die
|
|
}
|