summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/libchewing/libchewing-0.4.0.ebuild')
-rw-r--r--dev-libs/libchewing/libchewing-0.4.0.ebuild45
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-libs/libchewing/libchewing-0.4.0.ebuild b/dev-libs/libchewing/libchewing-0.4.0.ebuild
new file mode 100644
index 000000000000..f49701b0d6cb
--- /dev/null
+++ b/dev-libs/libchewing/libchewing-0.4.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libchewing/libchewing-0.4.0.ebuild,v 1.1 2014/11/02 08:34:51 yngwin Exp $
+
+EAPI=5
+
+inherit autotools eutils multilib toolchain-funcs
+
+DESCRIPTION="Library for Chinese Phonetic input method"
+HOMEPAGE="http://chewing.csie.net/"
+SRC_URI="https://github.com/chewing/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="static-libs test"
+
+DEPEND="
+ virtual/pkgconfig
+ test? (
+ sys-libs/ncurses[unicode]
+ >=dev-libs/check-0.9.4
+ )
+"
+
+DOCS=( AUTHORS NEWS README.md TODO )
+
+src_prepare() {
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_test() {
+ # test subdirectory is not enabled by default; this means that we
+ # have to make it explicit.
+ emake -C test check
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}