Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-visualization/gnuplot: ChangeLog gnuplot-4.2.5-r1.ebuild
Date: Sat, 20 Jun 2009 16:39:27
Message-Id: E1MI3bA-0000lp-PA@stork.gentoo.org
1 ulm 09/06/20 16:39:24
2
3 Modified: ChangeLog
4 Added: gnuplot-4.2.5-r1.ebuild
5 Log:
6 Fix "cb axis range undefined or overflow" error after fit, bug 274693.
7 (Portage version: 2.2_rc33/cvs/Linux i686)
8
9 Revision Changes Path
10 1.106 sci-visualization/gnuplot/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gnuplot/ChangeLog?rev=1.106&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gnuplot/ChangeLog?rev=1.106&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gnuplot/ChangeLog?r1=1.105&r2=1.106
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v
19 retrieving revision 1.105
20 retrieving revision 1.106
21 diff -u -r1.105 -r1.106
22 --- ChangeLog 18 Jun 2009 05:43:16 -0000 1.105
23 +++ ChangeLog 20 Jun 2009 16:39:24 -0000 1.106
24 @@ -1,6 +1,14 @@
25 # ChangeLog for sci-visualization/gnuplot
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v 1.105 2009/06/18 05:43:16 jer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v 1.106 2009/06/20 16:39:24 ulm Exp $
29 +
30 +*gnuplot-4.2.5-r1 (20 Jun 2009)
31 +
32 + 20 Jun 2009; Ulrich Mueller <ulm@g.o> +gnuplot-4.2.5-r1.ebuild,
33 + +files/gnuplot-4.2.5-colorbox_accounting.patch:
34 + Fix "cb axis range undefined or overflow" error after fit. Patch from
35 + upstream, thanks to Christopher Schwan <cschwan@×××××××××××.de> and
36 + Ottxor <kleiner_otti@×××.de>, bug 274693.
37
38 18 Jun 2009; Jeroen Roovers <jer@g.o> gnuplot-4.2.5.ebuild:
39 Stable for HPPA (bug #274558).
40
41
42
43 1.1 sci-visualization/gnuplot/gnuplot-4.2.5-r1.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.2.5-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.2.5-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: gnuplot-4.2.5-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2009 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.2.5-r1.ebuild,v 1.1 2009/06/20 16:39:24 ulm Exp $
53
54 EAPI=2
55 WX_GTK_VER="2.8"
56
57 inherit autotools elisp-common eutils multilib wxwidgets
58
59 MY_P="${P/_/.}"
60
61 DESCRIPTION="Command-line driven interactive plotting program"
62 HOMEPAGE="http://www.gnuplot.info/"
63 SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz
64 mirror://gentoo/${P}-lua-term.patch.bz2"
65
66 LICENSE="gnuplot"
67 SLOT="0"
68 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd"
69 IUSE="doc emacs gd ggi latex lua pdf plotutils readline svga wxwindows X xemacs"
70 RESTRICT="wxwindows? ( test )"
71
72 RDEPEND="
73 xemacs? ( virtual/xemacs app-xemacs/texinfo app-xemacs/xemacs-base )
74 emacs? ( virtual/emacs !app-emacs/gnuplot-mode )
75 pdf? ( media-libs/pdflib )
76 lua? ( >=dev-lang/lua-5.1 )
77 ggi? ( media-libs/libggi )
78 gd? ( >=media-libs/gd-2[png] )
79 doc? ( virtual/latex-base
80 virtual/ghostscript )
81 latex? ( virtual/latex-base
82 lua? ( dev-tex/pgf
83 >=dev-texlive/texlive-latexrecommended-2008-r2 ) )
84 X? ( x11-libs/libXaw )
85 svga? ( media-libs/svgalib )
86 readline? ( >=sys-libs/readline-4.2 )
87 plotutils? ( media-libs/plotutils )
88 wxwindows? ( =x11-libs/wxGTK-2.8*
89 >=x11-libs/cairo-0.9
90 >=x11-libs/pango-1.10.3
91 >=x11-libs/gtk+-2.8 )"
92 DEPEND="${RDEPEND}
93 dev-util/pkgconfig"
94
95 S="${WORKDIR}/${MY_P}"
96 E_SITEFILE="50${PN}-gentoo.el"
97 TEXMF="/usr/share/texmf-site"
98
99 pkg_setup() {
100 use wxwindows && wxwidgets_pkg_setup
101 }
102
103 src_prepare() {
104 epatch "${FILESDIR}"/${PN}-4.2.2-disable_texi_generation.patch #194216
105 epatch "${FILESDIR}"/${PN}-4.2.3-app-defaults.patch #219323
106 epatch "${FILESDIR}"/${PN}-4.2.3-disable-texhash.patch #201871
107 epatch "${WORKDIR}"/${P}-lua-term.patch #233475
108 epatch "${FILESDIR}"/${P}-configure-pkgconfig.patch #233475 c9
109 epatch "${FILESDIR}"/${P}-colorbox_accounting.patch #274693
110 # Add Gentoo version identification since the licence requires it
111 epatch "${FILESDIR}"/${PN}-gentoo-version.patch
112
113 eautoreconf
114 }
115
116 src_configure() {
117 # See bug #156427.
118 if use latex ; then
119 sed -i -e "s:\`kpsexpand.*\`:${TEXMF}/tex/latex/${PN}:" \
120 share/LaTeX/Makefile.in || die
121 else
122 sed -i \
123 -e '/^SUBDIRS/ s/LaTeX//' share/LaTeX/Makefile.in || die
124 fi
125
126 local myconf="--with-gihdir=/usr/share/${PN}/gih"
127
128 myconf="${myconf} $(use_with X x)"
129 myconf="${myconf} $(use_with svga linux-vga)"
130 myconf="${myconf} $(use_with gd)"
131 myconf="${myconf} $(use_enable wxwindows wxwidgets)"
132 myconf="${myconf} $(use_with plotutils plot /usr/$(get_libdir))"
133 myconf="${myconf} $(use_with pdf pdf /usr/$(get_libdir))"
134 myconf="${myconf} $(use_with lua)"
135 myconf="${myconf} $(use_with doc tutorial)"
136
137 use ggi \
138 && myconf="${myconf} --with-ggi=/usr/$(get_libdir)
139 --with-xmi=/usr/$(get_libdir)" \
140 || myconf="${myconf} --without-ggi"
141
142 use readline \
143 && myconf="${myconf} --with-readline=gnu --enable-history-file" \
144 || myconf="${myconf} --with-readline"
145
146 myconf="${myconf} --without-lisp-files"
147
148 TEMACS=no
149 use xemacs && TEMACS=xemacs
150 use emacs && TEMACS=emacs
151
152 CFLAGS="${CFLAGS} -DGENTOO_REVISION=\\\"${PR}\\\"" \
153 EMACS=${TEMACS} \
154 econf ${myconf} || die
155 }
156
157 src_compile() {
158 # Prevent access violations, see bug 201871
159 VARTEXFONTS="${T}/fonts"
160
161 # This is a hack to avoid sandbox violations when using the Linux console.
162 # Creating the DVI and PDF tutorials require /dev/svga to build the
163 # example plots.
164 addwrite /dev/svga:/dev/mouse:/dev/tts/0
165
166 emake || die
167
168 if use doc ; then
169 cd docs
170 emake pdf || die
171 cd ../tutorial
172 emake pdf || die
173 fi
174 }
175
176 src_install () {
177 emake DESTDIR="${D}" install || die
178
179 if use emacs; then
180 cd lisp
181 einfo "Configuring gnuplot-mode for GNU Emacs..."
182 EMACS="emacs" econf --with-lispdir="${SITELISP}/${PN}" || die
183 emake DESTDIR="${D}" install || die
184 emake clean
185 cd ..
186
187 # Gentoo emacs site-lisp configuration
188 echo -e "\n;;; ${PN} site-lisp configuration\n" > ${E_SITEFILE}
189 echo -e "(add-to-list 'load-path \"@SITELISP@\")\n" >> ${E_SITEFILE}
190 sed '/^;; move/,+3 d' lisp/dotemacs >> ${E_SITEFILE}
191 elisp-site-file-install ${E_SITEFILE}
192 fi
193
194 if use xemacs; then
195 cd lisp
196 einfo "Configuring gnuplot-mode for XEmacs..."
197 EMACS="xemacs" \
198 econf --with-lispdir="/usr/lib/xemacs/site-packages/${PN}" || die
199 emake DESTDIR="${D}" install || die
200 cd ..
201 fi
202
203 if use latex && use lua; then
204 # install style file in an (additional) place where TeX can find it
205 insinto "${TEXMF}/tex/latex/${PN}"
206 doins term/lua/gnuplot-lua-tikz.sty || die
207 fi
208
209 dodoc BUGS ChangeLog FAQ NEWS PATCHLEVEL PGPKEYS PORTING README* \
210 TODO VERSION
211 use lua && newdoc term/lua/README README-lua
212
213 if use doc; then
214 # Demo files
215 insinto /usr/share/${PN}/demo
216 doins demo/*
217 # Manual
218 insinto /usr/share/doc/${PF}/manual
219 doins docs/gnuplot.pdf
220 # Tutorial
221 insinto /usr/share/doc/${PF}/tutorial
222 doins tutorial/{tutorial.dvi,tutorial.pdf}
223 # Documentation for making PostScript files
224 insinto /usr/share/doc/${PF}/psdoc
225 doins docs/psdoc/{*.doc,*.tex,*.ps,*.gpi,README}
226 fi
227
228 if ! use X; then
229 # see bug 194527
230 rm -rf "${D}/usr/$(get_libdir)/X11"
231 fi
232 }
233
234 pkg_postinst() {
235 use emacs && elisp-site-regen
236 use latex && texmf-update
237
238 if use svga ; then
239 einfo "In order to enable ordinary users to use SVGA console graphics"
240 einfo "gnuplot needs to be set up as setuid root. Please note that"
241 einfo "this is usually considered to be a security hazard."
242 einfo "As root, manually \"chmod u+s /usr/bin/gnuplot\"."
243 fi
244 }
245
246 pkg_postrm() {
247 use emacs && elisp-site-regen
248 use latex && texmf-update
249 }