tokumx-2.0.2.ebuild 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. CMAKE_BUILD_TYPE=Release
  5. PYTHON_COMPAT=( python2_7 )
  6. inherit python-r1 cmake-utils pax-utils check-reqs
  7. MY_P=${PN}-enterprise-${PV}
  8. DESCRIPTION="An open source, high-performance distribution of MongoDB"
  9. HOMEPAGE="https://www.percona.com/software/mongo-database/percona-tokumx"
  10. SRC_URI="https://www.percona.com/downloads/percona-tokumx/${MY_P}/source/tarball/${MY_P}.tar.gz"
  11. LICENSE="AGPL-3 Apache-2.0"
  12. SLOT="0"
  13. KEYWORDS="~amd64"
  14. IUSE="pax_kernel"
  15. RDEPEND="
  16. dev-libs/jemalloc
  17. !dev-libs/mongo-cxx-driver
  18. >=dev-libs/boost-1.50[threads(+)]
  19. >=dev-libs/libpcre-8.30[cxx]
  20. net-libs/libpcap"
  21. DEPEND="${RDEPEND}
  22. dev-util/valgrind
  23. sys-libs/ncurses
  24. sys-libs/readline
  25. pax_kernel? ( sys-apps/paxctl sys-apps/elfix )
  26. "
  27. S="${WORKDIR}/${MY_P}"
  28. QA_PRESTRIPPED="/usr/lib64/libHotBackup.so"
  29. CHECKREQS_DISK_BUILD="13G"
  30. src_prepare() {
  31. eapply "${FILESDIR}/${P}-no-werror.patch"
  32. eapply "${FILESDIR}/${P}-boost-57.patch"
  33. cmake-utils_src_prepare
  34. }
  35. src_configure() {
  36. local mycmakeargs=(
  37. -DTOKU_DEBUG_PARANOID=OFF
  38. -DUSE_VALGRIND=OFF
  39. -DUSE_BDB=OFF
  40. -DBUILD_TESTING=OFF
  41. -DTOKUMX_DISTNAME=${PV}
  42. -DLIBJEMALLOC="jemalloc"
  43. -DTOKUMX_STRIP_BINARIES=0
  44. -DUSE_SYSTEM_PCRE=1
  45. -DUSE_SYSTEM_BOOST=1
  46. )
  47. cmake-utils_src_configure
  48. }
  49. src_install() {
  50. cmake-utils_src_install
  51. pax-mark -m "${D}"/usr/bin/mongo
  52. # Remove unnecessary files
  53. rm -r "${D}usr/buildscripts" "${D}usr/scripts" "${D}usr/src" "${D}usr/include/db.h" || die
  54. # Correctly install this python script
  55. python_foreach_impl python_doscript scripts/tokumxstat.py
  56. # Clean up documentation installed to /usr
  57. pushd "${D}usr/" || die
  58. rm GNU-AGPL-3.0 LICENSE.txt NEWS README README.md README-TOKUDB README-TOKUKV SConstruct THIRD-PARTY-NOTICES || die
  59. popd || die
  60. dodoc README.md distsrc/NEWS distsrc/README distsrc/THIRD-PARTY-NOTICES
  61. newdoc src/third_party/ft-index/README-TOKUDB README-TOKUKV
  62. }