Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/octave/
Date: Wed, 03 Aug 2022 02:54:25
Message-Id: 1659495235.5f7f22be582175d2fdf731123da9805c69a131ec.sam@gentoo
1 commit: 5f7f22be582175d2fdf731123da9805c69a131ec
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 3 02:53:55 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 3 02:53:55 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f7f22be
7
8 sci-mathematics/octave: drop 7.1.0
9
10 Bug: https://bugs.gentoo.org/842645
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 sci-mathematics/octave/Manifest | 1 -
14 sci-mathematics/octave/octave-7.1.0.ebuild | 212 -----------------------------
15 2 files changed, 213 deletions(-)
16
17 diff --git a/sci-mathematics/octave/Manifest b/sci-mathematics/octave/Manifest
18 index 1bc20321a5e6..5ce57ee4f2a9 100644
19 --- a/sci-mathematics/octave/Manifest
20 +++ b/sci-mathematics/octave/Manifest
21 @@ -1,4 +1,3 @@
22 DIST octave-5.2.0.tar.gz 33360285 BLAKE2B 6d53a48a7fbe929e372fd51d084c0269befd3140341f3f3a1f2cae02f9f085ed434c3336c770c9a856081197c93ee306f481dd116b958685175bc294e4db62ae SHA512 fa2076fb22415e0797964c66cfb8d24643f178f45eb9c14ebb4c082767e0a53509fde550f579fa4a816348bd0f7cbc74f24144f9a30a5b9c09ebe1b3949db498
23 DIST octave-6.4.0.tar.gz 32873157 BLAKE2B afa729c3c9917f724e7d97fe3af42986f323d3ff849e0a33ac9f183237e68d989d4f3dacd644405b648ec050ad07d8973abddbd8657b810de6f65d5b5ae37c02 SHA512 91ff031f6dfff8506fa738fd4f1f07276501fdfe003f8ed992cccf91da14d9d33da6d08923322b0dae5f5b696b49856b0f5c5065e26b0701b0d1630173807435
24 -DIST octave-7.1.0.tar.gz 34187598 BLAKE2B da4c1b47e0d71f05edc47036b9b10fb83aa6edb8aa911ff22f77a013935ea37295f776f5c478e198c38102b8d1ad68edada818c9b46ad1061a466b5c77eeed58 SHA512 042a68bd2c5c873ccc846c6de13743c6fddd166e8b062948daf184133eb774a05e29ab6132829886411a5ba330126d20a3d0700a606819a424c3db6e57471888
25 DIST octave-7.2.0.tar.gz 34180572 BLAKE2B 311021c339b92b3a94b0272f0fb7c788b78ae18fa7a4bddf8302c181401854f35ea7b8e6738d1a294c9baa343c7e8ec365d33f5af2d984ac6ea6853f5d53cf23 SHA512 b1f484fb97ca9270c3090f73b01f1ec0dcd6d3f838ecf7f46c50eb6245a1fa454fbc15dcf87b462a71532ba324cccd4d547b8a5b6a8e7a0914ea14981386b024
26
27 diff --git a/sci-mathematics/octave/octave-7.1.0.ebuild b/sci-mathematics/octave/octave-7.1.0.ebuild
28 deleted file mode 100644
29 index 91df3f2a06d3..000000000000
30 --- a/sci-mathematics/octave/octave-7.1.0.ebuild
31 +++ /dev/null
32 @@ -1,212 +0,0 @@
33 -# Copyright 1999-2022 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=8
37 -
38 -inherit autotools flag-o-matic fortran-2 java-pkg-opt-2 pax-utils qmake-utils toolchain-funcs xdg
39 -
40 -DESCRIPTION="High-level interactive language for numerical computations"
41 -HOMEPAGE="https://www.gnu.org/software/octave/"
42 -SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
43 -
44 -LICENSE="GPL-3"
45 -SLOT="0/${PV}"
46 -IUSE="curl doc fftw +glpk gnuplot gui hdf5 java json opengl
47 - portaudio postscript +qhull +qrupdate readline sndfile +sparse
48 - ssl static-libs sundials X zlib"
49 -# Issue when building w/ SSL needs investigation
50 -#KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
51 -
52 -# Although it is listed in INSTALL.OCTAVE as a build tool, Octave runs
53 -# "makeinfo" from sys-apps/texinfo at runtime to convert its texinfo
54 -# documentation to text (see scripts/help/help.m).
55 -#
56 -# (un)zip isn't mentioned, but there's a test that uses it (bug 775254).
57 -#
58 -RDEPEND="
59 - app-arch/bzip2
60 - app-arch/unzip
61 - app-arch/zip
62 - app-text/ghostscript-gpl
63 - sys-apps/texinfo
64 - dev-libs/libpcre:3=
65 - sys-libs/ncurses:0=
66 - sys-libs/zlib
67 - virtual/blas
68 - virtual/lapack
69 - curl? ( net-misc/curl:0= )
70 - fftw? ( sci-libs/fftw:3.0= )
71 - glpk? ( sci-mathematics/glpk:0= )
72 - gnuplot? ( sci-visualization/gnuplot )
73 - gui? (
74 - dev-qt/qtcore:5
75 - dev-qt/qtgui:5
76 - dev-qt/qthelp:5
77 - dev-qt/qtnetwork:5
78 - dev-qt/qtopengl:5
79 - dev-qt/qtprintsupport:5
80 - dev-qt/qtwidgets:5
81 - x11-libs/qscintilla:=
82 - )
83 - hdf5? ( sci-libs/hdf5:0= )
84 - java? ( >=virtual/jre-1.8:* )
85 - json? ( dev-libs/rapidjson )
86 - opengl? (
87 - media-libs/freetype:2=
88 - media-libs/fontconfig:1.0=
89 - virtual/glu
90 - >=x11-libs/fltk-1.3:1=[opengl,xft]
91 - x11-libs/gl2ps:0=
92 - )
93 - portaudio? ( media-libs/portaudio )
94 - postscript? (
95 - app-text/epstool
96 - media-gfx/pstoedit
97 - media-gfx/transfig
98 - )
99 - qhull? ( media-libs/qhull:0= )
100 - qrupdate? ( sci-libs/qrupdate:0= )
101 - readline? ( sys-libs/readline:0= )
102 - sndfile? ( media-libs/libsndfile )
103 - sparse? (
104 - sci-libs/arpack:0=
105 - sci-libs/camd:0=
106 - sci-libs/ccolamd:0=
107 - sci-libs/cholmod:0=
108 - sci-libs/colamd:0=
109 - sci-libs/cxsparse:0=
110 - sci-libs/umfpack:0=
111 - )
112 - ssl? (
113 - dev-libs/openssl:0=
114 - )
115 - sundials? ( >=sci-libs/sundials-4:0= )
116 - X? ( x11-libs/libX11:0= )"
117 -DEPEND="${RDEPEND}
118 - dev-util/gperf
119 - virtual/imagemagick-tools
120 - doc? (
121 - dev-texlive/texlive-fontsrecommended
122 - dev-texlive/texlive-plaingeneric
123 - dev-texlive/texlive-metapost
124 - virtual/latex-base
125 - )
126 - java? ( >=virtual/jdk-1.8:* )
127 - qrupdate? ( app-misc/pax-utils )
128 - sparse? ( app-misc/pax-utils )"
129 -BDEPEND="
130 - virtual/pkgconfig
131 - gui? ( dev-qt/linguist-tools:5 )"
132 -
133 -PATCHES=(
134 - "${FILESDIR}"/${PN}-5.1.0-pkgbuilddir.patch
135 - "${FILESDIR}"/${PN}-4.2.2-ncurses-pkgconfig.patch
136 - "${FILESDIR}"/${PN}-6.4.0-slibtool.patch
137 - "${FILESDIR}"/${PN}-6.4.0-omit-qtchooser-qtver.patch
138 -)
139 -
140 -src_prepare() {
141 - default
142 -
143 - # nasty prefix hacks for fltk:1 linking
144 - if use prefix; then
145 - use opengl && append-ldflags -Wl,-rpath,"${EPREFIX}/usr/$(get_libdir)/fltk-1"
146 - fi
147 -
148 - # occasional fail on install, force regeneration (bug #401189)
149 - rm doc/interpreter/contributors.texi || die
150 -
151 - eautoreconf
152 -}
153 -
154 -src_configure() {
155 - # unfortunate dependency on mpi from hdf5 (bug #302621)
156 - use hdf5 && has_version sci-libs/hdf5[mpi] && \
157 - export CXX=mpicxx CC=mpicc FC=mpif77 F77=mpif77
158 -
159 - # tell autoconf where to find qt binaries, fix bug #837752
160 - export MOC="$(qt5_get_bindir)/moc" UIC="$(qt5_get_bindir)/uic" RCC="$(qt5_get_bindir)/rcc" \
161 - LRELEASE="$(qt5_get_bindir)/lrelease" QCOLLECTIONGENERATOR="$(qt5_get_bindir)/qcollectiongenerator" \
162 - QHELPGENERATOR="$(qt5_get_bindir)/qhelpgenerator"
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 - # The --enable-link-all-dependencies flag is needed because
173 - # otherwise, the build system appends --no-undefined to LDFLAGS and
174 - # then proceeds to undefine things. GNU libtool ignores this, but
175 - # slibtool (for example) does not (bug #776583).
176 - econf \
177 - --localstatedir="${EPREFIX}/var/state/octave" \
178 - --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \
179 - --with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)" \
180 - --disable-64 \
181 - --enable-link-all-dependencies \
182 - --enable-shared \
183 - --with-z \
184 - --with-bz2 \
185 - $(use_enable static-libs static) \
186 - $(use_enable doc docs) \
187 - $(use_enable java) \
188 - $(use_enable json rapidjson) \
189 - $(use_enable readline) \
190 - $(use_with curl) \
191 - $(use_with fftw fftw3) \
192 - $(use_with fftw fftw3f) \
193 - $(use_enable fftw fftw-threads) \
194 - $(use_with glpk) \
195 - $(use_with hdf5) \
196 - $(use_with opengl) \
197 - $(use_with opengl fltk) \
198 - $(use_with ssl openssl) \
199 - $(use_with portaudio) \
200 - $(use_with qhull qhull_r) \
201 - $(use_with qrupdate) \
202 - $(use_with gui qt 5) \
203 - $(use_with sndfile) \
204 - $(use_with sparse arpack) \
205 - $(use_with sparse umfpack) \
206 - $(use_with sparse colamd) \
207 - $(use_with sparse ccolamd) \
208 - $(use_with sparse cholmod) \
209 - $(use_with sparse cxsparse) \
210 - $(use_with sundials sundials_ida) \
211 - $(use_with X x)
212 -}
213 -
214 -src_compile() {
215 - export VARTEXFONTS="${T}/fonts" # otherwise it will write to /var/cache/fonts/ and trip sandbox
216 -
217 - default
218 -
219 - if use java; then
220 - pax-mark m "${S}/src/.libs/octave-cli"
221 - fi
222 -}
223 -
224 -src_install() {
225 - default
226 -
227 - if use doc; then
228 - dodoc $(find doc -name '*.pdf')
229 - else
230 - # bug #566134, macros.texi is installed by make install if use doc
231 - insinto /usr/share/${PN}/${PV}/etc
232 - doins doc/interpreter/macros.texi
233 - fi
234 -
235 - [[ -e test/fntests.log ]] && dodoc test/fntests.log
236 -
237 - use java && \
238 - java-pkg_regjar "${ED}/usr/share/${PN}/${PV}/m/java/octave.jar"
239 -
240 - echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/${PN}/${PV}" > 99octave || die
241 - doenvd 99octave
242 -
243 - find "${ED}" -type f -name '*.la' -delete || die
244 -}