SwordArMor-gentoo-overlay/dev-util/bcunit/bcunit-3.0.2.ebuild
Alarig Le Lay b689f2b8c6
dev-util/bcunit: New package imported from nest
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr
2022-04-28 14:31:42 +02:00

33 lines
796 B
Bash

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="BC Unit Test Framework"
HOMEPAGE="https://gitlab.linphone.org/BC/public/bcunit"
SRC_URI="https://gitlab.linphone.org/BC/public/${PN}/-/archive/${PV}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples ncurses static-libs test"
RESTRICT="test" # fails: undefined reference to CU_trace_handler
RDEPEND="ncurses? ( sys-libs/ncurses:0= )"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
src_configure() {
local mycmakeargs=(
-DENABLE_CURSES="$(usex ncurses)"
-DENABLE_DOC="$(usex doc)"
-DENABLE_EXAMPLES="$(usex examples)"
-DENABLE_STATIC="$(usex static-libs)"
-DENABLE_TEST="$(usex test)"
)
cmake_src_configure
}