1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="INDI Astronomical Control Protocol library"
9 HOMEPAGE="https://www.indilib.org/"
10 SRC_URI="https://github.com/${PN}/${PN/lib/}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
12 LICENSE="BSD GPL-2+ LGPL-2+ LGPL-2.1+"
14 KEYWORDS="amd64 ~ppc ~ppc64 x86"
15 IUSE="ogg test websocket"
30 websocket? ( dev-libs/boost:= )
33 kernel_linux? ( sys-kernel/linux-headers )
34 test? ( >=dev-cpp/gtest-1.8.0 )
35 websocket? ( dev-cpp/websocketpp )
38 RESTRICT="!test? ( test )"
40 S="${WORKDIR}/${P/lib/}"
44 -DINDI_BUILD_QT5_CLIENT=OFF
45 -DINDI_BUILD_UNITTESTS=$(usex test)
46 -DUDEVRULES_INSTALL_DIR="$(get_udevdir)"/rules.d
47 $(cmake_use_find_package ogg OggTheora)
48 -DINDI_BUILD_WEBSOCKET=$(usex websocket)
55 BUILD_DIR="${BUILD_DIR}"/test cmake_src_test