summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-i18n/libpinyin/libpinyin-1.3.0.ebuild')
-rw-r--r--app-i18n/libpinyin/libpinyin-1.3.0.ebuild36
1 files changed, 36 insertions, 0 deletions
diff --git a/app-i18n/libpinyin/libpinyin-1.3.0.ebuild b/app-i18n/libpinyin/libpinyin-1.3.0.ebuild
new file mode 100644
index 000000000000..02cdac51a4f1
--- /dev/null
+++ b/app-i18n/libpinyin/libpinyin-1.3.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils
+
+MODELV=11
+
+DESCRIPTION="Library for Chinese pinyin input methods"
+HOMEPAGE="https://github.com/libpinyin/libpinyin"
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
+ mirror://sourceforge/${PN}/models/model${MODELV}.text.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND="sys-libs/db:4.8
+ dev-libs/glib:2"
+DEPEND="${RDEPEND}
+ virtual/libintl
+ virtual/pkgconfig"
+
+src_prepare() {
+ ln -s "${DISTDIR}"/model${MODELV}.text.tar.gz data || die
+ sed -e '/wget/d' -i data/Makefile.am || die
+ epatch_user
+ eautoreconf
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}