1 |
grozin 11/03/29 15:42:35 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mathgl-1.11.1.1.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
|
8 |
(Portage version: 2.2.0_alpha29/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.23 sci-libs/mathgl/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/ChangeLog?rev=1.23&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/ChangeLog?rev=1.23&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/ChangeLog?r1=1.22&r2=1.23 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/mathgl/ChangeLog,v |
20 |
retrieving revision 1.22 |
21 |
retrieving revision 1.23 |
22 |
diff -u -r1.22 -r1.23 |
23 |
--- ChangeLog 20 Mar 2011 19:59:40 -0000 1.22 |
24 |
+++ ChangeLog 29 Mar 2011 15:42:35 -0000 1.23 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for sci-libs/mathgl |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/ChangeLog,v 1.22 2011/03/20 19:59:40 jlec Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/ChangeLog,v 1.23 2011/03/29 15:42:35 grozin Exp $ |
30 |
+ |
31 |
+*mathgl-1.11.1.1 (29 Mar 2011) |
32 |
+ |
33 |
+ 29 Mar 2011; Andrey Grozin <grozin@g.o> +mathgl-1.11.1.1.ebuild, |
34 |
+ +files/mathgl-octave-3.4.patch: |
35 |
+ Version bump |
36 |
|
37 |
20 Mar 2011; Justin Lecher <jlec@g.o> mathgl-1.10.2.1-r1.ebuild, |
38 |
mathgl-1.11.0.1.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 sci-libs/mathgl/mathgl-1.11.1.1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/mathgl-1.11.1.1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/mathgl-1.11.1.1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: mathgl-1.11.1.1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2011 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/mathgl-1.11.1.1.ebuild,v 1.1 2011/03/29 15:42:35 grozin Exp $ |
52 |
|
53 |
EAPI=3 |
54 |
|
55 |
WX_GTK_VER=2.8 |
56 |
PYTHON_DEPEND="2" |
57 |
SUPPORT_PYTHON_ABIS="1" |
58 |
RESTRICT_PYTHON_ABIS="3.*" |
59 |
|
60 |
inherit autotools wxwidgets python versionator toolchain-funcs |
61 |
|
62 |
DESCRIPTION="Math Graphics Library" |
63 |
HOMEPAGE="http://mathgl.sourceforge.net/" |
64 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz mirror://sourceforge/${PN}/STIX_font.tgz" |
65 |
|
66 |
LICENSE="LGPL-3" |
67 |
SLOT="0" |
68 |
KEYWORDS="~amd64 ~x86" |
69 |
IUSE="doc fltk gif glut gsl hdf5 jpeg octave python qt4 wxwidgets" |
70 |
|
71 |
RDEPEND="media-libs/libpng |
72 |
virtual/opengl |
73 |
python? ( dev-python/numpy ) |
74 |
glut? ( media-libs/freeglut ) |
75 |
fltk? ( x11-libs/fltk:1 ) |
76 |
gif? ( media-libs/giflib ) |
77 |
jpeg? ( virtual/jpeg ) |
78 |
hdf5? ( >=sci-libs/hdf5-1.8 ) |
79 |
gsl? ( sci-libs/gsl ) |
80 |
octave? ( >=sci-mathematics/octave-3.4.0 ) |
81 |
qt4? ( x11-libs/qt-gui:4 ) |
82 |
wxwidgets? ( x11-libs/wxGTK:2.8 )" |
83 |
DEPEND="${RDEPEND} |
84 |
>=sys-devel/libtool-2.2.4 |
85 |
doc? ( app-text/texi2html virtual/texi2dvi ) |
86 |
python? ( dev-lang/swig ) |
87 |
octave? ( dev-lang/swig )" |
88 |
|
89 |
pkg_setup() { |
90 |
if ! version_is_at_least "4.3.0" "$(gcc-version)"; then |
91 |
eerror "You need >=gcc-4.3.0 to compile this package" |
92 |
die "Wrong gcc version" |
93 |
fi |
94 |
if use hdf5 && has_version sci-libs/hdf5[mpi]; then |
95 |
export CC=mpicc |
96 |
export CXX=mpicxx |
97 |
fi |
98 |
use python && python_pkg_setup |
99 |
use wxwidgets && wxwidgets_pkg_setup |
100 |
} |
101 |
|
102 |
src_unpack() { |
103 |
unpack ${A} |
104 |
mkdir "${S}"/fonts |
105 |
cd "${S}"/fonts |
106 |
unpack STIX_font.tgz |
107 |
} |
108 |
|
109 |
src_prepare() { |
110 |
# bug #267061 |
111 |
epatch "${FILESDIR}"/${PN}-1.10.2-gcc43.patch |
112 |
|
113 |
# bug #358245 |
114 |
epatch "${FILESDIR}"/${PN}-octave-3.4.patch |
115 |
|
116 |
# correct location of numpy/arrayobject.h |
117 |
if use python; then |
118 |
sed \ |
119 |
-e '/SUBDIRS/s:lang::g' \ |
120 |
-i Makefile.am || die |
121 |
fi |
122 |
|
123 |
echo "#!${EPREFIX}/bin/sh" > config/py-compile |
124 |
|
125 |
eautoreconf |
126 |
} |
127 |
|
128 |
src_configure() { |
129 |
econf --docdir="${ROOT}"usr/share/doc/${PF} \ |
130 |
$(use_enable glut) \ |
131 |
$(use_enable qt4 qt) \ |
132 |
$(use_enable wxwidgets wx) \ |
133 |
$(use_enable fltk) \ |
134 |
$(use_enable gif) \ |
135 |
$(use_enable jpeg) \ |
136 |
$(use_enable hdf5 hdf5_18) \ |
137 |
$(use_enable python) \ |
138 |
$(use_enable octave) \ |
139 |
$(use_enable gsl) \ |
140 |
$(use_enable doc docs) |
141 |
} |
142 |
|
143 |
src_compile() { |
144 |
# see bug #249627 |
145 |
local JOBS |
146 |
use doc && JOBS=-j1 |
147 |
emake ${JOBS} || die "emake failed" |
148 |
|
149 |
if use python; then |
150 |
python_copy_sources lang |
151 |
compilation() { |
152 |
local numpy_h |
153 |
numpy_h=$(python_get_sitedir)/numpy/core/include/numpy/arrayobject.h |
154 |
einfo "fixing numpy.i for Python-${PYTHON_ABI}" |
155 |
sed -e "s|<numpy/arrayobject.h>|\"${numpy_h}\"|" \ |
156 |
-i numpy.i \ |
157 |
|| die "sed failed" |
158 |
emake PYTHON_HEADERS="-I$(python_get_includedir)" pyexecdir="$(python_get_sitedir)" |
159 |
} |
160 |
python_execute_function -s --source-dir lang compilation |
161 |
fi |
162 |
} |
163 |
|
164 |
src_install() { |
165 |
emake DESTDIR="${D}" install || die "emake install failed" |
166 |
|
167 |
if use python; then |
168 |
installation() { |
169 |
emake DESTDIR="${D}" PYTHON="$(PYTHON)" pyexecdir="$(python_get_sitedir)" pythondir="$(python_get_sitedir)" install |
170 |
} |
171 |
python_execute_function -s --source-dir lang installation |
172 |
python_clean_installation_image |
173 |
fi |
174 |
dodoc README AUTHORS || die "dodoc failed" |
175 |
} |
176 |
|
177 |
pkg_postinst() { |
178 |
if use octave; then |
179 |
octave <<-EOF |
180 |
pkg install /usr/share/${PN}/octave/${PN}.tar.gz |
181 |
EOF |
182 |
fi |
183 |
use python && python_mod_optimize ${PN}.py |
184 |
} |
185 |
|
186 |
pkg_prerm() { |
187 |
if use octave; then |
188 |
octave <<-EOF |
189 |
pkg uninstall ${PN} |
190 |
EOF |
191 |
fi |
192 |
} |
193 |
|
194 |
pkg_postrm() { |
195 |
use python && python_mod_cleanup ${PN}.py |
196 |
} |