Gentoo Archives: gentoo-commits

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