summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-i18n/ibus-rime/ibus-rime-1.4.0.ebuild')
-rw-r--r--app-i18n/ibus-rime/ibus-rime-1.4.0.ebuild33
1 files changed, 33 insertions, 0 deletions
diff --git a/app-i18n/ibus-rime/ibus-rime-1.4.0.ebuild b/app-i18n/ibus-rime/ibus-rime-1.4.0.ebuild
new file mode 100644
index 000000000000..f59ab58a8622
--- /dev/null
+++ b/app-i18n/ibus-rime/ibus-rime-1.4.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Chinese Rime Input Method Engine for IBus"
+HOMEPAGE="https://rime.im/ https://github.com/rime/ibus-rime"
+SRC_URI="https://github.com/rime/${PN}/archive/${PV}.tar.gz -> ${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"
+
+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
+}