# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 CMAKE_CHECK_ADDITIONAL_FILES=( 3rd_party/xdg/CMakeLists.txt ) inherit lomiri if [[ ${PV} == 9999 ]]; then KEYWORDS="" EGIT_REPO_URI="https://gitlab.com/ubports/development/core/${PN}.git" inherit git-r3 else KEYWORDS="~amd64" SRC_URI="https://gitlab.com/ubports/development/core/${PN}/-/archive/${PV}/${P}.tar.gz" fi git_commit="608ec2c6a150bc27afe57848a553f03efc19e331" SRC_URI="https://gitlab.com/ubports/development/core/${PN}/-/archive/${git_commit}/${PN}-${git_commit}.tar.gz" DESCRIPTION="API for creating, reading, updating and deleting trust requests answered by users" HOMEPAGE="https://gitlab.com/ubports/development/core/${PN}" LICENSE="GPL-3" SLOT="0" RESTRICT="test mirror" S="${WORKDIR}/${PN}-${git_commit}" DEPEND=" dev-cpp/dbus-cpp dev-cpp/process-cpp dev-cpp/properties-cpp dev-libs/boost dev-libs/glib gui-libs/mir sys-libs/libapparmor " RDEPEND="${DEPEND}" BDEPEND=" dev-build/cmake dev-build/cmake-extras dev-build/samurai dev-cpp/glog:0/2 dev-qt/qtdeclarative:5 " # TODO: # patch '007-fix-missing-main.patch ' is just a work around. # seams some modules are build with hidden symbols when build as ebuild. PATCHES=( "${FILESDIR}"/002-boost_1.90_asio.patch "${FILESDIR}"/005-disable_testing_xdg_submodule.patch "${FILESDIR}"/006-compile_xdg_static.patch "${FILESDIR}"/007-fix-missing-main.patch ) src_prepare() { # remove ctest from the build cmake_comment_add_subdirectory tests # remove doc cmake_comment_add_subdirectory doc # remove coverage report sed -i '/find_package(CoverageReport)/d' CMakeLists.txt || die sed -i '/enable_coverage_report(trust_store_test)/d' CMakeLists.txt || die lomiri_src_prepare } src_configure() { local mycmakeargs=( -DTRUST_STORE_MIR_AGENT_ENABLED=OFF -DENABLE_WERROR=OFF ) lomiri_src_configure }