rabbitmq-c-0.8.0.ebuild 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="6"
  4. inherit cmake-utils
  5. DESCRIPTION="RabbitMQ C client"
  6. HOMEPAGE="https://github.com/alanxz/rabbitmq-c"
  7. if [[ ${PV} == *9999* ]]; then
  8. inherit git-r3
  9. EGIT_REPO_URI="git://github.com/alanxz/rabbitmq-c.git"
  10. else
  11. SRC_URI="https://github.com/alanxz/rabbitmq-c/archive/v${PV}.zip -> ${PN}-v${PV}.zip"
  12. KEYWORDS="amd64 arm hppa x86"
  13. fi
  14. LICENSE="MIT"
  15. SLOT="0/4"
  16. IUSE="doc libressl test +ssl static-libs tools"
  17. REQUIRED_USE="test? ( static-libs )"
  18. RDEPEND="ssl? (
  19. libressl? ( dev-libs/libressl:= )
  20. !libressl? ( dev-libs/openssl:0= )
  21. )
  22. tools? ( dev-libs/popt )"
  23. DEPEND="${DEPEND}
  24. doc? ( app-doc/doxygen )
  25. tools? ( app-text/xmlto )"
  26. DOCS=( AUTHORS README.md THANKS TODO )
  27. src_configure() {
  28. mycmakeargs=(
  29. -DCMAKE_SKIP_RPATH=ON
  30. -DBUILD_API_DOCS=$(usex doc)
  31. -DBUILD_STATIC_LIBS=$(usex static-libs)
  32. -DBUILD_TESTS=$(usex test)
  33. -DBUILD_TOOLS=$(usex tools)
  34. -DBUILD_TOOLS_DOCS=$(usex tools)
  35. -DENABLE_SSL_SUPPORT=$(usex ssl)
  36. )
  37. cmake-utils_src_configure
  38. }