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.
gentoo-overlay/media-libs/raul/raul-9999.ebuild

45 lines
1.0 KiB

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3_{7,8,9} )
PYTHON_REQ_USE='threads(+)'
inherit waf-utils python-any-r1 eutils git-r3
DESCRIPTION="C++ utility library primarily aimed at audio/musical applications"
HOMEPAGE="http://wiki.drobilla.net/Raul"
EGIT_REPO_URI="https://gitlab.com/drobilla/raul.git"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE="debug doc test"
RESTRICT="!test? ( test )"
RDEPEND="dev-libs/boost
dev-libs/glib"
DEPEND="${RDEPEND}
${PYTHON_DEPS}
virtual/pkgconfig
doc? ( app-doc/doxygen )"
RAUL_TESTS="array_test build_test double_buffer_test maid_test path_test ringbuffer_test sem_test socket_test symbol_test thread_test time_test"
DOCS=( AUTHORS NEWS README )
src_configure() {
waf-utils_src_configure \
$(use debug && echo "--debug") \
$(use doc && echo "--docs") \
$(use test && echo "--test")
}
src_test() {
cd "${S}/build/test" || die
for i in ${RAUL_TESTS} ; do
einfo "Running test ${i}"
LD_LIBRARY_PATH=.. ./${i} || die
done
}