Сравнение qwt-5.2.3_p20210211 с qwt-5.2.3_p20210828

/usr/portage/x11-libs/qwt/qwt-5.2.3_p20210828.ebuild 2023-10-09 14:52:35.924368512 +0300
1
# Copyright 1999-2021 Gentoo Authors
1
# Copyright 1999-2022 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
inherit qmake-utils
6
DOCS_BUILDER="doxygen"
7
DOCS_DIR="doc"
8
DOCS_CONFIG_NAME="Doxyfile"
9
DOCS_DEPEND="
10
	media-gfx/graphviz
11
	virtual/latex-base
12
"
13

  
14
inherit docs cmake
7 15

  
8
COMMIT="2a9f1ae2f394abf3a000906b507a0d925b1e4b25"
16
COMMIT="f7519200f102676fb04fb7bd0be555e0a419d378"
9 17

  
10 18
DESCRIPTION="2D plotting library for Qt5"
11 19
HOMEPAGE="https://qwt.sourceforge.io/ https://github.com/SciDAVis/qwt5-qt5"
12 20
SRC_URI="https://github.com/SciDAVis/qwt5-qt5/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
21
S="${WORKDIR}/${PN}5-qt5-${COMMIT}"
13 22

  
14 23
LICENSE="qwt"
15
KEYWORDS="amd64 ~arm ppc ppc64 x86"
24
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~riscv ~x86"
16 25
SLOT="5"
17 26
IUSE="designer examples"
18 27

  
......
27 36
"
28 37
RDEPEND="${DEPEND}"
29 38

  
30
S="${WORKDIR}/${PN}5-qt5-${COMMIT}"
31

  
32
src_prepare() {
33
	default
34
	sed -e "/QwtVersion/s:5.2.2.:${PV/_*}:g" -i ${PN}.prf || die
35

  
36
	cat > qwtconfig.pri <<-EOF || die
37
		target.path = "${EPREFIX}/usr/$(get_libdir)"
38
		headers.path = "${EPREFIX}/usr/include/qwt5"
39
		doc.path = "${EPREFIX}/usr/share/doc/${PF}"
40
		CONFIG += qt warn_on thread release
41
		CONFIG += QwtDll QwtPlot QwtWidgets QwtSVGItem
42
		VERSION = ${PV/_*}
43
		QWT_VERSION = ${PV/_*}
44
	EOF
45
	use designer && echo "CONFIG += QwtDesigner" >> qwtconfig.pri
46
	# Fails to compile with MathML enabled
47
	#use mathml && echo "CONFIG += QwtMathML" >> qwtconfig.pri
48

  
49
	cat >> qwtconfig.pri <<-EOF || die
50
		QWT_INSTALL_PLUGINS   = "${EPREFIX}$(qt5_get_plugindir)/designer"
51
		QWT_INSTALL_FEATURES  = "${EPREFIX}$(qt5_get_mkspecsdir)/features"
52
	EOF
53
	sed -i -e 's/headers doc/headers/' src/src.pro || die
54
}
39
PATCHES=(
40
	"${FILESDIR}/${P}-install-headers.patch"
41
)
55 42

  
56 43
src_configure() {
57
	eqmake5
44
	local mycmakeargs=(
45
		-DBUILD_EXAMPLES=$(usex examples)
46
		-DQWT_DESIGNER=$(usex designer)
47
	)
48
	cmake_src_configure
58 49
}
59 50

  
60 51
src_compile() {
61
	default
52
	cmake_src_compile
53
	docs_compile
62 54
}
63 55

  
64
src_install () {
65
	emake INSTALL_ROOT="${D}" install
66
	einstalldocs
67
	doman doc/man/*/*
68

  
69
	if use examples; then
70
		# don't build examples - fix the qt files to build once installed
71
		cat > examples/examples.pri <<-EOF || die
72
			include( qwtconfig.pri )
73
			TEMPLATE     = app
74
			MOC_DIR      = moc
75
			INCLUDEPATH += "${EPREFIX}/usr/include/qwt5"
76
			DEPENDPATH  += "${EPREFIX}/usr/include/qwt5"
77
			LIBS        += -lqwt
78
		EOF
79
		sed -i -e 's:../qwtconfig:qwtconfig:' examples/examples.pro || die
80
		cp *.pri examples/ || die
81
		insinto /usr/share/${PN}5
82
		doins -r examples
83
	fi
56
src_install() {
57
	cmake_src_install
84 58

  
85 59
	# avoid file conflict with qwt:6
86 60
	# https://github.com/gbm19/qwt5-qt5/issues/2
Спасибо!