rexy712-overlay/dev-libs/libolm/libolm-3.2.11.ebuild
2024-03-31 12:36:25 -07:00

37 lines
738 B
Bash

# Copyright 2020 rexy712
# Distributed under the terms of the GNU General Public License v3
EAPI=8
inherit cmake-multilib
MY_P="olm"
S="${WORKDIR}/${MY_P}-${PV}"
DESCRIPTION="Implementation of the olm and megolm cryptographic ratchets"
HOMEPAGE="https://gitlab.matrix.org/matrix-org/olm"
SRC_URI="https://gitlab.matrix.org/matrix-org/olm/-/archive/${PV}/${MY_P}-${PV}.tar.gz"
LICENSE="Apache-2.0"
SLOT="3/1"
KEYWORDS="~amd64 ~x86"
IUSE="static-libs test"
RDEPEND=""
DEPEND="${RDEPEND}
dev-build/cmake
dev-build/ninja
"
BDEPEND=""
src_prepare(){
cmake_src_prepare
}
src_configure(){
local mycmakeargs=(
-DOLM_TESTS=$(usex test ON OFF)
-DBUILD_SHARED_LIBS=$(usex static-libs OFF ON)
)
cmake-multilib_src_configure
}