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.9.ebuild
Date: Thu, 22 Dec 2011 15:45:36
Message-Id: 20111222154525.E41FA2004B@flycatcher.gentoo.org
1 jlec 11/12/22 15:45:25
2
3 Modified: ChangeLog
4 Added: qtiplot-0.9.8.9.ebuild
5 Log:
6 Version Bump, #395621
7
8 (Portage version: 2.2.0_alpha81/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.86 sci-visualization/qtiplot/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/qtiplot/ChangeLog?rev=1.86&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/qtiplot/ChangeLog?rev=1.86&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/qtiplot/ChangeLog?r1=1.85&r2=1.86
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-visualization/qtiplot/ChangeLog,v
20 retrieving revision 1.85
21 retrieving revision 1.86
22 diff -u -r1.85 -r1.86
23 --- ChangeLog 30 Oct 2011 19:33:53 -0000 1.85
24 +++ ChangeLog 22 Dec 2011 15:45:25 -0000 1.86
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sci-visualization/qtiplot
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/qtiplot/ChangeLog,v 1.85 2011/10/30 19:33:53 dilfridge Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/qtiplot/ChangeLog,v 1.86 2011/12/22 15:45:25 jlec Exp $
30 +
31 +*qtiplot-0.9.8.9 (22 Dec 2011)
32 +
33 + 22 Dec 2011; Justin Lecher <jlec@g.o> +qtiplot-0.9.8.9.ebuild:
34 + Version Bump, #395621
35
36 30 Oct 2011; Andreas K. Huettel <dilfridge@g.o>
37 qtiplot-0.9.8.8.ebuild:
38
39
40
41 1.1 sci-visualization/qtiplot/qtiplot-0.9.8.9.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/qtiplot/qtiplot-0.9.8.9.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/qtiplot/qtiplot-0.9.8.9.ebuild?rev=1.1&content-type=text/plain
45
46 Index: qtiplot-0.9.8.9.ebuild
47 ===================================================================
48 # Copyright 1999-2011 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.8.9.ebuild,v 1.1 2011/12/22 15:45:25 jlec Exp $
51
52 EAPI=3
53
54 PYTHON_DEPEND="python? 2"
55
56 inherit eutils qt4-r2 fdo-mime python
57
58 DESCRIPTION="Qt based clone of the Origin plotting package"
59 HOMEPAGE="http://soft.proindependent.com/qtiplot.html"
60 SRC_URI="http://dev.gentoo.org/~dilfridge/distfiles/${P}.tar.bz2"
61
62 LICENSE="GPL-2 GPL-3"
63 SLOT="0"
64 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
65 IUSE="bindist doc mono latex python"
66
67 LANGS="cn cz de es fr ja ro ru sv"
68 for l in ${LANGS}; do
69 lu=${l/cz/cs}
70 lu=${lu/cn/zh_CN}
71 IUSE="${IUSE} linguas_${lu}"
72 done
73
74 # qwtplot3d much modified from original upstream
75 # >=x11-libs/qwt-5.3 they are using trunk checkouts
76 CDEPEND="
77 x11-libs/qt-assistant
78 x11-libs/qt-gui
79 x11-libs/qt-opengl:4
80 x11-libs/qt-qt3support:4
81 || ( >=x11-libs/qt-assistant-4.7.0:4[compat] <x11-libs/qt-assistant-4.7.0:4 )
82 x11-libs/qt-svg:4
83 >=x11-libs/gl2ps-1.3.5[png]
84 >=dev-cpp/muParser-1.32
85 >=dev-libs/boost-1.35.0
86 dev-libs/quazip
87 media-libs/libpng
88 sci-libs/gsl
89 sci-libs/tamu_anova
90 latex? ( dev-tex/qtexengine )
91 mono? ( dev-dotnet/libgdiplus )"
92 DEPEND="${CDEPEND}
93 dev-util/pkgconfig
94 python? ( >=dev-python/sip-4.9 )
95 doc? (
96 >=app-text/docbook-sgml-utils-0.6.14-r1
97 >=app-text/docbook-xml-dtd-4.4-r2:4.4 )"
98
99 RDEPEND="${CDEPEND}
100 python? ( dev-python/PyQt4[X] )"
101
102 PATCHES=(
103 "${FILESDIR}/${PN}-0.9.8.8-system-gl2ps.patch"
104 "${FILESDIR}/${PN}-0.9.7.10-dont-install-qwt.patch"
105 "${FILESDIR}/${PN}-0.9.8.6-gold.patch"
106 "${FILESDIR}/${PN}-0.9.8.7-kde.patch"
107 )
108
109 pkg_setup() {
110 use python && python_set_active_version 2
111 }
112
113 src_prepare() {
114 local mylibs
115
116 qt4-r2_src_prepare
117
118 rm -rf 3rdparty/{liborigin,QTeXEngine,/qwtplot3d/3rdparty/gl2ps/,boost} || die
119 sed \
120 -e "s:dll:static:g" \
121 -e "/INSTALLS/d" \
122 -i 3rdparty/qwtplot3d/*.pro
123
124 mylibs="${mylibs} -lquazip"
125 use mono && mylibs="${mylibs} $(pkg-config --libs libgdiplus)"
126
127 # Check build.conf for changes on bump.
128 cat > build.conf <<-EOF
129 # Automatically generated by Gentoo ebuild
130 isEmpty( QTI_ROOT ) {
131 message( "each file including this config needs to set QTI_ROOT to the dir containing this file!" )
132 }
133
134 MUPARSER_LIBS = \$\$system(pkg-config --libs muparser)
135 GSL_LIBS = \$\$system(pkg-config --libs gsl)
136 QWT_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/qwt/src
137 QWT_LIBS = \$\$QTI_ROOT/3rdparty/qwt/lib/libqwt.a
138 QWT3D_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/qwtplot3d/include
139 QWT3D_LIBS = \$\$QTI_ROOT/3rdparty/qwtplot3d/lib/libqwtplot3d.a
140 SYS_LIBS = -lgl2ps ${mylibs}
141
142 PYTHON = python
143 LUPDATE = lupdate
144 LRELEASE = lrelease
145
146 SCRIPTING_LANGS += muParser
147
148 CONFIG += release
149 CONFIG += CustomInstall
150 DEFINES += SCRIPTING_CONSOLE
151
152 EOF
153
154 use bindist && echo "DEFINES += QTIPLOT_SUPPORT" >> build.conf
155 use bindist || echo "DEFINES += QTIPLOT_PRO" >> build.conf
156 use python && echo "SCRIPTING_LANGS += Python" >> build.conf
157 use latex && echo "TEX_ENGINE_LIBS = -lQTeXEngine" >> build.conf
158 echo "LIBPNG_LIBS = -lpng" >> build.conf
159 echo "TAMUANOVA_LIBS = -ltamuanova" >> build.conf && \
160 echo "TAMUANOVA_INCLUDEPATH = \"${EPREFIX}/usr/include/tamu_anova\"" >> build.conf
161
162 sed \
163 -e "s:doc/${PN}/manual:doc/${PN}/html:" \
164 -e "s:/usr/local/${PN}:${EPREFIX}$(python_get_sitedir)/qtiplot:" \
165 -e '/INSTALLS.*documentation/d' \
166 -e '/INSTALLS.*manual/d' \
167 -e "/INSTALLBASE/s: /usr: ${EPREFIX}/usr:g" \
168 -e 's:/usr/local/qtiplot:$$INSTALLBASE:g' \
169 -i qtiplot/qtiplot.pro || die
170
171 sed \
172 -e "/^target.path/s:/usr:${EPREFIX}/usr:g" \
173 -i fitPlugins/*/*.pro || die
174
175 sed -e '/manual/d' -i qtiplot.pro || die
176
177 sed -e "s:QTIPLOT_PRO:QTIPLOT_PROFESSIONAL:g" -i qtiplot/src/core/main.cpp || die
178
179 # Drop langs only if LINGUAS is not empty
180 if [[ -n ${LINGUAS} ]]; then
181 for l in ${LANGS}; do
182 lu=${l/cz/cs}
183 lu=${lu/cn/zh_CN}
184 use linguas_${lu} || \
185 sed -e "s:translations/qtiplot_${l}.[tq][sm]::" \
186 -i qtiplot/qtiplot.pro || die
187 done
188 fi
189 chmod -x qtiplot/qti_wordlist.txt
190
191 # sed out debian paths
192 sed -e 's:\(/usr/share/sgml/\)docbook/stylesheet/dsssl/modular\(/html/docbook.dsl\):\1stylesheets/dsssl/docbook\2:' \
193 -i manual/qtiplot.dsl || die
194 sed -e 's:\(/usr/share/\)xml/docbook/stylesheet/nwalsh\(/html/chunk.xsl\):\1sgml/docbook/xsl-stylesheets\2:' \
195 -i manual/qtiplot_html.xsl || die
196
197 sed \
198 -e '1i#define OF(x) x' \
199 -i 3rdparty/zlib/minigzip.c || die
200 }
201
202 src_configure() {
203 use amd64 && export QMAKESPEC="linux-g++-64"
204 eqmake4
205 }
206
207 src_compile() {
208 emake || die "emake failed"
209 lrelease qtiplot/qtiplot.pro || die
210 if use doc; then
211 cd manual
212 emake web || die "html docbook building failed"
213 fi
214 }
215
216 src_install() {
217 qt4-r2_src_install
218 newicon qtiplot_logo.png qtiplot.png
219 make_desktop_entry qtiplot "QtiPlot Scientific Plotting" qtiplot
220 if use doc; then
221 insinto /usr/share/doc/${PN}/html
222 doins -r manual/html/* || die "install manual failed"
223 fi
224
225 if [[ -n ${LINGUAS} ]]; then
226 insinto /usr/share/${PN}/translations
227 for l in ${LANGS}; do
228 lu=${l/cz/cs}
229 lu=${lu/cn/zh_CN}
230 use linguas_${lu} && \
231 doins qtiplot/translations/qtiplot_${l}.qm
232 done
233 fi
234 }
235
236 pkg_postinst() {
237 if use python; then
238 elog "You might want to emerge"
239 elog "\t dev-python/pygsl"
240 elog "\t dev-python/rpy"
241 elog "\t sci-libs/scipy and"
242 elog "\t dev-python/sympy"
243 elog "to gain full python support."
244 fi
245
246 fdo-mime_desktop_database_update
247 use python && python_mod_optimize ${PN}
248 }
249
250 pkg_postrm() {
251 fdo-mime_desktop_database_update
252 use python && python_mod_cleanup ${PN}
253 }