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.4.3.ebuild
Date: Thu, 05 May 2011 07:59:02
Message-Id: 20110505075851.C8CF720054@flycatcher.gentoo.org
1 ulm 11/05/05 07:58:51
2
3 Modified: ChangeLog
4 Added: gnuplot-4.4.3.ebuild
5 Log:
6 Version bump, bug 365973.
7
8 (Portage version: 2.1.9.46/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.152 sci-visualization/gnuplot/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/ChangeLog?rev=1.152&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/ChangeLog?rev=1.152&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/ChangeLog?r1=1.151&r2=1.152
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v
20 retrieving revision 1.151
21 retrieving revision 1.152
22 diff -u -r1.151 -r1.152
23 --- ChangeLog 7 Mar 2011 12:42:13 -0000 1.151
24 +++ ChangeLog 5 May 2011 07:58:51 -0000 1.152
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sci-visualization/gnuplot
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v 1.151 2011/03/07 12:42:13 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v 1.152 2011/05/05 07:58:51 ulm Exp $
30 +
31 +*gnuplot-4.4.3 (05 May 2011)
32 +
33 + 05 May 2011; Ulrich Mueller <ulm@g.o> +gnuplot-4.4.3.ebuild:
34 + Version bump, bug 365973.
35
36 07 Mar 2011; Justin Lecher <jlec@g.o> gnuplot-4.2.6-r2.ebuild,
37 gnuplot-4.4.2-r1.ebuild:
38
39
40
41 1.1 sci-visualization/gnuplot/gnuplot-4.4.3.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.4.3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.4.3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gnuplot-4.4.3.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/gnuplot/gnuplot-4.4.3.ebuild,v 1.1 2011/05/05 07:58:51 ulm Exp $
51
52 EAPI=3
53
54 inherit elisp-common multilib wxwidgets
55
56 MY_P="${P/_/-}"
57 DESCRIPTION="Command-line driven interactive plotting program"
58 HOMEPAGE="http://www.gnuplot.info/"
59 SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz"
60
61 LICENSE="gnuplot GPL-2"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
64 IUSE="cairo doc emacs +gd ggi latex lua plotutils readline svga thin-splines wxwidgets X xemacs"
65
66 RESTRICT="wxwidgets? ( test )"
67
68 RDEPEND="!app-emacs/gnuplot-mode
69 cairo? ( x11-libs/cairo
70 x11-libs/pango )
71 emacs? ( virtual/emacs )
72 gd? ( media-libs/gd[png] )
73 ggi? ( media-libs/libggi )
74 latex? ( virtual/latex-base
75 lua? ( dev-tex/pgf
76 >=dev-texlive/texlive-latexrecommended-2008-r2 ) )
77 lua? ( dev-lang/lua )
78 plotutils? ( media-libs/plotutils )
79 readline? ( sys-libs/readline )
80 svga? ( media-libs/svgalib )
81 wxwidgets? ( x11-libs/wxGTK:2.8[X]
82 x11-libs/cairo
83 x11-libs/pango
84 x11-libs/gtk+:2 )
85 X? ( x11-libs/libXaw )
86 xemacs? ( app-editors/xemacs
87 app-xemacs/xemacs-base
88 app-xemacs/texinfo )"
89 DEPEND="${RDEPEND}
90 dev-util/pkgconfig
91 doc? ( virtual/latex-base
92 app-text/ghostscript-gpl )"
93
94 S="${WORKDIR}/${MY_P}"
95 GP_VERSION="${PV%.*}"
96 E_SITEFILE="50${PN}-gentoo.el"
97 TEXMF="${EPREFIX}/usr/share/texmf-site"
98
99 src_prepare() {
100 # Add special version identification as required by provision 2
101 # of the gnuplot license
102 sed -i -e "1s/.*/& (Gentoo revision ${PR})/" PATCHLEVEL || die
103 }
104
105 src_configure() {
106 if ! use latex; then
107 sed -i -e '/SUBDIRS/s/LaTeX//' share/Makefile.in || die
108 fi
109
110 if use wxwidgets; then
111 WX_GTK_VER="2.8"
112 need-wxwidgets unicode
113 fi
114
115 local myconf
116 myconf="${myconf} --without-lisp-files"
117 myconf="${myconf} --without-pdf"
118 myconf="${myconf} --with-texdir=${TEXMF}/tex/latex/${PN}"
119 myconf="${myconf} $(use_with cairo)"
120 myconf="${myconf} $(use_with doc tutorial)"
121 myconf="${myconf} $(use_with gd)"
122 myconf="${myconf} $(use_with ggi ggi ${EPREFIX}/usr/$(get_libdir))"
123 myconf="${myconf} $(use_with ggi xmi ${EPREFIX}/usr/$(get_libdir))"
124 myconf="${myconf} $(use_with lua)"
125 myconf="${myconf} $(use_with plotutils plot "${EPREFIX}"/usr/$(get_libdir))"
126 myconf="${myconf} $(use_with svga linux-vga)"
127 myconf="${myconf} $(use_enable thin-splines)"
128 myconf="${myconf} $(use_enable wxwidgets)"
129 myconf="${myconf} $(use_with X x)"
130 use readline \
131 && myconf="${myconf} --with-readline=gnu" \
132 || myconf="${myconf} --with-readline=builtin"
133
134 econf ${myconf} DIST_CONTACT="http://bugs.gentoo.org/"
135
136 if use xemacs; then
137 einfo "Configuring gnuplot-mode for XEmacs ..."
138 use emacs && cp -Rp lisp lisp-xemacs || ln -s lisp lisp-xemacs
139 cd "${S}/lisp-xemacs"
140 econf --with-lispdir="${EPREFIX}/usr/lib/xemacs/site-packages/${PN}" EMACS=xemacs
141 fi
142
143 if use emacs; then
144 einfo "Configuring gnuplot-mode for GNU Emacs ..."
145 cd "${S}/lisp"
146 econf --with-lispdir="${EPREFIX}${SITELISP}/${PN}" EMACS=emacs
147 fi
148 }
149
150 src_compile() {
151 # Prevent access violations, see bug 201871
152 VARTEXFONTS="${T}/fonts"
153
154 # This is a hack to avoid sandbox violations when using the Linux console.
155 # Creating the DVI and PDF tutorials require /dev/svga to build the
156 # example plots.
157 addwrite /dev/svga:/dev/mouse:/dev/tts/0
158
159 emake || die
160
161 if use xemacs; then
162 cd "${S}/lisp-xemacs"
163 emake || die
164 fi
165
166 if use emacs; then
167 cd "${S}/lisp"
168 emake || die
169 fi
170
171 if use doc; then
172 # Avoid sandbox violation in epstopdf/ghostscript
173 addpredict /var/cache/fontconfig
174 cd "${S}/docs"
175 emake pdf || die
176 cd "${S}/tutorial"
177 emake pdf || die
178
179 if use emacs || use xemacs; then
180 cd "${S}/lisp"
181 emake pdf || die
182 fi
183 fi
184 }
185
186 src_install () {
187 emake DESTDIR="${D}" install || die
188
189 if use xemacs; then
190 cd "${S}/lisp-xemacs"
191 emake DESTDIR="${D}" install || die
192 fi
193
194 if use emacs; then
195 cd "${S}/lisp"
196 emake DESTDIR="${D}" install || die
197 # info-look* is included with >=emacs-21
198 rm -f "${ED}${SITELISP}/${PN}"/info-look*
199
200 # Gentoo emacs site-lisp configuration
201 echo "(add-to-list 'load-path \"@SITELISP@\")" > ${E_SITEFILE}
202 sed '/^;; move/,+3 d' dotemacs >> ${E_SITEFILE} || die
203 elisp-site-file-install ${E_SITEFILE} || die
204 fi
205
206 cd "${S}"
207 dodoc BUGS ChangeLog NEWS PGPKEYS PORTING README* TODO
208 newdoc term/PostScript/README README-ps
209 newdoc term/js/README README-js
210 use lua && newdoc term/lua/README README-lua
211
212 if use doc; then
213 # Demo files
214 insinto /usr/share/${PN}/${GP_VERSION}
215 doins -r demo || die
216 rm -f "${ED}"/usr/share/${PN}/${GP_VERSION}/demo/Makefile*
217 rm -f "${ED}"/usr/share/${PN}/${GP_VERSION}/demo/binary*
218 # Manual
219 dodoc docs/gnuplot.pdf
220 # Tutorial
221 dodoc tutorial/{tutorial.dvi,tutorial.pdf}
222 # FAQ
223 dodoc FAQ.pdf
224 # Documentation for making PostScript files
225 docinto psdoc
226 dodoc docs/psdoc/{*.doc,*.tex,*.ps,*.gpi,README}
227 fi
228
229 if use emacs || use xemacs; then
230 docinto emacs
231 dodoc lisp/ChangeLog lisp/README
232 use doc && dodoc lisp/gpelcard.pdf
233 fi
234 }
235
236 pkg_postinst() {
237 use emacs && elisp-site-regen
238 use latex && texmf-update
239
240 einfo "Gnuplot no longer links against pdflib, see the ChangeLog for"
241 einfo "details. You can use the \"pdfcairo\" terminal for PDF output."
242 use cairo || einfo "It is available with USE=\"cairo\"."
243
244 if use svga; then
245 echo
246 einfo "In order to enable ordinary users to use SVGA console graphics"
247 einfo "gnuplot needs to be set up as setuid root. Please note that"
248 einfo "this is usually considered to be a security hazard."
249 einfo "As root, manually \"chmod u+s /usr/bin/gnuplot\"."
250 fi
251 if use gd; then
252 echo
253 einfo "For font support in png/jpeg/gif output, you may have to"
254 einfo "set the GDFONTPATH and GNUPLOT_DEFAULT_GDFONT environment"
255 einfo "variables. See the FAQ file in /usr/share/doc/${PF}/"
256 einfo "for more information."
257 fi
258 }
259
260 pkg_postrm() {
261 use emacs && elisp-site-regen
262 use latex && texmf-update
263 }