1 |
commit: e74fea220f6c31c548cb8fecd033d479224fef0f |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 30 22:28:23 2021 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 30 22:28:54 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e74fea22 |
7 |
|
8 |
sci-mathematics/octave: new upstream version 6.3.0. |
9 |
|
10 |
A standard copy/paste update, and I've dropped an old patch to one of |
11 |
the autotools macros. A comment stated that the macro took too long, |
12 |
but on my (ancient) machine it took about ten seconds. That is |
13 |
relatively long, but not compared to the rest of the Octave build, and |
14 |
not when considered against the burden of an eternal patch. |
15 |
|
16 |
Closes: https://bugs.gentoo.org/815463 |
17 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
18 |
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> |
19 |
|
20 |
sci-mathematics/octave/Manifest | 1 + |
21 |
sci-mathematics/octave/octave-6.3.0.ebuild | 194 +++++++++++++++++++++++++++++ |
22 |
2 files changed, 195 insertions(+) |
23 |
|
24 |
diff --git a/sci-mathematics/octave/Manifest b/sci-mathematics/octave/Manifest |
25 |
index 80143154f5f..19093503ee6 100644 |
26 |
--- a/sci-mathematics/octave/Manifest |
27 |
+++ b/sci-mathematics/octave/Manifest |
28 |
@@ -1,2 +1,3 @@ |
29 |
DIST octave-5.2.0.tar.gz 33360285 BLAKE2B 6d53a48a7fbe929e372fd51d084c0269befd3140341f3f3a1f2cae02f9f085ed434c3336c770c9a856081197c93ee306f481dd116b958685175bc294e4db62ae SHA512 fa2076fb22415e0797964c66cfb8d24643f178f45eb9c14ebb4c082767e0a53509fde550f579fa4a816348bd0f7cbc74f24144f9a30a5b9c09ebe1b3949db498 |
30 |
DIST octave-6.2.0.tar.gz 32620419 BLAKE2B 55fd06336263b43f921ef30cac4fb82951a6be19aa60b6c24f24bcf3884923d824b6e4e6a8ad2983c394f541e556f7830922b34f8565bff3d07a7830c5df3cb0 SHA512 4039b68ffa77e599c63aa5748411603e86943be63ce96b6810547ba9776fe400939957fd8c40b2f212dfe244c76e58fdbbc4025179c9785b773da9bbb9fedaf2 |
31 |
+DIST octave-6.3.0.tar.gz 32859335 BLAKE2B 032f0e74b2fcd41358db1adc7f7274f6c8e327f5f86a32739864078bf236af26544f5988e774ebdd2ed28a6906e86556ce44ecd4bc5d3e710d839ecf5dcad9d9 SHA512 9582d7a7d84beef2a22d3dfaf45aee4778fc0dfc0ec1831c5bcb863dd0062e996e5b7aaaa40519c23d2c730c3408e26745b9dbf73db5127ebae22da0b2532788 |
32 |
|
33 |
diff --git a/sci-mathematics/octave/octave-6.3.0.ebuild b/sci-mathematics/octave/octave-6.3.0.ebuild |
34 |
new file mode 100644 |
35 |
index 00000000000..0b137094276 |
36 |
--- /dev/null |
37 |
+++ b/sci-mathematics/octave/octave-6.3.0.ebuild |
38 |
@@ -0,0 +1,194 @@ |
39 |
+# Copyright 1999-2021 Gentoo Authors |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+ |
42 |
+EAPI=6 |
43 |
+ |
44 |
+inherit autotools flag-o-matic fortran-2 gnome2-utils java-pkg-opt-2 pax-utils toolchain-funcs xdg-utils |
45 |
+ |
46 |
+DESCRIPTION="High-level interactive language for numerical computations" |
47 |
+LICENSE="GPL-3" |
48 |
+HOMEPAGE="https://www.gnu.org/software/octave/" |
49 |
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" |
50 |
+ |
51 |
+SLOT="0/${PV}" |
52 |
+IUSE="curl doc fftw +glpk gnuplot gui hdf5 java opengl |
53 |
+ portaudio postscript +qhull +qrupdate readline sndfile +sparse |
54 |
+ ssl static-libs sundials X zlib" |
55 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
56 |
+ |
57 |
+# Although it is listed in INSTALL.OCTAVE as a build tool, Octave runs |
58 |
+# "makeinfo" from sys-apps/texinfo at runtime to convert its texinfo |
59 |
+# documentation to text (see scripts/help/help.m). |
60 |
+RDEPEND=" |
61 |
+ app-arch/bzip2 |
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.6.0:* ) |
85 |
+ opengl? ( |
86 |
+ media-libs/freetype:2= |
87 |
+ media-libs/fontconfig:1.0= |
88 |
+ virtual/glu |
89 |
+ >=x11-libs/fltk-1.3:1=[opengl,xft] |
90 |
+ x11-libs/gl2ps:0= |
91 |
+ ) |
92 |
+ portaudio? ( media-libs/portaudio ) |
93 |
+ postscript? ( |
94 |
+ app-text/epstool |
95 |
+ media-gfx/pstoedit |
96 |
+ media-gfx/transfig |
97 |
+ ) |
98 |
+ qhull? ( media-libs/qhull:0= ) |
99 |
+ qrupdate? ( sci-libs/qrupdate:0= ) |
100 |
+ readline? ( sys-libs/readline:0= ) |
101 |
+ sndfile? ( media-libs/libsndfile ) |
102 |
+ sparse? ( |
103 |
+ sci-libs/arpack:0= |
104 |
+ sci-libs/camd:0= |
105 |
+ sci-libs/ccolamd:0= |
106 |
+ sci-libs/cholmod:0= |
107 |
+ sci-libs/colamd:0= |
108 |
+ sci-libs/cxsparse:0= |
109 |
+ sci-libs/umfpack:0= |
110 |
+ ) |
111 |
+ ssl? ( |
112 |
+ dev-libs/openssl:0= |
113 |
+ ) |
114 |
+ sundials? ( >=sci-libs/sundials-4:0= ) |
115 |
+ X? ( x11-libs/libX11:0= )" |
116 |
+DEPEND="${RDEPEND} |
117 |
+ dev-util/gperf |
118 |
+ virtual/pkgconfig |
119 |
+ doc? ( |
120 |
+ dev-texlive/texlive-fontsrecommended |
121 |
+ dev-texlive/texlive-plaingeneric |
122 |
+ dev-texlive/texlive-metapost |
123 |
+ virtual/latex-base |
124 |
+ ) |
125 |
+ gui? ( dev-qt/linguist-tools:5 ) |
126 |
+ java? ( >=virtual/jdk-1.6.0 ) |
127 |
+ qrupdate? ( app-misc/pax-utils ) |
128 |
+ sparse? ( app-misc/pax-utils )" |
129 |
+ |
130 |
+PATCHES=( |
131 |
+ "${FILESDIR}"/${PN}-5.1.0-pkgbuilddir.patch |
132 |
+ "${FILESDIR}"/${PN}-4.2.2-ncurses-pkgconfig.patch |
133 |
+) |
134 |
+ |
135 |
+src_prepare() { |
136 |
+ # nasty prefix hacks for fltk:1 linking |
137 |
+ if use prefix; then |
138 |
+ use opengl && append-ldflags -Wl,-rpath,"${EPREFIX}/usr/$(get_libdir)/fltk-1" |
139 |
+ fi |
140 |
+ |
141 |
+ # occasional fail on install, force regeneration (bug #401189) |
142 |
+ rm doc/interpreter/contributors.texi || die |
143 |
+ |
144 |
+ default |
145 |
+ eautoreconf |
146 |
+} |
147 |
+ |
148 |
+src_configure() { |
149 |
+ # unfortunate dependency on mpi from hdf5 (bug #302621) |
150 |
+ use hdf5 && has_version sci-libs/hdf5[mpi] && \ |
151 |
+ export CXX=mpicxx CC=mpicc FC=mpif77 F77=mpif77 |
152 |
+ |
153 |
+ # Some of these use_with flags are a bit mismatched. The configure |
154 |
+ # script offers only --without-foo, and detects "foo" automatically |
155 |
+ # unless --without-foo is specified. Passing --with-foo is not an |
156 |
+ # error, however, so it kind of works. We wind up with, for example, |
157 |
+ # |
158 |
+ # --with-sundials_ida (no-op) with USE="sundials" |
159 |
+ # --without-sundials_ida (disables it) with USE="-sundials" |
160 |
+ # |
161 |
+ econf \ |
162 |
+ --localstatedir="${EPREFIX}/var/state/octave" \ |
163 |
+ --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \ |
164 |
+ --with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)" \ |
165 |
+ --disable-64 \ |
166 |
+ --disable-jit \ |
167 |
+ --enable-shared \ |
168 |
+ --with-z \ |
169 |
+ --with-bz2 \ |
170 |
+ $(use_enable static-libs static) \ |
171 |
+ $(use_enable doc docs) \ |
172 |
+ $(use_enable java) \ |
173 |
+ $(use_enable readline) \ |
174 |
+ $(use_with curl) \ |
175 |
+ $(use_with fftw fftw3) \ |
176 |
+ $(use_with fftw fftw3f) \ |
177 |
+ $(use_enable fftw fftw-threads) \ |
178 |
+ $(use_with glpk) \ |
179 |
+ $(use_with hdf5) \ |
180 |
+ $(use_with opengl) \ |
181 |
+ $(use_with opengl fltk) \ |
182 |
+ $(use_with ssl openssl) \ |
183 |
+ $(use_with portaudio) \ |
184 |
+ $(use_with qhull) \ |
185 |
+ $(use_with qrupdate) \ |
186 |
+ $(use_with gui qt 5) \ |
187 |
+ $(use_with sndfile) \ |
188 |
+ $(use_with sparse arpack) \ |
189 |
+ $(use_with sparse umfpack) \ |
190 |
+ $(use_with sparse colamd) \ |
191 |
+ $(use_with sparse ccolamd) \ |
192 |
+ $(use_with sparse cholmod) \ |
193 |
+ $(use_with sparse cxsparse) \ |
194 |
+ $(use_with sundials sundials_ida) \ |
195 |
+ $(use_with X x) |
196 |
+} |
197 |
+ |
198 |
+src_compile() { |
199 |
+ export VARTEXFONTS="${T}/fonts" # otherwise it will write to /var/cache/fonts/ and trip sandbox |
200 |
+ default |
201 |
+ if use java; then |
202 |
+ pax-mark m "${S}/src/.libs/octave-cli" |
203 |
+ fi |
204 |
+} |
205 |
+ |
206 |
+src_install() { |
207 |
+ default |
208 |
+ if use doc; then |
209 |
+ dodoc $(find doc -name '*.pdf') |
210 |
+ else |
211 |
+ # bug 566134, macros.texi is installed by make install if use doc |
212 |
+ insinto /usr/share/${PN}/${PV}/etc |
213 |
+ doins doc/interpreter/macros.texi |
214 |
+ fi |
215 |
+ [[ -e test/fntests.log ]] && dodoc test/fntests.log |
216 |
+ use java && \ |
217 |
+ java-pkg_regjar "${ED%/}/usr/share/${PN}/${PV}/m/java/octave.jar" |
218 |
+ echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/${PN}/${PV}" > 99octave || die |
219 |
+ doenvd 99octave |
220 |
+} |
221 |
+ |
222 |
+pkg_postinst() { |
223 |
+ gnome2_icon_cache_update |
224 |
+ xdg_mimeinfo_database_update |
225 |
+ xdg_desktop_database_update |
226 |
+} |
227 |
+ |
228 |
+pkg_postrm() { |
229 |
+ gnome2_icon_cache_update |
230 |
+ xdg_mimeinfo_database_update |
231 |
+ xdg_desktop_database_update |
232 |
+} |