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: Mon, 09 May 2022 15:50:11
Message-Id: 1652111366.73c68609087651730494b1de9a2f1e1264a337f1.andrewammerlaan@gentoo
1 commit: 73c68609087651730494b1de9a2f1e1264a337f1
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 9 15:49:26 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Mon May 9 15:49:26 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73c68609
7
8 sci-visualization/scidavis: add 2.9.0
9
10 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
11
12 sci-visualization/scidavis/Manifest | 1 +
13 sci-visualization/scidavis/scidavis-2.9.0.ebuild | 97 ++++++++++++++++++++++++
14 2 files changed, 98 insertions(+)
15
16 diff --git a/sci-visualization/scidavis/Manifest b/sci-visualization/scidavis/Manifest
17 index aa0153baaf57..acdc6f3f960f 100644
18 --- a/sci-visualization/scidavis/Manifest
19 +++ b/sci-visualization/scidavis/Manifest
20 @@ -1,2 +1,3 @@
21 DIST scidavis-2.7.tar.gz 11765155 BLAKE2B 10e218472893cd19fe3fb6ebef0116c37167b10b1535e6d39b3eb0f6e2f9a537a75c8da5648dae41b77add089d57cafea640d0c7f4dca459c5a9ef2cc24bff18 SHA512 8063d9f5fb29f824e0183d8902dfe9a8310b6041664ac2189765953088968136f3d72fd04f667d8dfce0ede16e17593e3351f5593d70e73705f1b737bf90b4de
22 DIST scidavis-2.8.tar.gz 12796976 BLAKE2B a1774f89235c9a6f49c20a45bec64e914b71c80afb54ca3e8b71151fa660a6da75c6dd914e42932bbe1b2a9abffaee045b3542ecc30ddb2824f5c4c5ccdf5da4 SHA512 3250846cd4cd320aa765d564ef07de10ccba0621b89e033b5b6092850c5eae4ca30b47eca392b67540e7757cbd497909a8cabd09bf44791543a809087f199c21
23 +DIST scidavis-2.9.0.tar.gz 9348738 BLAKE2B 70af736e0cbe62ffc4b8cc828fffe819b91245f01fa1dc089d1a225ba943495b947562aac84829b8b92664ffbe6e31ecc8f6d9b685adb144c4b21e619739c00e SHA512 3058b11e7864a646c31e5576ac4ebb3e30bcc08f382ee1798183935482236890bbd1090c8e2272c28b54e2498a42dfed801f17fc4c0aca83264ab76f4a7fb7ba
24
25 diff --git a/sci-visualization/scidavis/scidavis-2.9.0.ebuild b/sci-visualization/scidavis/scidavis-2.9.0.ebuild
26 new file mode 100644
27 index 000000000000..0487299231ed
28 --- /dev/null
29 +++ b/sci-visualization/scidavis/scidavis-2.9.0.ebuild
30 @@ -0,0 +1,97 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +DOCS_BUILDER="doxygen"
37 +DOCS_DEPEND="media-gfx/graphviz"
38 +
39 +PYTHON_COMPAT=( python3_{8..10} )
40 +
41 +inherit python-single-r1 cmake docs virtualx xdg
42 +
43 +DESCRIPTION="Application for Scientific Data Analysis and Visualization"
44 +HOMEPAGE="http://scidavis.sourceforge.net/ https://github.com/SciDAVis/scidavis/"
45 +SRC_URI="https://github.com/SciDAVis/scidavis/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
46 +
47 +LICENSE="GPL-2+ ZLIB"
48 +KEYWORDS="~amd64"
49 +SLOT="0"
50 +
51 +IUSE="doc origin python test"
52 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
53 +
54 +# requires network
55 +RESTRICT="test"
56 +PROPERTIES="test_network"
57 +
58 +RDEPEND="
59 + dev-cpp/muParser
60 + dev-qt/qtcore:5
61 + dev-qt/qtgui:5
62 + dev-qt/qtnetwork:5
63 + dev-qt/qtopengl:5
64 + dev-qt/qtprintsupport:5
65 + dev-qt/qtwidgets:5
66 + dev-qt/qtxml:5
67 + sci-libs/gsl:=
68 + sys-libs/zlib[minizip]
69 + x11-libs/qwt:5
70 + x11-libs/qwtplot3d
71 + origin? ( sci-libs/liborigin )
72 + python? (
73 + ${PYTHON_DEPS}
74 + $(python_gen_cond_dep '
75 + >=dev-python/PyQt5-5.15.6[${PYTHON_USEDEP}]
76 + dev-python/PyQt5-sip[${PYTHON_USEDEP}]
77 + >=dev-python/sip-6:5[${PYTHON_USEDEP}]
78 + ')
79 + )
80 +"
81 +DEPEND="${RDEPEND}"
82 +BDEPEND="
83 + dev-qt/linguist-tools:5
84 + test? (
85 + dev-libs/unittest++
86 + dev-cpp/gtest
87 + )
88 +"
89 +
90 +src_prepare() {
91 + cmake_src_prepare
92 +
93 + # Remove things which are packaged elsewhere
94 + rm -r 3rdparty/qwt5-qt5 3rdparty/qwtplot3d 3rdparty/liborigin || die
95 +
96 + # OF has been renamed in Gentoo https://bugs.gentoo.org/383179
97 + # Note this is *not* packaged in sys-libs/zlib[minizip] because
98 + # this file resides in the test directory in upstream zlib
99 + sed -i -r 's:\<(O[FN])\>:_Z_\1:g' 3rdparty/minigzip/minigzip.c || die
100 +}
101 +
102 +src_configure() {
103 + local mycmakeargs=(
104 + # Even if we disable muparser scripting, we still need MuParser.h
105 + # for Graph3D.cpp. So just enable it unconditionally. Bug 834074
106 + -DSCRIPTING_MUPARSER=ON
107 + -DORIGIN_IMPORT=$(usex origin)
108 + -DSCRIPTING_PYTHON=$(usex python)
109 + -DBUILD_TESTS=$(usex test)
110 + )
111 +
112 + if use python; then
113 + mycmakeargs+=(
114 + -DPYTHON_SCRIPTDIR="$(python_get_scriptdir)"
115 + )
116 + fi
117 + cmake_src_configure
118 +}
119 +
120 +src_compile() {
121 + cmake_src_compile
122 + docs_compile
123 +}
124 +
125 +src_test() {
126 + virtx cmake_src_test
127 +}