Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-visualization/qtiplot: ChangeLog qtiplot-0.9.5-r1.ebuild qtiplot-0.9.5.ebuild
Date: Wed, 30 Apr 2008 15:37:40
Message-Id: E1JrENF-0002rp-Al@stork.gentoo.org
1 bicatali 08/04/30 15:37:37
2
3 Modified: ChangeLog
4 Added: qtiplot-0.9.5-r1.ebuild
5 Removed: qtiplot-0.9.5.ebuild
6 Log:
7 Fixed installation for binary and translations, closing bug #219845
8 (Portage version: 2.1.5_rc6)
9
10 Revision Changes Path
11 1.22 sci-visualization/qtiplot/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/ChangeLog?rev=1.22&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/ChangeLog?rev=1.22&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/ChangeLog?r1=1.21&r2=1.22
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-visualization/qtiplot/ChangeLog,v
20 retrieving revision 1.21
21 retrieving revision 1.22
22 diff -u -r1.21 -r1.22
23 --- ChangeLog 29 Apr 2008 14:55:52 -0000 1.21
24 +++ ChangeLog 30 Apr 2008 15:37:36 -0000 1.22
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sci-visualization/qtiplot
27 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/qtiplot/ChangeLog,v 1.21 2008/04/29 14:55:52 bicatali Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/qtiplot/ChangeLog,v 1.22 2008/04/30 15:37:36 bicatali Exp $
30 +
31 +*qtiplot-0.9.5-r1 (30 Apr 2008)
32 +
33 + 30 Apr 2008; Sébastien Fabbro <bicatali@g.o>
34 + files/qtiplot-0.9.5-profile.patch, +qtiplot-0.9.5-r1.ebuild:
35 + Fixed installation for binary and translations, closing bug #219845
36
37 *qtiplot-0.9.5 (29 Apr 2008)
38
39
40
41
42 1.1 sci-visualization/qtiplot/qtiplot-0.9.5-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/qtiplot-0.9.5-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/qtiplot-0.9.5-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: qtiplot-0.9.5-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sci-visualization/qtiplot/qtiplot-0.9.5-r1.ebuild,v 1.1 2008/04/30 15:37:36 bicatali Exp $
52
53 EAPI="1"
54 inherit eutils multilib qt4
55
56 DESCRIPTION="Qt based clone of the Origin plotting package"
57 HOMEPAGE="http://soft.proindependent.com/qtiplot.html"
58 SRC_URI="http://soft.proindependent.com/src/${P}.tar.bz2
59 doc? ( mirror://gentoo/${P}-manual-en.tar.bz2 )"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~ppc64 ~x86"
64 IUSE="python doc bindist"
65
66 LANGS="de es fr ja ru sv"
67 for l in ${LANGS}; do
68 IUSE="${IUSE} linguas_${l}"
69 done
70
71 CDEPEND=">=x11-libs/qwt-5.0.2
72 >=x11-libs/qwtplot3d-0.2.7
73 >=dev-cpp/muParser-1.28
74 >=sci-libs/liborigin-20080225
75 !bindist? ( sci-libs/gsl )
76 bindist? ( <sci-libs/gsl-1.10 )"
77
78 DEPEND="${CDEPEND}
79 dev-util/pkgconfig
80 python? ( >=dev-python/sip-4.5.2 )"
81
82 RDEPEND="${CDEPEND}
83 python? ( >=dev-lang/python-2.5
84 dev-python/PyQt4
85 dev-python/pygsl
86 sci-libs/scipy )"
87
88 src_unpack() {
89 unpack ${A}
90 cd "${S}"
91 epatch "${FILESDIR}"/${P}-profile.patch
92 epatch "${FILESDIR}"/${P}-fitplugins.patch
93
94 sed -i \
95 -e '/manual/d'\
96 -e '/3rd/d' \
97 qtiplot.pro || die "sed qtiplot.pro failed"
98 sed -i \
99 -e '/manual/d' \
100 -e "s:doc/${PN}:doc/${PF}:" \
101 qtiplot/qtiplot.pro || die " sed for qtiplot/qtiplot.pro failed"
102
103 if ! use python; then
104 sed -i \
105 -e '/^SCRIPTING_LANGS += Python/d' \
106 -e '/sipcmd/d' \
107 qtiplot/qtiplot.pro || die "sed for python option failed"
108 fi
109
110 # the lib$$suff did not work in the fitRational*.pro files
111 sed -i \
112 -e "s|/usr/lib\$\${libsuff}|/usr/$(get_libdir)|g" \
113 fitPlugins/fit*/fitRational*.pro \
114 || die "sed fitRational* failed"
115
116 for l in ${LANGS}; do
117 if ! use linguas_${l}; then
118 sed -i \
119 -e "s:translations/qtiplot_${l}.ts::" \
120 qtiplot/qtiplot.pro || die
121 fi
122 done
123 }
124
125 src_compile() {
126 eqmake4 || die "eqmake4 failed"
127 emake || die "emake failed"
128 }
129
130 src_install() {
131 emake INSTALL_ROOT="${D}" install || die 'emake install failed'
132
133 newicon qtiplot_logo.png qtiplot.png
134 make_desktop_entry qtiplot QtiPlot qtiplot
135
136 if use doc; then
137 insinto /usr/share/doc/${PF}/html
138 doins -r "${WORKDIR}"/qtiplot-manual-en/* \
139 || die "install manual failed"
140 fi
141
142 if use python; then
143 insinto /etc
144 doins qtiplot/{qtiplotrc,qtiUtil}.py \
145 || die "install python config failed"
146 fi
147 }
148
149
150
151 --
152 gentoo-commits@l.g.o mailing list