You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-i18n/ibus-rime/ibus-rime-1.2.ebuild

35 lines
759 B

# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
DESCRIPTION="Chinese Rime Input Method Engine for IBus"
HOMEPAGE="https://rime.im/ https://github.com/rime/ibus-rime"
SRC_URI="http://dl.bintray.com/lotem/rime/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
CDEPEND="app-i18n/ibus
app-i18n/librime
x11-libs/libnotify"
RDEPEND="${CDEPEND}
app-i18n/rime-data"
DEPEND="${CDEPEND}
dev-util/cmake
virtual/pkgconfig"
S="${WORKDIR}/${PN}"
src_prepare() {
sed -i \
-e "/^libexecdir/s:/lib:/libexec:" \
-e "/^[[:space:]]*PREFIX/s:/usr:${EPREFIX}/usr:" \
-e "s/ make/ \$(MAKE)/" \
Makefile
sed -i "/exec>/s:/usr/lib:${EPREFIX}/usr/libexec:" rime.xml
default
}