You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
827 B

  1. # Copyright 1999-2021 Gentoo Authors
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=7
  4. inherit cmake
  5. DESCRIPTION="Prometheus Client Library for Modern C++"
  6. HOMEPAGE="https://github.com/jupp0r/prometheus-cpp"
  7. SRC_URI="https://github.com/jupp0r/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
  8. LICENSE="MIT"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~riscv ~x86"
  11. IUSE="test zlib"
  12. RESTRICT="!test? ( test )"
  13. RDEPEND="net-misc/curl
  14. sys-libs/zlib
  15. www-servers/civetweb[cxx]"
  16. DEPEND="${RDEPEND}
  17. test? (
  18. dev-cpp/benchmark
  19. dev-cpp/gtest
  20. )"
  21. BDEPEND="virtual/pkgconfig"
  22. src_configure() {
  23. local mycmakeargs=(
  24. -DENABLE_PULL=yes
  25. -DENABLE_PUSH=yes
  26. -DENABLE_COMPRESSION=$(usex zlib)
  27. -DENABLE_TESTING=$(usex test)
  28. -DUSE_THIRDPARTY_LIBRARIES=OFF
  29. -DGENERATE_PKGCONFIG=ON
  30. -DRUN_IWYU=OFF
  31. )
  32. cmake_src_configure
  33. }