Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/octave/
Date: Tue, 28 Feb 2017 20:41:15
Message-Id: 1488314461.2d77607d1de9cc286035ca5e99a2eaa5bb05e01c.soap@gentoo
1 commit: 2d77607d1de9cc286035ca5e99a2eaa5bb05e01c
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 28 20:39:19 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 28 20:41:01 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d77607d
7
8 sci-mathematics/octave: Version bump to 4.2.1
9
10 Bug: https://bugs.gentoo.org/show_bug.cgi?id=610994
11
12 Package-Manager: Portage-2.3.3, Repoman-2.3.1
13
14 sci-mathematics/octave/Manifest | 1 +
15 sci-mathematics/octave/octave-4.2.1.ebuild | 178 +++++++++++++++++++++++++++++
16 2 files changed, 179 insertions(+)
17
18 diff --git a/sci-mathematics/octave/Manifest b/sci-mathematics/octave/Manifest
19 index c2b7f89c33b..b0da42bbc13 100644
20 --- a/sci-mathematics/octave/Manifest
21 +++ b/sci-mathematics/octave/Manifest
22 @@ -1,3 +1,4 @@
23 DIST octave-3.6.4.tar.bz2 15627315 SHA256 fa185df9591f5d740f4d37ff6eaf06db576fdd3e0ddd9d0737365799e5d1c962 SHA512 a49ef50161272618c9543057be5903e1e50b7f4ecb929777f6715d4b3a07a92c36a5b13958c52d8b942b6c7e7e3f7844409d0062eb02bdb3972d7194312b7a81 WHIRLPOOL f51c764ce1ed911661bb3dd1d31a2321f09c0d887ead7bbe8c1f4ad1ebe05137223afb5ff18fc57b83d631936975964a85e4fed9a087760935acb5a35050cda0
24 DIST octave-3.8.2.tar.bz2 17834980 SHA256 83bbd701aab04e7e57d0d5b8373dd54719bebb64ce0a850e69bf3d7454f33bae SHA512 c2bf4cc844a5b8dbabf2b54d2458ee7573f87dc92ca8cd7829e8c057591387b3a0995b5b48c6e50ff2944411f2b28521de26e438ed431f68ab5b49b8ce1d94cc WHIRLPOOL c117b935a060572577b3506a508d558a2af85b2785af02647e9edc47c5df97e357d954449edc90cc40a6af3230f99faccf6c7cf1b9b2bc6044f35749d3ae1af0
25 DIST octave-4.2.0.tar.gz 25320153 SHA256 443ba73782f3531c94bcf016f2f0362a58e186ddb8269af7dcce973562795567 SHA512 5d16665d4ef8f218320f471704f8702f3a2911cc4a083cae318c1df0f787d50dddbc511dc91e11379314d65cecac6d521abac026860feca19d11ffdb52d3e678 WHIRLPOOL b5973f4e96aa4785436afa7fcc637cce021e4b5e93c3368f61712c808191bc26e3ece9d649f0b99e3df03672cb6df16c28cad931f3317b555f4f3167e4092f34
26 +DIST octave-4.2.1.tar.gz 25409651 SHA256 80c28f6398576b50faca0e602defb9598d6f7308b0903724442c2a35a605333b SHA512 c437c57eb145ddea7b97124dc6406d130fd91c9141198b93bc756bb05cb3f7645a7c591443faeb65e69edf6abc2b8d5612e515f7703a04eed27213a2133009b7 WHIRLPOOL 4488287a9223ed99fe4ff3423f8ea5157cb538eb54918a53024082083a2f22d2af751f7dde0e489266a518d6ea5265e9c68536b5d5d9a186919d9979e9575333
27
28 diff --git a/sci-mathematics/octave/octave-4.2.1.ebuild b/sci-mathematics/octave/octave-4.2.1.ebuild
29 new file mode 100644
30 index 00000000000..4570c991f58
31 --- /dev/null
32 +++ b/sci-mathematics/octave/octave-4.2.1.ebuild
33 @@ -0,0 +1,178 @@
34 +# Copyright 1999-2017 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +# $Id$
37 +
38 +EAPI=6
39 +
40 +inherit autotools flag-o-matic fortran-2 java-pkg-opt-2 pax-utils toolchain-funcs
41 +
42 +DESCRIPTION="High-level interactive language for numerical computations"
43 +LICENSE="GPL-3"
44 +HOMEPAGE="http://www.octave.org/"
45 +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
46 +
47 +SLOT="0/${PV}"
48 +IUSE="curl doc fftw +glpk gnuplot graphicsmagick gui hdf5 +imagemagick java opengl openssl
49 + portaudio postscript +qhull +qrupdate readline sndfile +sparse static-libs X zlib"
50 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
51 +
52 +RDEPEND="
53 + app-arch/bzip2
54 + app-text/ghostscript-gpl
55 + dev-libs/libpcre:3=
56 + sys-libs/ncurses:0=
57 + sys-libs/zlib
58 + virtual/blas
59 + virtual/lapack
60 + curl? ( net-misc/curl:0= )
61 + fftw? ( sci-libs/fftw:3.0= )
62 + glpk? ( sci-mathematics/glpk:0= )
63 + gnuplot? ( sci-visualization/gnuplot )
64 + hdf5? ( sci-libs/hdf5:0= )
65 + imagemagick? (
66 + !graphicsmagick? ( media-gfx/imagemagick:=[cxx] )
67 + graphicsmagick? ( media-gfx/graphicsmagick:=[cxx] )
68 + )
69 + java? ( >=virtual/jre-1.6.0:* )
70 + opengl? (
71 + media-libs/freetype:2=
72 + media-libs/fontconfig:1.0=
73 + >=x11-libs/fltk-1.3:1=[opengl,xft]
74 + x11-libs/gl2ps:0=
75 + virtual/glu
76 + )
77 + openssl? ( dev-libs/openssl:0= )
78 + portaudio? ( media-libs/portaudio )
79 + postscript? (
80 + app-text/epstool
81 + media-gfx/pstoedit
82 + media-gfx/transfig
83 + )
84 + qhull? ( media-libs/qhull:0= )
85 + qrupdate? ( sci-libs/qrupdate:0= )
86 + gui? (
87 + dev-qt/qtcore:5
88 + dev-qt/qtgui:5
89 + dev-qt/qtnetwork:5
90 + dev-qt/qtopengl:5
91 + >=x11-libs/qscintilla-2.9.3-r2:=[qt5(+)]
92 + )
93 + readline? ( sys-libs/readline:0= )
94 + sndfile? ( media-libs/libsndfile )
95 + sparse? (
96 + sci-libs/arpack:0=
97 + sci-libs/camd:0=
98 + sci-libs/ccolamd:0=
99 + sci-libs/cholmod:0=
100 + sci-libs/colamd:0=
101 + sci-libs/cxsparse:0=
102 + sci-libs/umfpack:0=
103 + )
104 + X? ( x11-libs/libX11:0= )"
105 +DEPEND="${RDEPEND}
106 + gui? ( dev-qt/linguist-tools:5 )
107 + qrupdate? ( app-misc/pax-utils )
108 + sparse? ( app-misc/pax-utils )
109 + java? ( >=virtual/jdk-1.6.0 )
110 + doc? (
111 + virtual/latex-base
112 + dev-texlive/texlive-fontsrecommended
113 + dev-texlive/texlive-genericrecommended
114 + dev-texlive/texlive-metapost
115 + )
116 + sys-apps/texinfo
117 + dev-util/gperf
118 + virtual/pkgconfig"
119 +
120 +PATCHES=(
121 + "${FILESDIR}"/${PN}-4.2.0-texi.patch
122 + "${FILESDIR}"/${PN}-4.2.0-disable-getcwd-path-max-test-as-it-is-too-slow.patch
123 + "${FILESDIR}"/${PN}-4.2.0-imagemagick-configure.patch
124 + "${FILESDIR}"/${PN}-4.2.0-imagemagick.patch
125 + "${FILESDIR}"/${PN}-4.2.0-pkgbuilddir.patch
126 + "${FILESDIR}"/${PN}-4.2.0-ncurses-pkgconfig.patch
127 + "${FILESDIR}"/${PN}-4.2.0-zlib-underlinking.patch
128 + "${FILESDIR}"/${PN}-4.2.0-fix-qscintilla-detection.patch
129 +)
130 +
131 +src_prepare() {
132 + # nasty prefix hacks for fltk:1 and qt4 linking
133 + if use prefix; then
134 + use opengl && append-ldflags -Wl,-rpath,"${EPREFIX}/usr/$(get_libdir)/fltk-1"
135 + fi
136 +
137 + # occasional fail on install, force regeneration (bug #401189)
138 + rm doc/interpreter/contributors.texi || die
139 +
140 + default
141 + eautoreconf
142 +}
143 +
144 +src_configure() {
145 + # [QA] detect underlinking #593670
146 + append-ldflags $(test-flags-CXX -Wl,-z,defs)
147 +
148 + # unfortunate dependency on mpi from hdf5 (bug #302621)
149 + use hdf5 && has_version sci-libs/hdf5[mpi] && \
150 + export CXX=mpicxx CC=mpicc FC=mpif77 F77=mpif77
151 +
152 + econf \
153 + --localstatedir="${EPREFIX}/var/state/octave" \
154 + --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \
155 + --with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)" \
156 + --disable-64 \
157 + --disable-jit \
158 + --enable-shared \
159 + --with-z \
160 + --with-bz2 \
161 + --without-OSMesa \
162 + $(use_enable static-libs static) \
163 + $(use_enable doc docs) \
164 + $(use_enable java) \
165 + $(use_enable readline) \
166 + $(use_with curl) \
167 + $(use_with fftw fftw3) \
168 + $(use_with fftw fftw3f) \
169 + $(use_enable fftw fftw-threads) \
170 + $(use_with glpk) \
171 + $(use_with hdf5) \
172 + $(use_with imagemagick magick $(usex graphicsmagick GraphicsMagick ImageMagick)) \
173 + $(use_with opengl) \
174 + $(use_with opengl fltk) \
175 + $(use_with openssl) \
176 + $(use_with portaudio) \
177 + $(use_with qhull) \
178 + $(use_with qrupdate) \
179 + $(use_with gui qt 5) \
180 + $(use_with sndfile) \
181 + $(use_with sparse arpack) \
182 + $(use_with sparse umfpack) \
183 + $(use_with sparse colamd) \
184 + $(use_with sparse ccolamd) \
185 + $(use_with sparse cholmod) \
186 + $(use_with sparse cxsparse) \
187 + $(use_with X x)
188 +}
189 +
190 +src_compile() {
191 + default
192 + if use java; then
193 + pax-mark m "${S}/src/.libs/octave-cli"
194 + fi
195 +}
196 +
197 +src_install() {
198 + default
199 + if use doc; then
200 + dodoc $(find doc -name '*.pdf')
201 + else
202 + # bug 566134, macros.texi is installed by make install if use doc
203 + insinto /usr/share/${PN}/${PV}/etc
204 + doins doc/interpreter/macros.texi
205 + fi
206 + [[ -e test/fntests.log ]] && dodoc test/fntests.log
207 + use java && \
208 + java-pkg_regjar "${ED%/}/usr/share/${PN}/${PV}/m/java/octave.jar"
209 + echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/${PN}/${PV}" > 99octave || die
210 + doenvd 99octave
211 +}