1 |
pva 10/04/23 08:16:45 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: qtiplot-0.9.7.14.ebuild |
5 |
Log: |
6 |
Version bump, bug #316661, thank Justin Lecher for report. |
7 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.56 sci-visualization/qtiplot/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/ChangeLog?rev=1.56&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/ChangeLog?rev=1.56&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/ChangeLog?r1=1.55&r2=1.56 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sci-visualization/qtiplot/ChangeLog,v |
19 |
retrieving revision 1.55 |
20 |
retrieving revision 1.56 |
21 |
diff -u -r1.55 -r1.56 |
22 |
--- ChangeLog 17 Mar 2010 15:18:42 -0000 1.55 |
23 |
+++ ChangeLog 23 Apr 2010 08:16:45 -0000 1.56 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for sci-visualization/qtiplot |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sci-visualization/qtiplot/ChangeLog,v 1.55 2010/03/17 15:18:42 pva Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/qtiplot/ChangeLog,v 1.56 2010/04/23 08:16:45 pva Exp $ |
29 |
+ |
30 |
+*qtiplot-0.9.7.14 (23 Apr 2010) |
31 |
+ |
32 |
+ 23 Apr 2010; Peter Volkov <pva@g.o> +qtiplot-0.9.7.14.ebuild, |
33 |
+ +files/qtiplot-0.9.7.14-system-liborigin.patch: |
34 |
+ Version bump, bug #316661, thank Justin Lecher for report. |
35 |
|
36 |
*qtiplot-0.9.7.13 (17 Mar 2010) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 sci-visualization/qtiplot/qtiplot-0.9.7.14.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/qtiplot-0.9.7.14.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/qtiplot-0.9.7.14.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: qtiplot-0.9.7.14.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/sci-visualization/qtiplot/qtiplot-0.9.7.14.ebuild,v 1.1 2010/04/23 08:16:45 pva Exp $ |
51 |
|
52 |
EAPI=2 |
53 |
inherit eutils qt4 fdo-mime python |
54 |
|
55 |
DESCRIPTION="Qt based clone of the Origin plotting package" |
56 |
HOMEPAGE="http://soft.proindependent.com/qtiplot.html" |
57 |
SRC_URI="mirror://berlios/${PN}/${P}.tar.bz2" |
58 |
|
59 |
LICENSE="GPL-2 GPL-3" |
60 |
SLOT="0" |
61 |
KEYWORDS="~amd64 ~x86" |
62 |
IUSE="doc python ods xls" |
63 |
|
64 |
LANGS="cn cz de es fr ro ru ja sv" |
65 |
for l in ${LANGS}; do |
66 |
lu=${l/cz/cs} |
67 |
lu=${lu/cn/zh_CN} |
68 |
IUSE="${IUSE} linguas_${lu}" |
69 |
done |
70 |
|
71 |
# qwtplot3d much modified from original upstream |
72 |
# >=x11-libs/qwt-5.3 they are using trunk checkouts |
73 |
CDEPEND=" |
74 |
x11-libs/qt-opengl:4 |
75 |
x11-libs/qt-qt3support:4 |
76 |
x11-libs/qt-assistant:4 |
77 |
x11-libs/qt-svg:4 |
78 |
>=x11-libs/gl2ps-1.3.5 |
79 |
>=dev-cpp/muParser-1.32 |
80 |
>=dev-libs/boost-1.35.0 |
81 |
>=sci-libs/liborigin-20100420:2 |
82 |
sci-libs/gsl |
83 |
dev-libs/boost |
84 |
dev-tex/qtexengine |
85 |
xls? ( dev-libs/libxls ) |
86 |
ods? ( dev-libs/quazip )" |
87 |
# Still unable to build |
88 |
# emf? ( media-libs/libemf |
89 |
# media-libs/emfengine ) |
90 |
|
91 |
DEPEND="${CDEPEND} |
92 |
dev-util/pkgconfig |
93 |
python? ( >=dev-python/sip-4.9 ) |
94 |
doc? ( app-text/docbook-sgml-utils |
95 |
>=app-text/docbook-xml-dtd-4.4-r2:4.4 )" |
96 |
|
97 |
RDEPEND="${CDEPEND} |
98 |
python? ( >=dev-lang/python-2.5 |
99 |
dev-python/PyQt4[X] |
100 |
dev-python/pygsl |
101 |
dev-python/rpy |
102 |
sci-libs/scipy )" |
103 |
|
104 |
PATCHES=( |
105 |
"${FILESDIR}/${PN}-0.9.7.12-system-QTeXEngine.patch" |
106 |
"${FILESDIR}/${PN}-0.9.7.14-system-liborigin.patch" |
107 |
"${FILESDIR}/${PN}-0.9.7.12-system-gl2ps.patch" |
108 |
"${FILESDIR}/${PN}-0.9.7.10-dont-install-qwt.patch" |
109 |
) |
110 |
|
111 |
src_prepare() { |
112 |
qt4_src_prepare |
113 |
|
114 |
rm -rf 3rdparty/{liborigin,QTeXEngine,/qwtplot3d/3rdparty/gl2ps/} |
115 |
|
116 |
# Check build.conf for changes on bump. |
117 |
cat >build.conf <<-EOF |
118 |
# Automatically generated by Gentoo ebuild |
119 |
isEmpty( QTI_ROOT ) { |
120 |
message( "each file including this config needs to set QTI_ROOT to the dir containing this file!" ) |
121 |
} |
122 |
|
123 |
MUPARSER_LIBS = \$\$system(pkg-config --libs muparser) |
124 |
GSL_LIBS = \$\$system(pkg-config --libs gsl) |
125 |
BOOST_INCLUDEPATH = /usr/include/boost |
126 |
BOOST_LIBS = -lboost_date_time-mt -lboost_thread-mt |
127 |
QWT_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/qwt/src |
128 |
QWT_LIBS = \$\$QTI_ROOT/3rdparty/qwt/lib/libqwt.a |
129 |
QWT3D_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/qwtplot3d/include |
130 |
QWT3D_LIBS = \$\$QTI_ROOT/3rdparty/qwtplot3d/lib/libqwtplot3d.a |
131 |
LIB_ORIGIN_INCLUDEPATH = /usr/include/liborigin2 |
132 |
LIB_ORIGIN_LIBS = -lorigin2 |
133 |
QTEXENGINE_LIBS = -lQTeXEngine |
134 |
SYS_LIBS = -lgl2ps |
135 |
|
136 |
PYTHON = python |
137 |
LUPDATE = lupdate |
138 |
LRELEASE = lrelease |
139 |
|
140 |
SCRIPTING_LANGS += muParser |
141 |
|
142 |
CONFIG += release |
143 |
CONFIG += CustomInstall |
144 |
DEFINES += SCRIPTING_CONSOLE |
145 |
|
146 |
EOF |
147 |
|
148 |
use python && echo "SCRIPTING_LANGS += Python" >> build.conf |
149 |
use xls && echo "XLS_LIBS = -lxlsreader" >> build.conf |
150 |
if use ods; then |
151 |
echo "QUAZIP_INCLUDEPATH = /usr/include/quazip" >> build.conf |
152 |
echo "QUAZIP_LIBS = -lquazip" >> build.conf |
153 |
fi |
154 |
|
155 |
sed '/^INSTALLS/d;' -i 3rdparty/qwtplot3d/qwtplot3d.pro || die |
156 |
|
157 |
# Fails to build... |
158 |
#if use emf; then |
159 |
# echo "EMF_ENGINE_INCLUDEPATH = /usr/include/libEMF" >> build.conf |
160 |
# echo "EMF_ENGINE_LIBS = -lEMF" >> build.conf |
161 |
#fi |
162 |
|
163 |
python_version |
164 |
|
165 |
sed -e "s:doc/${PN}/manual:doc/${PN}/html:" \ |
166 |
-e "s:/usr/local/${PN}:$(python_get_sitedir)/qtiplot:" \ |
167 |
-i qtiplot/qtiplot.pro || die |
168 |
|
169 |
sed -e '/INSTALLS.*documentation/d' \ |
170 |
-e '/INSTALLS.*manual/d' \ |
171 |
-i qtiplot/qtiplot.pro || die |
172 |
sed -e '/manual/d' -i qtiplot.pro || die |
173 |
|
174 |
# Drop langs only if LINGUAS is not empty |
175 |
if [[ -n ${LINGUAS} ]]; then |
176 |
for l in ${LANGS}; do |
177 |
lu=${l/cz/cs} |
178 |
lu=${lu/cn/zh_CN} |
179 |
use linguas_${lu} || \ |
180 |
sed -e "s:translations/qtiplot_${l}.[tq][sm]::" \ |
181 |
-i qtiplot/qtiplot.pro || die |
182 |
done |
183 |
fi |
184 |
chmod -x qtiplot/qti_wordlist.txt |
185 |
|
186 |
# sed out debian paths |
187 |
sed -e 's:\(/usr/share/sgml/\)docbook/stylesheet/dsssl/modular\(/html/docbook.dsl\):\1stylesheets/dsssl/docbook\2:' \ |
188 |
-i manual/qtiplot.dsl || die |
189 |
sed -e 's:\(/usr/share/\)xml/docbook/stylesheet/nwalsh\(/html/chunk.xsl\):\1sgml/docbook/xsl-stylesheets\2:' \ |
190 |
-i manual/qtiplot_html.xsl || die |
191 |
} |
192 |
|
193 |
src_configure() { |
194 |
use amd64 && export QMAKESPEC="linux-g++-64" |
195 |
eqmake4 |
196 |
} |
197 |
|
198 |
src_compile() { |
199 |
emake || die "emake failed" |
200 |
lrelease qtiplot/qtiplot.pro || die |
201 |
if use doc; then |
202 |
cd manual |
203 |
emake web || die "html docbook building failed" |
204 |
fi |
205 |
} |
206 |
|
207 |
src_install() { |
208 |
emake INSTALL_ROOT="${D}" install || die 'emake install failed' |
209 |
newicon qtiplot_logo.png qtiplot.png |
210 |
make_desktop_entry qtiplot "QtiPlot Scientific Plotting" qtiplot |
211 |
if use doc; then |
212 |
insinto /usr/share/doc/${PN}/html |
213 |
doins -r manual/html/* || die "install manual failed" |
214 |
fi |
215 |
|
216 |
if [[ -n ${LINGUAS} ]]; then |
217 |
insinto /usr/share/${PN}/translations |
218 |
for l in ${LANGS}; do |
219 |
lu=${l/cz/cs} |
220 |
lu=${lu/cn/zh_CN} |
221 |
use linguas_${lu} && \ |
222 |
doins qtiplot/translations/qtiplot_${l}.qm |
223 |
done |
224 |
fi |
225 |
} |
226 |
|
227 |
pkg_postinst() { |
228 |
fdo-mime_desktop_database_update |
229 |
python_mod_optimize "$(python_get_sitedir)/qtiplot" |
230 |
} |
231 |
|
232 |
pkg_postrm() { |
233 |
fdo-mime_desktop_database_update |
234 |
python_mod_cleanup "$(python_get_sitedir)/qtiplot" |
235 |
} |