librime-1.2.ebuild 1016 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit cmake-utils multilib versionator toolchain-funcs
  5. DESCRIPTION="Rime Input Method Engine library"
  6. HOMEPAGE="http://rime.im/"
  7. SRC_URI="http://dl.bintray.com/lotem/rime/${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
  13. dev-cpp/glog
  14. >=dev-cpp/yaml-cpp-0.5.0
  15. dev-db/kyotocabinet
  16. dev-libs/marisa
  17. >=dev-libs/boost-1.46.0[threads(+)]
  18. sys-libs/zlib
  19. x11-proto/xproto"
  20. DEPEND="${RDEPEND}
  21. test? ( dev-cpp/gtest )"
  22. S="${WORKDIR}/${PN}"
  23. #bug 496080, backport patch for <gcc-4.8
  24. PATCHES=(
  25. "${FILESDIR}/${PN}-1.2-BOOST_NO_SCOPED_ENUMS.patch"
  26. "${FILESDIR}/${PN}-1.1-gcc53613.patch"
  27. )
  28. src_configure() {
  29. local mycmakeargs=(
  30. $(cmake-utils_use_build static-libs STATIC)
  31. -DBUILD_DATA=OFF
  32. -DBUILD_SEPARATE_LIBS=OFF
  33. $(cmake-utils_use_build test TEST)
  34. -DLIB_INSTALL_DIR=/usr/$(get_libdir)
  35. )
  36. cmake-utils_src_configure
  37. }