Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/mathgl: metadata.xml mathgl-2.1.3.1.ebuild ChangeLog mathgl-2.0.3.ebuild mathgl-2.1.2.ebuild
Date: Mon, 28 Oct 2013 16:46:28
Message-Id: 20131028164623.4434520047@flycatcher.gentoo.org
1 bicatali 13/10/28 16:46:23
2
3 Modified: metadata.xml ChangeLog
4 Added: mathgl-2.1.3.1.ebuild
5 Removed: mathgl-2.0.3.ebuild mathgl-2.1.2.ebuild
6 Log:
7 Version bump
8
9 (Portage version: 2.2.7-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
10
11 Revision Changes Path
12 1.11 sci-libs/mathgl/metadata.xml
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/metadata.xml?rev=1.11&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/metadata.xml?rev=1.11&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/metadata.xml?r1=1.10&r2=1.11
17
18 Index: metadata.xml
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sci-libs/mathgl/metadata.xml,v
21 retrieving revision 1.10
22 retrieving revision 1.11
23 diff -u -r1.10 -r1.11
24 --- metadata.xml 15 Oct 2013 15:00:27 -0000 1.10
25 +++ metadata.xml 28 Oct 2013 16:46:23 -0000 1.11
26 @@ -1,20 +1,20 @@
27 <?xml version="1.0" encoding="UTF-8"?>
28 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
29 <pkgmetadata>
30 - <herd>sci</herd>
31 - <maintainer>
32 - <email>grozin@g.o</email>
33 - <name>Andrey Grozin</name>
34 - </maintainer>
35 - <longdescription>
36 +<herd>sci</herd>
37 +<maintainer>
38 + <email>grozin@g.o</email>
39 + <name>Andrey Grozin</name>
40 +</maintainer>
41 +<longdescription>
42 MathGL is a library for:
43 * making high-quality scientific graphics
44 * the fast data plotting and data processing of large data arrays
45 * working in window and console modes and for easy embedding into other programs
46 </longdescription>
47 - <use>
48 - <flag name="hdf">Add support for the Hierarchical Data Format v.4 <pkg>sci-libs/hdf</pkg></flag>
49 - <flag name="octave">Add bindings for <pkg>sci-mathematics/octave</pkg></flag>
50 - <flag name="double-precision">Add double precision calculations</flag>
51 - </use>
52 +<use>
53 + <flag name="hdf">Add support for the Hierarchical Data Format v.4 <pkg>sci-libs/hdf</pkg></flag>
54 + <flag name="octave">Add bindings for <pkg>sci-mathematics/octave</pkg></flag>
55 + <flag name="double-precision">Add double precision calculations</flag>
56 +</use>
57 </pkgmetadata>
58
59
60
61 1.39 sci-libs/mathgl/ChangeLog
62
63 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/ChangeLog?rev=1.39&view=markup
64 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/ChangeLog?rev=1.39&content-type=text/plain
65 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/ChangeLog?r1=1.38&r2=1.39
66
67 Index: ChangeLog
68 ===================================================================
69 RCS file: /var/cvsroot/gentoo-x86/sci-libs/mathgl/ChangeLog,v
70 retrieving revision 1.38
71 retrieving revision 1.39
72 diff -u -r1.38 -r1.39
73 --- ChangeLog 15 Oct 2013 15:00:27 -0000 1.38
74 +++ ChangeLog 28 Oct 2013 16:46:23 -0000 1.39
75 @@ -1,6 +1,15 @@
76 # ChangeLog for sci-libs/mathgl
77 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
78 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/ChangeLog,v 1.38 2013/10/15 15:00:27 jlec Exp $
79 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/ChangeLog,v 1.39 2013/10/28 16:46:23 bicatali Exp $
80 +
81 +*mathgl-2.1.3.1 (28 Oct 2013)
82 +
83 + 28 Oct 2013; Sébastien Fabbro <bicatali@g.o> +mathgl-2.1.3.1.ebuild,
84 + -files/mathgl-1.10.2-gcc43.patch, -files/mathgl-1.11.2-cast.patch,
85 + -files/mathgl-1.11.2-zlib.patch,
86 + -files/mathgl-2.0.3-fix-hardcoded-paths.patch, -files/mathgl-octave-3.4.patch,
87 + -mathgl-2.0.3.ebuild, -mathgl-2.1.2.ebuild, metadata.xml:
88 + Version bump
89
90 *mathgl-2.1.3 (15 Oct 2013)
91
92
93
94
95 1.1 sci-libs/mathgl/mathgl-2.1.3.1.ebuild
96
97 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/mathgl-2.1.3.1.ebuild?rev=1.1&view=markup
98 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/mathgl-2.1.3.1.ebuild?rev=1.1&content-type=text/plain
99
100 Index: mathgl-2.1.3.1.ebuild
101 ===================================================================
102 # Copyright 1999-2013 Gentoo Foundation
103 # Distributed under the terms of the GNU General Public License v2
104 # $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/mathgl-2.1.3.1.ebuild,v 1.1 2013/10/28 16:46:23 bicatali Exp $
105
106 EAPI=5
107
108 PYTHON_COMPAT=( python{2_6,2_7} )
109 WX_GTK_VER=2.8
110
111 inherit cmake-utils eutils python-single-r1 wxwidgets multilib flag-o-matic
112
113 DESCRIPTION="Math Graphics Library"
114 HOMEPAGE="http://mathgl.sourceforge.net/"
115 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz mirror://sourceforge/${PN}/STIX_font.tgz"
116
117 LICENSE="LGPL-3"
118 SLOT="0"
119 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
120 IUSE="doc fltk gif glut gsl hdf hdf5 jpeg mpi octave opengl pdf
121 png python qt4 static-libs threads wxwidgets zlib"
122
123 LANGS="ru"
124 for l in ${LANGS}; do
125 IUSE+=" linguas_${l}"
126 done
127
128 RDEPEND="
129 !sci-visualization/udav
130 virtual/opengl
131 fltk? ( x11-libs/fltk:1 )
132 gif? ( media-libs/giflib )
133 glut? ( media-libs/freeglut )
134 gsl? ( sci-libs/gsl )
135 hdf? ( sci-libs/hdf )
136 hdf5? ( >=sci-libs/hdf5-1.8[mpi=] )
137 jpeg? ( virtual/jpeg )
138 octave? ( >=sci-mathematics/octave-3.4.0 )
139 pdf? ( media-libs/libharu )
140 png? ( media-libs/libpng )
141 python? ( dev-python/numpy[${PYTHON_USEDEP}] ${PYTHON_DEPS} )
142 qt4? ( dev-qt/qtgui:4 )
143 wxwidgets? ( x11-libs/wxGTK:2.8 )
144 zlib? ( sys-libs/zlib )"
145
146 DEPEND="${RDEPEND}
147 doc? ( app-text/texi2html virtual/texi2dvi )
148 octave? ( dev-lang/swig )
149 python? ( dev-lang/swig )"
150
151 REQUIRED_USE="
152 mpi? ( hdf5 )
153 png? ( zlib )
154 pdf? ( png )
155 python? ( ${PYTHON_REQUIRED_USE} )"
156
157 pkg_setup() {
158 use mpi && export CC=mpicc CXX=mpicxx
159 use python && python-single-r1_pkg_setup
160 use wxwidgets && wxwidgets_pkg_setup
161 }
162
163 src_unpack() {
164 unpack ${A}
165 [[ -d "${S}"/fonts ]] || mkdir "${S}"/fonts
166 cd "${S}"/fonts || die
167 unpack STIX_font.tgz
168 }
169
170 src_prepare() {
171 # fix for location of hdf headers
172 sed -i -e 's:hdf/::g' src/data_io.cpp || die
173 # bored of reporting bad libdir upstream
174 sed -i \
175 -e '/DESTINATION/s:lib$:lib${LIB_SUFFIX}:g' \
176 {src,widgets}/CMakeLists.txt || die
177 echo "" > lang/install.m || die
178 # fix desktop file
179 sed -i -e 's/.png//' udav/udav.desktop || die
180 use python && append-cppflags -I"$(${EPYTHON} -c 'import numpy; print(numpy.get_include())')"
181 }
182
183 src_configure() {
184 local mycmakeargs=(
185 # No clue about this option:
186 # option(enable-mgl2 "Use names 'libmgl2-*' instead of 'libmgl-*'")
187 -DHDF4_INCLUDE_DIR="${EPREFIX}/usr/include"
188 -DMGL_LIB_INSTALL_DIR="$(get_libdir)"
189 $(cmake-utils_use doc enable-doc)
190 $(cmake-utils_use fltk enable-fltk)
191 $(cmake-utils_use gif enable-gif)
192 $(cmake-utils_use glut enable-glut)
193 $(cmake-utils_use gsl enable-gsl)
194 $(cmake-utils_use hdf enable-hdf4)
195 $(cmake-utils_use hdf5 enable-hdf5_18)
196 $(cmake-utils_use jpeg enable-jpeg)
197 $(cmake-utils_use mpi enable-mpi)
198 $(cmake-utils_use octave enable-octave)
199 $(cmake-utils_use opengl enable-opengl)
200 $(cmake-utils_use pdf enable-pdf)
201 $(cmake-utils_use png enable-png)
202 $(cmake-utils_use qt4 enable-qt)
203 $(cmake-utils_use threads enable-pthread)
204 $(cmake-utils_use python enable-python)
205 $(cmake-utils_use wxwidgets enable-wx)
206 $(cmake-utils_use zlib enable-zlib)
207 )
208 cmake-utils_src_configure
209 # to whoever cares: TODO: do for multiple python ABI
210 if use python; then
211 sed -i \
212 -e "s:--prefix=\(.*\) :--prefix=\$ENV{DESTDIR}\1 :" \
213 "${CMAKE_BUILD_DIR}"/lang/cmake_install.cmake || die
214 fi
215 }
216
217 src_install() {
218 cmake-utils_src_install
219 dodoc README* *.txt AUTHORS
220 use static-libs || rm "${ED}"/usr/$(get_libdir)/*.a
221 if use qt4 ; then
222 local lang
223 insinto /usr/share/udav
224 for lang in ${LANGS} ; do
225 use linguas_${lang} && doins udav/udav_${lang}.qm
226 done
227 fi
228 if use octave ; then
229 insinto /usr/share/${PN}/octave
230 doins "${CMAKE_BUILD_DIR}"/lang/${PN}.tar.gz
231 fi
232 use python && python_optimize
233 }
234
235 pkg_postinst() {
236 if use octave; then
237 octave <<-EOF
238 pkg install ${EROOT}/usr/share/${PN}/octave/${PN}.tar.gz
239 EOF
240 fi
241 }
242
243 pkg_prerm() {
244 if use octave; then
245 octave <<-EOF
246 pkg uninstall ${PN}
247 EOF
248 fi
249 }