Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-visualization/scidavis/
Date: Sat, 19 Feb 2022 11:12:29
Message-Id: 1645269139.5477382d2dd1bf4c3d6450ae744ed78c84c03fa8.andrewammerlaan@gentoo
1 commit: 5477382d2dd1bf4c3d6450ae744ed78c84c03fa8
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 19 10:44:37 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 19 11:12:19 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5477382d
7
8 sci-visualization/scidavis: add version 2.7
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
12
13 sci-visualization/scidavis/Manifest | 1 +
14 sci-visualization/scidavis/scidavis-2.7.ebuild | 95 ++++++++++++++++++++++++++
15 2 files changed, 96 insertions(+)
16
17 diff --git a/sci-visualization/scidavis/Manifest b/sci-visualization/scidavis/Manifest
18 index 861d0375614f..29cc21dd1d19 100644
19 --- a/sci-visualization/scidavis/Manifest
20 +++ b/sci-visualization/scidavis/Manifest
21 @@ -1,2 +1,3 @@
22 DIST scidavis-2.4.0-gh.tar.gz 9244613 BLAKE2B 5961c1c4c28a7e290940ddefb4a7a447fb2b743528bcb96d190b2638a6b0d8807dad51ceab6392e5a3081b270149d3f3fccef8db8108dfdacc71a66c55a7509e SHA512 9797daaf3239176eb8fc346fb8e579af965cfe0881e9048c77258f1165135a124aea3ec52434cc23e117ba2077313437da65f5c694f2d8a54d312997264d9318
23 DIST scidavis-2.4.0_p20211117.tar.gz 9248921 BLAKE2B e14d4a270ab0b7221b3e21762c4547e5d64930ddc72bf085d72d02e4756cc4c82f38b438f90dc472a05837d059650ea3718e100ad8c56762e990b11f571fce31 SHA512 f3fba2569d5ba79be1b10ffe4ed242f7a4df81fb4561388fcdb9461404ab966b21ecfdaa001518b5139eeef319e3c979109e2889d9268b07dad9c3cec970999b
24 +DIST scidavis-2.7.tar.gz 11765155 BLAKE2B 10e218472893cd19fe3fb6ebef0116c37167b10b1535e6d39b3eb0f6e2f9a537a75c8da5648dae41b77add089d57cafea640d0c7f4dca459c5a9ef2cc24bff18 SHA512 8063d9f5fb29f824e0183d8902dfe9a8310b6041664ac2189765953088968136f3d72fd04f667d8dfce0ede16e17593e3351f5593d70e73705f1b737bf90b4de
25
26 diff --git a/sci-visualization/scidavis/scidavis-2.7.ebuild b/sci-visualization/scidavis/scidavis-2.7.ebuild
27 new file mode 100644
28 index 000000000000..d6d6452d9a35
29 --- /dev/null
30 +++ b/sci-visualization/scidavis/scidavis-2.7.ebuild
31 @@ -0,0 +1,95 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +DOCS_BUILDER="doxygen"
38 +DOCS_DEPEND="media-gfx/graphviz"
39 +
40 +PYTHON_COMPAT=( python3_{8..10} )
41 +
42 +inherit python-single-r1 cmake docs virtualx xdg
43 +
44 +DESCRIPTION="Application for Scientific Data Analysis and Visualization"
45 +HOMEPAGE="http://scidavis.sourceforge.net/ https://github.com/SciDAVis/scidavis/"
46 +SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz"
47 +
48 +LICENSE="GPL-2+ ZLIB"
49 +KEYWORDS="~amd64"
50 +SLOT="0"
51 +
52 +IUSE="doc +muparser origin python test"
53 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
54 +
55 +# requires network
56 +RESTRICT="test"
57 +PROPERTIES="test_network"
58 +
59 +RDEPEND="
60 + muparser? ( dev-cpp/muParser )
61 + dev-qt/qtcore:5
62 + dev-qt/qtgui:5
63 + dev-qt/qtnetwork:5
64 + dev-qt/qtopengl:5
65 + dev-qt/qtprintsupport:5
66 + dev-qt/qtwidgets:5
67 + dev-qt/qtxml:5
68 + sci-libs/gsl:=
69 + sys-libs/zlib[minizip]
70 + x11-libs/qwt:5
71 + x11-libs/qwtplot3d
72 + origin? ( sci-libs/liborigin )
73 + python? (
74 + ${PYTHON_DEPS}
75 + $(python_gen_cond_dep '
76 + >=dev-python/PyQt5-5.15.6[${PYTHON_USEDEP}]
77 + dev-python/PyQt5-sip[${PYTHON_USEDEP}]
78 + >=dev-python/sip-6:5[${PYTHON_USEDEP}]
79 + ')
80 + )
81 +"
82 +DEPEND="${RDEPEND}"
83 +BDEPEND="
84 + dev-qt/linguist-tools:5
85 + test? (
86 + dev-libs/unittest++
87 + dev-cpp/gtest
88 + )
89 +"
90 +
91 +PATCHES=(
92 + "${FILESDIR}/${PN}-muparser.patch"
93 + "${FILESDIR}/${PN}-qwtplot3d.patch"
94 +)
95 +
96 +src_prepare() {
97 + cmake_src_prepare
98 +
99 + # Remove things which are packaged elsewhere
100 + rm -r 3rdparty/qwt5-qt5 3rdparty/qwtplot3d 3rdparty/liborigin || die
101 +
102 + # OF has been renamed in Gentoo https://bugs.gentoo.org/383179
103 + # Note this is *not* packaged in sys-libs/zlib[minizip] because
104 + # this file resides in the test directory in upstream zlib
105 + sed -i -r 's:\<(O[FN])\>:_Z_\1:g' 3rdparty/minigzip/minigzip.c || die
106 +}
107 +
108 +src_configure() {
109 + local mycmakeargs=(
110 + -DSCRIPTING_MUPARSER=$(usex muparser)
111 + -DSCRIPTING_PYTHON=$(usex python)
112 + -DPYTHON_SCRIPTDIR="$(python_get_scriptdir)"
113 + -DORIGIN_IMPORT=$(usex origin)
114 + -DBUILD_TESTS=$(usex test)
115 + )
116 + cmake_src_configure
117 +}
118 +
119 +src_compile() {
120 + cmake_src_compile
121 + docs_compile
122 +}
123 +
124 +src_test() {
125 + virtx cmake_src_test
126 +}