# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="3" CMAKE_MIN_VERSION="2.6" PYTHON_DEPEND="python? 2" inherit cmake-utils eutils multilib python [[ ${PV} == 9999 ]] && inherit mercurial DESCRIPTION="A fork from google pinyin on android" HOMEPAGE="http://code.google.com/p/libgooglepinyin/" if [[ ${PV} == 9999 ]]; then EHG_REPO_URI="http://code.google.com/p/${PN}/" SRC_URI="" else SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.bz2" fi LICENSE="Apache-2.0" SLOT="0" [[ ${PV} == 9999 ]] || KEYWORDS="~amd64 ~x86" IUSE="ibus opencc python static-libs" RDEPEND="ibus? ( >=app-i18n/ibus-1.3.9 ) opencc? ( app-i18n/opencc )" DEPEND="${RDEPEND}" pkg_setup() { python_set_active_version 2 python_pkg_setup } src_prepare() { epatch "${FILESDIR}/${P}-ldflags.patch" } src_configure() { local mycmakeargs=( -DLIB_INSTALL_DIR=/usr/$(get_libdir) $(cmake-utils_use_enable ibus IBUS) $(cmake-utils_use_enable python PYTHON2) $(cmake-utils_use_enable static-libs STATIC) ) cmake-utils_src_configure }