blob: 3db848d95347f921e87229b3c3fc5183e49a4c15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="GUI binding for using Coin/Open Inventor with Qt"
HOMEPAGE="https://github.com/coin3d/soqt https://github.com/coin3d/coin/wiki"
if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/coin3d/${PN,,}.git"
else
SRC_URI="https://github.com/coin3d/${PN,,}/releases/download/v${PV}/${P/${PN}/${PN,,}}-src.tar.gz"
S="${WORKDIR}/${PN,,}"
KEYWORDS="amd64 x86"
fi
LICENSE="GPL-2"
SLOT="0"
IUSE="debug doc test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-qt/qtbase:6[gui,opengl,widgets]
media-libs/coin
virtual/opengl[X]
x11-libs/libX11
x11-libs/libXi
"
DEPEND="${RDEPEND}"
BDEPEND="
virtual/pkgconfig
x11-base/xorg-proto
doc? ( app-text/doxygen )
"
DOCS=(
AUTHORS
ChangeLog
HACKING
NEWS
README
)
src_configure() {
use debug && CMAKE_BUILD_TYPE="Debug"
local mycmakeargs=(
-D${PN^^}_BUILD_SHARED_LIBS="yes"
-D${PN^^}_BUILD_AWESOME_DOCUMENTATION="$(usex doc)"
-D${PN^^}_BUILD_DOCUMENTATION="$(usex doc)"
-D${PN^^}_BUILD_DOC_MAN="$(usex doc)"
-D${PN^^}_BUILD_INTERNAL_DOCUMENTATION="no"
# Interactive test programs
-D${PN^^}_BUILD_TESTS="$(usex test)"
-D${PN^^}_USE_QT5="no"
-D${PN^^}_USE_QT6="yes"
-D${PN^^}_VERBOSE="$(usex debug)"
)
cmake_src_configure
}
|