Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/octave/, sci-mathematics/octave/files/
Date: Sat, 07 Apr 2018 20:49:33
Message-Id: 1523134122.dfc6d810f76e3d9777f622a8108b0cbf060b1c04.asturm@gentoo
1 commit: dfc6d810f76e3d9777f622a8108b0cbf060b1c04
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 7 17:56:46 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 7 20:48:42 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfc6d810
7
8 sci-mathematics/octave: Drop 4.2.1
9
10 Package-Manager: Portage-2.3.28, Repoman-2.3.9
11
12 sci-mathematics/octave/Manifest | 1 -
13 .../octave-4.2.0-fix-qscintilla-detection.patch | 14 --
14 .../files/octave-4.2.0-imagemagick-configure.patch | 16 --
15 .../files/octave-4.2.0-ncurses-pkgconfig.patch | 37 ----
16 sci-mathematics/octave/octave-4.2.1.ebuild | 187 ---------------------
17 5 files changed, 255 deletions(-)
18
19 diff --git a/sci-mathematics/octave/Manifest b/sci-mathematics/octave/Manifest
20 index 7bc14e5915b..5a47e212d7a 100644
21 --- a/sci-mathematics/octave/Manifest
22 +++ b/sci-mathematics/octave/Manifest
23 @@ -1,2 +1 @@
24 -DIST octave-4.2.1.tar.gz 25409651 BLAKE2B c53dd025cbad023d4d343d47ff13051f6f66bc8cfeece6c56eda83a80c92d2256fd1e75d5574ae024e42d707eb22b60420269f91a4930642aec8e3391a17b035 SHA512 c437c57eb145ddea7b97124dc6406d130fd91c9141198b93bc756bb05cb3f7645a7c591443faeb65e69edf6abc2b8d5612e515f7703a04eed27213a2133009b7
25 DIST octave-4.2.2.tar.gz 25624087 BLAKE2B c46de90d9a985c2b6b4f87b94b56f2ba4fb648ca0a0aff1f64e9b9d27a6d791e8657c2bff0c4daa3de5ac3622c23b34724e740ec1fe0f1a71d8f416c9f58d88a SHA512 b94edd79adc0e19229bb654037910201b51b6cfa373d63de5e3aa69e9b659b2e2790e2d2b4b5e8d2f12b26846c20ba5c12eae657155c8329e85e970f738d08c2
26
27 diff --git a/sci-mathematics/octave/files/octave-4.2.0-fix-qscintilla-detection.patch b/sci-mathematics/octave/files/octave-4.2.0-fix-qscintilla-detection.patch
28 deleted file mode 100644
29 index ea714ecbfbb..00000000000
30 --- a/sci-mathematics/octave/files/octave-4.2.0-fix-qscintilla-detection.patch
31 +++ /dev/null
32 @@ -1,14 +0,0 @@
33 -In Gentoo, QScintilla for Qt5 has the same library name
34 -as its Qt4 variant.
35 -
36 ---- a/m4/acinclude.m4
37 -+++ b/m4/acinclude.m4
38 -@@ -1327,7 +1327,7 @@
39 - ;;
40 - 5)
41 - QT_MODULES="Qt5Core Qt5Gui Qt5Network Qt5OpenGL Qt5PrintSupport"
42 -- octave_qscintilla_libnames="qscintilla2-qt5 qt5scintilla2"
43 -+ octave_qscintilla_libnames="qscintilla2_qt5 qscintilla2"
44 - ;;
45 - *)
46 - AC_MSG_ERROR([Unrecognized Qt version $qt_version])
47
48 diff --git a/sci-mathematics/octave/files/octave-4.2.0-imagemagick-configure.patch b/sci-mathematics/octave/files/octave-4.2.0-imagemagick-configure.patch
49 deleted file mode 100644
50 index d5b2870185b..00000000000
51 --- a/sci-mathematics/octave/files/octave-4.2.0-imagemagick-configure.patch
52 +++ /dev/null
53 @@ -1,16 +0,0 @@
54 ---- a/configure.ac
55 -+++ b/configure.ac
56 -@@ -1560,11 +1560,11 @@
57 - MAGICK_LIBS=
58 -
59 - PKG_CHECK_EXISTS([$magick++], [
60 -- ## Make sure we only get -I, -L, and -l flags. Some Graphics/ImageMagick++
61 -+ ## Make sure we only get -I, -D, -L, and -l flags. Some Graphics/ImageMagick++
62 - ## packages add extra flags that are useful when building
63 - ## Graphics/ImageMagick++ extentions. These extra flags break the
64 - ## Octave build.
65 -- MAGICK_CPPFLAGS=`$PKG_CONFIG --cflags-only-I $magick++`
66 -+ MAGICK_CPPFLAGS=`$PKG_CONFIG --cflags $magick++ | sed -e 's/\(-@<:@DI@:>@@<:@^ \t@:>@*\)\|\(-@<:@^ \t@:>@*\)/\1/g'`
67 - MAGICK_LDFLAGS=`$PKG_CONFIG --libs-only-L $magick++`
68 - MAGICK_LIBS=`$PKG_CONFIG --libs-only-l $magick++`
69 -
70
71 diff --git a/sci-mathematics/octave/files/octave-4.2.0-ncurses-pkgconfig.patch b/sci-mathematics/octave/files/octave-4.2.0-ncurses-pkgconfig.patch
72 deleted file mode 100644
73 index 89f6f6e7014..00000000000
74 --- a/sci-mathematics/octave/files/octave-4.2.0-ncurses-pkgconfig.patch
75 +++ /dev/null
76 @@ -1,37 +0,0 @@
77 ---- a/m4/acinclude.m4
78 -+++ b/m4/acinclude.m4
79 -@@ -1194,32 +1194,8 @@
80 - dnl Find a suitable termlib to use.
81 - dnl
82 - AC_DEFUN([OCTAVE_CHECK_LIB_TERMLIB], [
83 -- TERM_LIBS=
84 -- ac_octave_save_LIBS="$LIBS"
85 -- AC_SEARCH_LIBS([tputs],
86 -- [ncurses curses termcap terminfo termlib],
87 -- [], [])
88 -- LIBS="$ac_octave_save_LIBS"
89 -- case "$ac_cv_search_tputs" in
90 -- -l*)
91 -- TERM_LIBS="$ac_cv_search_tputs"
92 -- ;;
93 -- no)
94 -- warn_termlibs="I couldn't find -ltermcap, -lterminfo, -lncurses, -lcurses, or -ltermlib!"
95 -- AC_MSG_WARN([$warn_termlibs])
96 -- ;;
97 -- esac
98 --
99 --dnl Old code (9/9/2012). Delete when new code is definitely proven.
100 --dnl
101 --dnl for _termlib in ncurses curses termcap terminfo termlib; do
102 --dnl AC_CHECK_LIB([${_termlib}], [tputs], [
103 --dnl TERM_LIBS="-l${termlib}"
104 --dnl octave_cv_lib_found_termlib=yes
105 --dnl break])
106 --dnl done
107 --
108 -- AC_SUBST(TERM_LIBS)
109 -+ PKG_CHECK_MODULES([TERM], [ncurses])
110 -+ CPPFLAGS="${CPPFLAGS} ${TERM_CFLAGS}"
111 - ])
112 - dnl
113 - dnl Check for the Qhull version.
114
115 diff --git a/sci-mathematics/octave/octave-4.2.1.ebuild b/sci-mathematics/octave/octave-4.2.1.ebuild
116 deleted file mode 100644
117 index e7ecf516cc4..00000000000
118 --- a/sci-mathematics/octave/octave-4.2.1.ebuild
119 +++ /dev/null
120 @@ -1,187 +0,0 @@
121 -# Copyright 1999-2017 Gentoo Foundation
122 -# Distributed under the terms of the GNU General Public License v2
123 -
124 -EAPI=6
125 -
126 -inherit autotools flag-o-matic fortran-2 java-pkg-opt-2 pax-utils toolchain-funcs xdg-utils
127 -
128 -DESCRIPTION="High-level interactive language for numerical computations"
129 -LICENSE="GPL-3"
130 -HOMEPAGE="http://www.octave.org/"
131 -SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
132 -
133 -SLOT="0/${PV}"
134 -IUSE="curl doc fftw +glpk gnuplot graphicsmagick gui hdf5 +imagemagick java opengl openssl
135 - portaudio postscript +qhull +qrupdate readline sndfile +sparse static-libs X zlib"
136 -KEYWORDS="amd64 ~arm hppa ppc ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux"
137 -
138 -RDEPEND="
139 - app-arch/bzip2
140 - app-text/ghostscript-gpl
141 - dev-libs/libpcre:3=
142 - sys-libs/ncurses:0=
143 - sys-libs/zlib
144 - virtual/blas
145 - virtual/lapack
146 - curl? ( net-misc/curl:0= )
147 - fftw? ( sci-libs/fftw:3.0= )
148 - glpk? ( sci-mathematics/glpk:0= )
149 - gnuplot? ( sci-visualization/gnuplot )
150 - hdf5? ( sci-libs/hdf5:0= )
151 - imagemagick? (
152 - !graphicsmagick? ( media-gfx/imagemagick:=[cxx] )
153 - graphicsmagick? ( media-gfx/graphicsmagick:=[cxx] )
154 - )
155 - java? ( >=virtual/jre-1.6.0:* )
156 - opengl? (
157 - media-libs/freetype:2=
158 - media-libs/fontconfig:1.0=
159 - >=x11-libs/fltk-1.3:1=[opengl,xft]
160 - x11-libs/gl2ps:0=
161 - virtual/glu
162 - )
163 - openssl? ( dev-libs/openssl:0= )
164 - portaudio? ( media-libs/portaudio )
165 - postscript? (
166 - app-text/epstool
167 - media-gfx/pstoedit
168 - media-gfx/transfig
169 - )
170 - qhull? ( media-libs/qhull:0= )
171 - qrupdate? ( sci-libs/qrupdate:0= )
172 - gui? (
173 - dev-qt/qtcore:5
174 - dev-qt/qtgui:5
175 - dev-qt/qtnetwork:5
176 - dev-qt/qtopengl:5
177 - >=x11-libs/qscintilla-2.9.3-r2:=[qt5(+)]
178 - )
179 - readline? ( sys-libs/readline:0= )
180 - sndfile? ( media-libs/libsndfile )
181 - sparse? (
182 - sci-libs/arpack:0=
183 - sci-libs/camd:0=
184 - sci-libs/ccolamd:0=
185 - sci-libs/cholmod:0=
186 - sci-libs/colamd:0=
187 - sci-libs/cxsparse:0=
188 - sci-libs/umfpack:0=
189 - )
190 - X? ( x11-libs/libX11:0= )"
191 -DEPEND="${RDEPEND}
192 - gui? ( dev-qt/linguist-tools:5 )
193 - qrupdate? ( app-misc/pax-utils )
194 - sparse? ( app-misc/pax-utils )
195 - java? ( >=virtual/jdk-1.6.0 )
196 - doc? (
197 - virtual/latex-base
198 - dev-texlive/texlive-fontsrecommended
199 - || ( dev-texlive/texlive-plaingeneric dev-texlive/texlive-genericrecommended )
200 - dev-texlive/texlive-metapost
201 - )
202 - sys-apps/texinfo
203 - dev-util/gperf
204 - virtual/pkgconfig"
205 -
206 -PATCHES=(
207 - "${FILESDIR}"/${PN}-4.2.0-texi.patch
208 - "${FILESDIR}"/${PN}-4.2.0-disable-getcwd-path-max-test-as-it-is-too-slow.patch
209 - "${FILESDIR}"/${PN}-4.2.0-imagemagick-configure.patch
210 - "${FILESDIR}"/${PN}-4.2.0-imagemagick.patch
211 - "${FILESDIR}"/${PN}-4.2.0-pkgbuilddir.patch
212 - "${FILESDIR}"/${PN}-4.2.0-ncurses-pkgconfig.patch
213 - "${FILESDIR}"/${PN}-4.2.0-zlib-underlinking.patch
214 - "${FILESDIR}"/${PN}-4.2.0-fix-qscintilla-detection.patch
215 -)
216 -
217 -src_prepare() {
218 - # nasty prefix hacks for fltk:1 and qt4 linking
219 - if use prefix; then
220 - use opengl && append-ldflags -Wl,-rpath,"${EPREFIX}/usr/$(get_libdir)/fltk-1"
221 - fi
222 -
223 - # occasional fail on install, force regeneration (bug #401189)
224 - rm doc/interpreter/contributors.texi || die
225 -
226 - default
227 - eautoreconf
228 -}
229 -
230 -src_configure() {
231 - # [QA] detect underlinking #593670
232 - append-ldflags $(test-flags-CXX -Wl,-z,defs)
233 -
234 - # unfortunate dependency on mpi from hdf5 (bug #302621)
235 - use hdf5 && has_version sci-libs/hdf5[mpi] && \
236 - export CXX=mpicxx CC=mpicc FC=mpif77 F77=mpif77
237 -
238 - econf \
239 - --localstatedir="${EPREFIX}/var/state/octave" \
240 - --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \
241 - --with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)" \
242 - --disable-64 \
243 - --disable-jit \
244 - --enable-shared \
245 - --with-z \
246 - --with-bz2 \
247 - --without-OSMesa \
248 - $(use_enable static-libs static) \
249 - $(use_enable doc docs) \
250 - $(use_enable java) \
251 - $(use_enable readline) \
252 - $(use_with curl) \
253 - $(use_with fftw fftw3) \
254 - $(use_with fftw fftw3f) \
255 - $(use_enable fftw fftw-threads) \
256 - $(use_with glpk) \
257 - $(use_with hdf5) \
258 - $(use_with imagemagick magick $(usex graphicsmagick GraphicsMagick ImageMagick)) \
259 - $(use_with opengl) \
260 - $(use_with opengl fltk) \
261 - $(use_with openssl) \
262 - $(use_with portaudio) \
263 - $(use_with qhull) \
264 - $(use_with qrupdate) \
265 - $(use_with gui qt 5) \
266 - $(use_with sndfile) \
267 - $(use_with sparse arpack) \
268 - $(use_with sparse umfpack) \
269 - $(use_with sparse colamd) \
270 - $(use_with sparse ccolamd) \
271 - $(use_with sparse cholmod) \
272 - $(use_with sparse cxsparse) \
273 - $(use_with X x)
274 -}
275 -
276 -src_compile() {
277 - default
278 - if use java; then
279 - pax-mark m "${S}/src/.libs/octave-cli"
280 - fi
281 -}
282 -
283 -src_install() {
284 - default
285 - if use doc; then
286 - dodoc $(find doc -name '*.pdf')
287 - else
288 - # bug 566134, macros.texi is installed by make install if use doc
289 - insinto /usr/share/${PN}/${PV}/etc
290 - doins doc/interpreter/macros.texi
291 - fi
292 - [[ -e test/fntests.log ]] && dodoc test/fntests.log
293 - use java && \
294 - java-pkg_regjar "${ED%/}/usr/share/${PN}/${PV}/m/java/octave.jar"
295 - echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/${PN}/${PV}" > 99octave || die
296 - doenvd 99octave
297 -}
298 -
299 -pkg_postinst() {
300 - xdg_mimeinfo_database_update
301 - xdg_desktop_database_update
302 -}
303 -
304 -pkg_postrm() {
305 - xdg_mimeinfo_database_update
306 - xdg_desktop_database_update
307 -}