blob: 94347022ede3b6ff1a1fa1a604e20cd74c4b59f1 (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DOCS_BUILDER="doxygen"
DOCS_DIR="doc"
DOCS_CONFIG_NAME="Doxyfile.doxygen"
inherit docs qmake-utils
DESCRIPTION="3D plotting library for Qt5"
HOMEPAGE="http://qwtplot3d.sourceforge.net/ https://github.com/SciDAVis/qwtplot3d/"
SRC_URI="https://github.com/SciDAVis/qwtplot3d/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="ZLIB"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE="doc examples"
RDEPEND="
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtopengl:5
dev-qt/qtwidgets:5
x11-libs/gl2ps
"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}/${PN}-examples.patch"
"${FILESDIR}/${PN}-doxygen.patch"
"${FILESDIR}/${PN}-gcc44.patch"
"${FILESDIR}/${PN}-qt-4.8.0.patch"
"${FILESDIR}/${PN}-sys-gl2ps.patch"
)
src_prepare() {
default
cat >> ${PN}.pro <<-EOF || die
target.path = "${EPREFIX}/usr/$(get_libdir)"
headers.path = "${EPREFIX}/usr/include/${PN}"
headers.files = \$\$HEADERS
INSTALLS = target headers
EOF
}
src_configure() {
eqmake5
}
src_compile() {
default
docs_compile
}
src_install () {
emake INSTALL_ROOT="${D}" install
einstalldocs
if use examples; then
insinto /usr/share/${PN}
doins -r examples
fi
}
|