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.
 
 
 

37 lines
688 B

  1. # Copyright 2020 Gentoo Authors
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=7
  4. inherit cmake
  5. DESCRIPTION="Implementation of the olm and megolm cryptographic ratchets"
  6. HOMEPAGE="https://gitlab.matrix.org/matrix-org/olm"
  7. SRC_URI="https://gitlab.matrix.org/matrix-org/${PN}/-/archive/${PV}/${P}.tar.bz2"
  8. LICENSE="Apache-2.0"
  9. SLOT="0"
  10. IUSE="doc test"
  11. KEYWORDS="~amd64"
  12. RDEPEND=""
  13. DEPEND="${RDEPEND}"
  14. src_configure() {
  15. local -a mycmakeargs=(
  16. -DOLM_TESTS="$(usex test)"
  17. )
  18. cmake_src_configure
  19. }
  20. src_test() {
  21. BUILD_DIR="${BUILD_DIR}/tests" cmake_src_test
  22. }
  23. src_install() {
  24. use doc && DOCS=( README.md docs/{{,meg}olm,signing}.md )
  25. cmake_src_install
  26. }