Diff qwtplot3d-0.2 with a qwtplot3d-0.2_p20210828

/usr/portage/x11-libs/qwtplot3d/qwtplot3d-0.2_p20210828.ebuild 2023-10-09 14:52:35.924368512 +0300
1 1
# Copyright 1999-2021 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6 6
DOCS_BUILDER="doxygen"
7 7
DOCS_DIR="doc"
8 8
DOCS_CONFIG_NAME="Doxyfile.doxygen"
9 9

  
10
inherit docs qmake-utils
10
inherit docs cmake
11

  
12
COMMIT="b2655743d30ed3185f3c0e2626b33a1d29655216"
11 13

  
12 14
DESCRIPTION="3D plotting library for Qt5"
13 15
HOMEPAGE="http://qwtplot3d.sourceforge.net/ https://github.com/SciDAVis/qwtplot3d/"
14
SRC_URI="https://github.com/SciDAVis/qwtplot3d/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
16
SRC_URI="https://github.com/SciDAVis/qwtplot3d/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
17
S="${WORKDIR}/${PN}-${COMMIT}"
15 18

  
16 19
LICENSE="ZLIB"
17 20
KEYWORDS="~amd64 ~x86"
18 21
SLOT="0"
19 22

  
20
IUSE="doc examples"
23
IUSE="doc"
21 24

  
22 25
RDEPEND="
23 26
	dev-qt/qtcore:5
......
29 32
DEPEND="${RDEPEND}"
30 33

  
31 34
PATCHES=(
32
	"${FILESDIR}/${PN}-examples.patch"
33 35
	"${FILESDIR}/${PN}-doxygen.patch"
34 36
	"${FILESDIR}/${PN}-gcc44.patch"
35
	"${FILESDIR}/${PN}-qt-4.8.0.patch"
36
	"${FILESDIR}/${PN}-sys-gl2ps.patch"
37
	"${FILESDIR}/${P}-install-headers.patch"
37 38
)
38 39

  
39
src_prepare() {
40
	default
41
	cat >> ${PN}.pro <<-EOF || die
42
		target.path = "${EPREFIX}/usr/$(get_libdir)"
43
		headers.path = "${EPREFIX}/usr/include/${PN}"
44
		headers.files = \$\$HEADERS
45
		INSTALLS = target headers
46
	EOF
47
}
48

  
49
src_configure() {
50
	eqmake5
51
}
52

  
53 40
src_compile() {
54
	default
41
	cmake_src_compile
55 42
	docs_compile
56 43
}
57

  
58
src_install () {
59
	emake INSTALL_ROOT="${D}" install
60
	einstalldocs
61
	if use examples; then
62
		insinto /usr/share/${PN}
63
		doins -r examples
64
	fi
65
}
Thank you!