librime-1.2.9.ebuild 913 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit cmake-utils multilib versionator vcs-snapshot toolchain-funcs
  5. DESCRIPTION="Rime Input Method Engine library"
  6. HOMEPAGE="http://rime.im/"
  7. SRC_URI="https://github.com/rime/${PN}/archive/rime-${PV}.tar.gz -> ${P}.tar.gz"
  8. LICENSE="GPL-3"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
  11. IUSE="static-libs test"
  12. RDEPEND=">app-i18n/opencc-1.0.2
  13. dev-cpp/glog
  14. >=dev-cpp/yaml-cpp-0.5.0
  15. dev-db/kyotocabinet
  16. dev-libs/leveldb
  17. dev-libs/marisa
  18. >=dev-libs/boost-1.46.0[threads(+)]
  19. sys-libs/zlib"
  20. DEPEND="${RDEPEND}
  21. x11-proto/xproto
  22. test? ( dev-cpp/gtest )"
  23. src_configure() {
  24. local mycmakeargs=(
  25. $(cmake-utils_use_build static-libs STATIC)
  26. -DBUILD_DATA=OFF
  27. -DBUILD_SEPARATE_LIBS=OFF
  28. $(cmake-utils_use_build test TEST)
  29. -DLIB_INSTALL_DIR=/usr/$(get_libdir)
  30. )
  31. cmake-utils_src_configure
  32. }