blob: ff8ffe7fa05fb26fcdbe2ea1e91752486305cc04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# 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
}
|