Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/octave/
Date: Tue, 01 Dec 2020 04:49:42
Message-Id: 1606798064.789bf5a4cfe45faa2c3a8f31ef6b13516f2e1f41.mjo@gentoo
1 commit: 789bf5a4cfe45faa2c3a8f31ef6b13516f2e1f41
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 1 01:41:58 2020 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 1 04:47:44 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=789bf5a4
7
8 sci-mathematics/octave: new version 6.1.0.
9
10 Dropped keywords arm, arm64, hppa, ppc, and ppc64 due to a new
11 USE-conditional dependency on sci-libs/sundials.
12
13 Closes: https://bugs.gentoo.org/660310
14 Package-Manager: Portage-3.0.9, Repoman-3.0.2
15 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
16
17 sci-mathematics/octave/Manifest | 1 +
18 sci-mathematics/octave/metadata.xml | 1 +
19 sci-mathematics/octave/octave-6.1.0.ebuild | 196 +++++++++++++++++++++++++++++
20 3 files changed, 198 insertions(+)
21
22 diff --git a/sci-mathematics/octave/Manifest b/sci-mathematics/octave/Manifest
23 index 62029d3b7e2..ca1b95d3145 100644
24 --- a/sci-mathematics/octave/Manifest
25 +++ b/sci-mathematics/octave/Manifest
26 @@ -1 +1,2 @@
27 DIST octave-5.2.0.tar.gz 33360285 BLAKE2B 6d53a48a7fbe929e372fd51d084c0269befd3140341f3f3a1f2cae02f9f085ed434c3336c770c9a856081197c93ee306f481dd116b958685175bc294e4db62ae SHA512 fa2076fb22415e0797964c66cfb8d24643f178f45eb9c14ebb4c082767e0a53509fde550f579fa4a816348bd0f7cbc74f24144f9a30a5b9c09ebe1b3949db498
28 +DIST octave-6.1.0.tar.gz 32592405 BLAKE2B e39d7e8726b1aad8e378c8578e3d019b735ee82aa00230c9c35b36238848aa4c557da11707203c1ff845c26a117852c40ad9a42138812dcb5eba9b77a583a117 SHA512 34abe6fa489aea94bfeb08027653cd83a73611c6032c8b3ddc4b59223f316ee275f74490048a45aebf178858494f6920593565e612f6e77351102494cb9f49f7
29
30 diff --git a/sci-mathematics/octave/metadata.xml b/sci-mathematics/octave/metadata.xml
31 index 619b5f255ad..7c8e7d9ad55 100644
32 --- a/sci-mathematics/octave/metadata.xml
33 +++ b/sci-mathematics/octave/metadata.xml
34 @@ -13,5 +13,6 @@
35 <flag name="qhull">Add support for <pkg>media-libs/qhull</pkg>, to allow `delaunay', `convhull', and related functions</flag>
36 <flag name="qrupdate">Add support for <pkg>sci-libs/qrupdate</pkg>for QR and Cholesky update functions</flag>
37 <flag name="sparse">Add enhanced support for sparse matrix algebra with SuiteSparse</flag>
38 + <flag name="sundials">Enable the ode15i and ode15s ODE solvers using <pkg>sci-libs/sundials</pkg></flag>
39 </use>
40 </pkgmetadata>
41
42 diff --git a/sci-mathematics/octave/octave-6.1.0.ebuild b/sci-mathematics/octave/octave-6.1.0.ebuild
43 new file mode 100644
44 index 00000000000..ff79efc69a4
45 --- /dev/null
46 +++ b/sci-mathematics/octave/octave-6.1.0.ebuild
47 @@ -0,0 +1,196 @@
48 +# Copyright 1999-2020 Gentoo Authors
49 +# Distributed under the terms of the GNU General Public License v2
50 +
51 +EAPI=6
52 +
53 +inherit autotools flag-o-matic fortran-2 gnome2-utils java-pkg-opt-2 pax-utils toolchain-funcs xdg-utils
54 +
55 +DESCRIPTION="High-level interactive language for numerical computations"
56 +LICENSE="GPL-3"
57 +HOMEPAGE="https://www.gnu.org/software/octave/"
58 +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
59 +
60 +SLOT="0/${PV}"
61 +IUSE="curl doc fftw +glpk gnuplot gui hdf5 java libressl opengl
62 + portaudio postscript +qhull +qrupdate readline sndfile +sparse
63 + ssl static-libs sundials X zlib"
64 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
65 +
66 +RDEPEND="
67 + app-arch/bzip2
68 + app-text/ghostscript-gpl
69 + dev-libs/libpcre:3=
70 + sys-libs/ncurses:0=
71 + sys-libs/zlib
72 + virtual/blas
73 + virtual/lapack
74 + curl? ( net-misc/curl:0= )
75 + fftw? ( sci-libs/fftw:3.0= )
76 + glpk? ( sci-mathematics/glpk:0= )
77 + gnuplot? ( sci-visualization/gnuplot )
78 + gui? (
79 + dev-qt/qtcore:5
80 + dev-qt/qtgui:5
81 + dev-qt/qthelp:5
82 + dev-qt/qtnetwork:5
83 + dev-qt/qtopengl:5
84 + dev-qt/qtprintsupport:5
85 + dev-qt/qtwidgets:5
86 + x11-libs/qscintilla:=
87 + )
88 + hdf5? ( sci-libs/hdf5:0= )
89 + java? ( >=virtual/jre-1.6.0:* )
90 + opengl? (
91 + media-libs/freetype:2=
92 + media-libs/fontconfig:1.0=
93 + virtual/glu
94 + >=x11-libs/fltk-1.3:1=[opengl,xft]
95 + x11-libs/gl2ps:0=
96 + )
97 + portaudio? ( media-libs/portaudio )
98 + postscript? (
99 + app-text/epstool
100 + media-gfx/pstoedit
101 + media-gfx/transfig
102 + )
103 + qhull? ( media-libs/qhull:0= )
104 + qrupdate? ( sci-libs/qrupdate:0= )
105 + readline? ( sys-libs/readline:0= )
106 + sndfile? ( media-libs/libsndfile )
107 + sparse? (
108 + sci-libs/arpack:0=
109 + sci-libs/camd:0=
110 + sci-libs/ccolamd:0=
111 + sci-libs/cholmod:0=
112 + sci-libs/colamd:0=
113 + sci-libs/cxsparse:0=
114 + sci-libs/umfpack:0=
115 + )
116 + ssl? (
117 + !libressl? ( dev-libs/openssl:0= )
118 + libressl? ( dev-libs/libressl:0= )
119 + )
120 + sundials? ( >=sci-libs/sundials-4:0= )
121 + X? ( x11-libs/libX11:0= )"
122 +DEPEND="${RDEPEND}
123 + dev-util/gperf
124 + sys-apps/texinfo
125 + virtual/pkgconfig
126 + doc? (
127 + dev-texlive/texlive-fontsrecommended
128 + dev-texlive/texlive-plaingeneric
129 + dev-texlive/texlive-metapost
130 + virtual/latex-base
131 + )
132 + gui? ( dev-qt/linguist-tools:5 )
133 + java? ( >=virtual/jdk-1.6.0 )
134 + qrupdate? ( app-misc/pax-utils )
135 + sparse? ( app-misc/pax-utils )"
136 +
137 +# I'm not sure what the getcwd patch is intended to fix. That macro is
138 +# part of gnulib, though, so if it's a serious problem then we should
139 +# consult upstream about it.
140 +PATCHES=(
141 + "${FILESDIR}"/${PN}-4.2.0-disable-getcwd-path-max-test-as-it-is-too-slow.patch
142 + "${FILESDIR}"/${PN}-5.1.0-pkgbuilddir.patch
143 + "${FILESDIR}"/${PN}-4.2.2-ncurses-pkgconfig.patch
144 +)
145 +
146 +src_prepare() {
147 + # nasty prefix hacks for fltk:1 linking
148 + if use prefix; then
149 + use opengl && append-ldflags -Wl,-rpath,"${EPREFIX}/usr/$(get_libdir)/fltk-1"
150 + fi
151 +
152 + # occasional fail on install, force regeneration (bug #401189)
153 + rm doc/interpreter/contributors.texi || die
154 +
155 + default
156 + eautoreconf
157 +}
158 +
159 +src_configure() {
160 + # unfortunate dependency on mpi from hdf5 (bug #302621)
161 + use hdf5 && has_version sci-libs/hdf5[mpi] && \
162 + export CXX=mpicxx CC=mpicc FC=mpif77 F77=mpif77
163 +
164 + # Some of these use_with flags are a bit mismatched. The configure
165 + # script offers only --without-foo, and detects "foo" automatically
166 + # unless --without-foo is specified. Passing --with-foo is not an
167 + # error, however, so it kind of works. We wind up with, for example,
168 + #
169 + # --with-sundials_ida (no-op) with USE="sundials"
170 + # --without-sundials_ida (disables it) with USE="-sundials"
171 + #
172 + econf \
173 + --localstatedir="${EPREFIX}/var/state/octave" \
174 + --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \
175 + --with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)" \
176 + --disable-64 \
177 + --disable-jit \
178 + --enable-shared \
179 + --with-z \
180 + --with-bz2 \
181 + $(use_enable static-libs static) \
182 + $(use_enable doc docs) \
183 + $(use_enable java) \
184 + $(use_enable readline) \
185 + $(use_with curl) \
186 + $(use_with fftw fftw3) \
187 + $(use_with fftw fftw3f) \
188 + $(use_enable fftw fftw-threads) \
189 + $(use_with glpk) \
190 + $(use_with hdf5) \
191 + $(use_with opengl) \
192 + $(use_with opengl fltk) \
193 + $(use_with ssl openssl) \
194 + $(use_with portaudio) \
195 + $(use_with qhull) \
196 + $(use_with qrupdate) \
197 + $(use_with gui qt 5) \
198 + $(use_with sndfile) \
199 + $(use_with sparse arpack) \
200 + $(use_with sparse umfpack) \
201 + $(use_with sparse colamd) \
202 + $(use_with sparse ccolamd) \
203 + $(use_with sparse cholmod) \
204 + $(use_with sparse cxsparse) \
205 + $(use_with sundials sundials_ida) \
206 + $(use_with X x)
207 +}
208 +
209 +src_compile() {
210 + export VARTEXFONTS="${T}/fonts" # otherwise it will write to /var/cache/fonts/ and trip sandbox
211 + default
212 + if use java; then
213 + pax-mark m "${S}/src/.libs/octave-cli"
214 + fi
215 +}
216 +
217 +src_install() {
218 + default
219 + if use doc; then
220 + dodoc $(find doc -name '*.pdf')
221 + else
222 + # bug 566134, macros.texi is installed by make install if use doc
223 + insinto /usr/share/${PN}/${PV}/etc
224 + doins doc/interpreter/macros.texi
225 + fi
226 + [[ -e test/fntests.log ]] && dodoc test/fntests.log
227 + use java && \
228 + java-pkg_regjar "${ED%/}/usr/share/${PN}/${PV}/m/java/octave.jar"
229 + echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/${PN}/${PV}" > 99octave || die
230 + doenvd 99octave
231 +}
232 +
233 +pkg_postinst() {
234 + gnome2_icon_cache_update
235 + xdg_mimeinfo_database_update
236 + xdg_desktop_database_update
237 +}
238 +
239 +pkg_postrm() {
240 + gnome2_icon_cache_update
241 + xdg_mimeinfo_database_update
242 + xdg_desktop_database_update
243 +}