blob: 090a2632c16d94517cfdc45b2ecd3341ef5e4124 [file] [log] [blame]
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI="4"
inherit eutils
DESCRIPTION="the Chinese PinYin and Bopomofo conversion library"
HOMEPAGE="http://code.google.com/p/pyzy/"
SRC_URI="http://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/${P}.tar.gz
http://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/${PN}-database-1.0.0.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 x86 arm"
IUSE=""
RDEPEND=">=dev-db/sqlite-3.6.18
>=dev-libs/glib-2.24
sys-apps/util-linux"
DEPEND="${RDEPEND}
dev-util/pkgconfig
>=sys-devel/gettext-0.16.1"
src_prepare() {
# Using open-phrase database downloaded by this ebuild script.
epatch "${FILESDIR}"/pyzy-dont-download-dictionary-file.patch
mv ../db ./data/db/open-phrase/ || die
}
src_configure() {
econf \
--enable-db-open-phrase \
--disable-db-android
}