1 |
grozin 09/08/31 16:18:51 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mathgl-1.9.0.1.ebuild |
5 |
Log: |
6 |
Version bump, bug #282821, many thanks to Kacper Kowalik <xarthisius.kk@×××××.com> |
7 |
(Portage version: 2.2_rc40/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.7 sci-libs/mathgl/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/mathgl/ChangeLog?rev=1.7&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/mathgl/ChangeLog?rev=1.7&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/mathgl/ChangeLog?r1=1.6&r2=1.7 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/mathgl/ChangeLog,v |
19 |
retrieving revision 1.6 |
20 |
retrieving revision 1.7 |
21 |
diff -u -r1.6 -r1.7 |
22 |
--- ChangeLog 9 Aug 2009 13:35:22 -0000 1.6 |
23 |
+++ ChangeLog 31 Aug 2009 16:18:51 -0000 1.7 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for sci-libs/mathgl |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/ChangeLog,v 1.6 2009/08/09 13:35:22 ssuominen Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/ChangeLog,v 1.7 2009/08/31 16:18:51 grozin Exp $ |
29 |
+ |
30 |
+*mathgl-1.9.0.1 (31 Aug 2009) |
31 |
+ |
32 |
+ 31 Aug 2009; Andrey Grozin <grozin@g.o> +mathgl-1.9.0.1.ebuild, |
33 |
+ +files/mathgl-1.9.0.1-gcc43.patch, +files/mathgl-1.9.0.1-hdf5.patch: |
34 |
+ Version bump, bug #282821, many thanks to Kacper Kowalik |
35 |
+ <xarthisius.kk@×××××.com> |
36 |
|
37 |
09 Aug 2009; Samuli Suominen <ssuominen@g.o> mathgl-1.8.1.ebuild, |
38 |
+files/mathgl-1.8.1-gcc44.patch: |
39 |
|
40 |
|
41 |
|
42 |
1.1 sci-libs/mathgl/mathgl-1.9.0.1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/mathgl/mathgl-1.9.0.1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/mathgl/mathgl-1.9.0.1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: mathgl-1.9.0.1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2009 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.9.0.1.ebuild,v 1.1 2009/08/31 16:18:51 grozin Exp $ |
52 |
|
53 |
EAPI=2 |
54 |
WX_GTK_VER=2.8 |
55 |
inherit autotools wxwidgets python versionator toolchain-funcs |
56 |
|
57 |
DESCRIPTION="Math Graphics Library" |
58 |
HOMEPAGE="http://mathgl.sourceforge.net/" |
59 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tgz mirror://sourceforge/${PN}/STIX_font.tgz" |
60 |
|
61 |
LICENSE="GPL-2" |
62 |
SLOT="0" |
63 |
KEYWORDS="~amd64 ~x86" |
64 |
IUSE="doc fltk gif glut gsl hdf5 jpeg octave python qt4 wxwindows" |
65 |
|
66 |
RDEPEND="media-libs/libpng |
67 |
virtual/glu |
68 |
python? ( dev-python/numpy ) |
69 |
glut? ( virtual/glut ) |
70 |
fltk? ( x11-libs/fltk:1.1 ) |
71 |
gif? ( media-libs/giflib ) |
72 |
jpeg? ( media-libs/jpeg ) |
73 |
hdf5? ( sci-libs/hdf5 ) |
74 |
gsl? ( sci-libs/gsl ) |
75 |
octave? ( sci-mathematics/octave ) |
76 |
qt4? ( x11-libs/qt-gui:4 ) |
77 |
wxwindows? ( x11-libs/wxGTK:2.8 )" |
78 |
DEPEND="${RDEPEND} |
79 |
doc? ( app-text/texi2html virtual/texi2dvi ) |
80 |
python? ( dev-lang/swig ) |
81 |
octave? ( dev-lang/swig )" |
82 |
|
83 |
pkg_setup() { |
84 |
if ! version_is_at_least "4.3.0" "$(gcc-version)"; then |
85 |
eerror "You need >=gcc-4.3.0 to compile this package" |
86 |
die "Wrong gcc version" |
87 |
fi |
88 |
} |
89 |
|
90 |
src_unpack() { |
91 |
unpack ${A} |
92 |
mkdir "${S}"/fonts |
93 |
cd "${S}"/fonts |
94 |
unpack STIX_font.tgz |
95 |
} |
96 |
|
97 |
src_prepare() { |
98 |
# bug #267061 |
99 |
epatch "${FILESDIR}"/${P}-gcc43.patch |
100 |
epatch "${FILESDIR}"/${P}-hdf5.patch |
101 |
|
102 |
# correct location of numpy/arrayobject.h |
103 |
if use python; then |
104 |
local numpy_h |
105 |
numpy_h=$(python_get_sitedir)/numpy/core/include/numpy/arrayobject.h |
106 |
einfo "fixing numpy.i" |
107 |
sed -e "s|<numpy/arrayobject.h>|\"${numpy_h}\"|" \ |
108 |
-i lang/numpy.i \ |
109 |
|| die "sed failed" |
110 |
fi |
111 |
|
112 |
eautoreconf |
113 |
} |
114 |
|
115 |
src_configure() { |
116 |
econf --docdir="${ROOT}"usr/share/doc/${PF} \ |
117 |
$(use_enable glut) \ |
118 |
$(use_enable qt4 qt) \ |
119 |
$(use_enable wxwindows wx) \ |
120 |
$(use_enable fltk) \ |
121 |
$(use_enable gif) \ |
122 |
$(use_enable jpeg) \ |
123 |
$(use_enable hdf5) \ |
124 |
$(use_enable python) \ |
125 |
$(use_enable octave) \ |
126 |
$(use_enable gsl) \ |
127 |
$(use_enable doc docs) |
128 |
} |
129 |
|
130 |
src_compile() { |
131 |
# see bug #249627 |
132 |
local JOBS |
133 |
use doc && JOBS=-j1 |
134 |
emake ${JOBS} || die "emake failed" |
135 |
} |
136 |
|
137 |
src_install() { |
138 |
emake DESTDIR="${D}" install || die "emake install failed" |
139 |
dodoc README AUTHORS || die "dodoc failed" |
140 |
} |
141 |
|
142 |
pkg_postinst() { |
143 |
if use octave; then |
144 |
octave <<-EOF |
145 |
pkg install /usr/share/${PN}/octave/${PN}.tar.gz |
146 |
EOF |
147 |
fi |
148 |
} |
149 |
|
150 |
pkg_prerm() { |
151 |
if use octave; then |
152 |
octave <<-EOF |
153 |
pkg uninstall ${PN} |
154 |
EOF |
155 |
fi |
156 |
} |