1 |
ottxor 11/05/28 12:54:20 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: gnuplot-4.4.3-r1.ebuild |
5 |
Log: |
6 |
avoid outdated documentation from the gnuplot.texi (bug #366129#c15) |
7 |
|
8 |
(Portage version: 2.1.9.42/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.9 sci-visualization/gnuplot/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/metadata.xml?rev=1.9&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/metadata.xml?rev=1.9&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/metadata.xml?r1=1.8&r2=1.9 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/metadata.xml,v |
20 |
retrieving revision 1.8 |
21 |
retrieving revision 1.9 |
22 |
diff -u -r1.8 -r1.9 |
23 |
--- metadata.xml 14 Mar 2010 14:37:17 -0000 1.8 |
24 |
+++ metadata.xml 28 May 2011 12:54:20 -0000 1.9 |
25 |
@@ -1,13 +1,17 @@ |
26 |
<?xml version="1.0" encoding="UTF-8"?> |
27 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
28 |
<pkgmetadata> |
29 |
-<herd>sci</herd> |
30 |
-<maintainer> |
31 |
- <email>ulm@g.o</email> |
32 |
-</maintainer> |
33 |
-<use> |
34 |
- <flag name='gd'>Add support for <pkg>media-libs/gd</pkg>. |
35 |
- Needed for GIF, JPEG, and PNG image output.</flag> |
36 |
- <flag name='thin-splines'>Enable thin plate splines</flag> |
37 |
-</use> |
38 |
+ <herd>sci</herd> |
39 |
+ <maintainer> |
40 |
+ <email>ulm@g.o</email> |
41 |
+ </maintainer> |
42 |
+ <maintainer> |
43 |
+ <email>ottxor@g.o</email> |
44 |
+ <name>Christoph Junghans</name> |
45 |
+ </maintainer> |
46 |
+ <use> |
47 |
+ <flag name='gd'>Add support for <pkg>media-libs/gd</pkg>. |
48 |
+ Needed for GIF, JPEG, and PNG image output.</flag> |
49 |
+ <flag name='thin-splines'>Enable thin plate splines</flag> |
50 |
+ </use> |
51 |
</pkgmetadata> |
52 |
|
53 |
|
54 |
|
55 |
1.155 sci-visualization/gnuplot/ChangeLog |
56 |
|
57 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/ChangeLog?rev=1.155&view=markup |
58 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/ChangeLog?rev=1.155&content-type=text/plain |
59 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/ChangeLog?r1=1.154&r2=1.155 |
60 |
|
61 |
Index: ChangeLog |
62 |
=================================================================== |
63 |
RCS file: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v |
64 |
retrieving revision 1.154 |
65 |
retrieving revision 1.155 |
66 |
diff -u -r1.154 -r1.155 |
67 |
--- ChangeLog 7 May 2011 10:16:23 -0000 1.154 |
68 |
+++ ChangeLog 28 May 2011 12:54:20 -0000 1.155 |
69 |
@@ -1,6 +1,12 @@ |
70 |
# ChangeLog for sci-visualization/gnuplot |
71 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
72 |
-# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v 1.154 2011/05/07 10:16:23 ulm Exp $ |
73 |
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v 1.155 2011/05/28 12:54:20 ottxor Exp $ |
74 |
+ |
75 |
+*gnuplot-4.4.3-r1 (28 May 2011) |
76 |
+ |
77 |
+ 28 May 2011; Christoph Junghans <ottxor@g.o> +gnuplot-4.4.3-r1.ebuild, |
78 |
+ metadata.xml: |
79 |
+ avoid outdated documentation from the gnuplot.texi (bug #366129#c15) |
80 |
|
81 |
07 May 2011; Ulrich Mueller <ulm@g.o> gnuplot-4.2.6-r2.ebuild, |
82 |
gnuplot-4.4.2-r1.ebuild, gnuplot-4.4.3.ebuild: |
83 |
|
84 |
|
85 |
|
86 |
1.1 sci-visualization/gnuplot/gnuplot-4.4.3-r1.ebuild |
87 |
|
88 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.4.3-r1.ebuild?rev=1.1&view=markup |
89 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.4.3-r1.ebuild?rev=1.1&content-type=text/plain |
90 |
|
91 |
Index: gnuplot-4.4.3-r1.ebuild |
92 |
=================================================================== |
93 |
# Copyright 1999-2011 Gentoo Foundation |
94 |
# Distributed under the terms of the GNU General Public License v2 |
95 |
# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.4.3-r1.ebuild,v 1.1 2011/05/28 12:54:20 ottxor Exp $ |
96 |
|
97 |
EAPI=3 |
98 |
|
99 |
inherit elisp-common multilib wxwidgets |
100 |
|
101 |
DESCRIPTION="Command-line driven interactive plotting program" |
102 |
HOMEPAGE="http://www.gnuplot.info/" |
103 |
|
104 |
if [[ -z ${PV%%*9999} ]]; then |
105 |
inherit autotools cvs |
106 |
ECVS_SERVER="gnuplot.cvs.sourceforge.net:/cvsroot/gnuplot" |
107 |
ECVS_MODULE="gnuplot" |
108 |
ECVS_BRANCH="branch-4-4-stable" |
109 |
ECVS_USER="anonymous" |
110 |
ECVS_CVS_OPTIONS="-dP" |
111 |
MY_P="${PN}" |
112 |
SRC_URI="" |
113 |
else |
114 |
MY_P="${P/_/-}" |
115 |
SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz" |
116 |
fi |
117 |
|
118 |
LICENSE="gnuplot GPL-2" |
119 |
SLOT="0" |
120 |
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" |
121 |
IUSE="cairo doc emacs +gd ggi latex lua plotutils readline svga thin-splines wxwidgets X xemacs" |
122 |
|
123 |
RESTRICT="wxwidgets? ( test )" |
124 |
|
125 |
RDEPEND="!app-emacs/gnuplot-mode |
126 |
cairo? ( x11-libs/cairo |
127 |
x11-libs/pango ) |
128 |
emacs? ( virtual/emacs ) |
129 |
gd? ( media-libs/gd[png] ) |
130 |
ggi? ( media-libs/libggi ) |
131 |
latex? ( virtual/latex-base |
132 |
lua? ( dev-tex/pgf |
133 |
>=dev-texlive/texlive-latexrecommended-2008-r2 ) ) |
134 |
lua? ( dev-lang/lua ) |
135 |
plotutils? ( media-libs/plotutils ) |
136 |
readline? ( sys-libs/readline ) |
137 |
svga? ( media-libs/svgalib ) |
138 |
wxwidgets? ( x11-libs/wxGTK:2.8[X] |
139 |
x11-libs/cairo |
140 |
x11-libs/pango |
141 |
x11-libs/gtk+:2 ) |
142 |
X? ( x11-libs/libXaw ) |
143 |
xemacs? ( app-editors/xemacs |
144 |
app-xemacs/xemacs-base )" |
145 |
DEPEND="${RDEPEND} |
146 |
dev-util/pkgconfig |
147 |
doc? ( virtual/latex-base |
148 |
app-text/ghostscript-gpl ) |
149 |
!emacs? ( xemacs? ( app-xemacs/texinfo ) ) |
150 |
!emacs? ( !xemacs? ( || ( virtual/emacs app-xemacs/texinfo ) ) )" |
151 |
|
152 |
S="${WORKDIR}/${MY_P}" |
153 |
GP_VERSION="${PV%.*}" |
154 |
E_SITEFILE="50${PN}-gentoo.el" |
155 |
TEXMF="${EPREFIX}/usr/share/texmf-site" |
156 |
|
157 |
src_prepare() { |
158 |
if [[ -z ${PV%%*9999} ]]; then |
159 |
local dir |
160 |
for dir in config demo m4 term tutorial; do |
161 |
emake -C "$dir" -f Makefile.am.in Makefile.am || \ |
162 |
die "make -f Makefile.am.in Makefile.am in $dir failed" |
163 |
done |
164 |
eautoreconf |
165 |
fi |
166 |
|
167 |
# Add special version identification as required by provision 2 |
168 |
# of the gnuplot license |
169 |
sed -i -e "1s/.*/& (Gentoo revision ${PR})/" PATCHLEVEL || die |
170 |
} |
171 |
|
172 |
src_configure() { |
173 |
if ! use latex; then |
174 |
sed -i -e '/SUBDIRS/s/LaTeX//' share/Makefile.in || die |
175 |
fi |
176 |
|
177 |
if use wxwidgets; then |
178 |
WX_GTK_VER="2.8" |
179 |
need-wxwidgets unicode |
180 |
fi |
181 |
|
182 |
local myconf |
183 |
myconf="${myconf} --without-lisp-files" |
184 |
myconf="${myconf} --without-pdf" |
185 |
myconf="${myconf} --with-texdir=${TEXMF}/tex/latex/${PN}" |
186 |
myconf="${myconf} $(use_with cairo)" |
187 |
myconf="${myconf} $(use_with doc tutorial)" |
188 |
myconf="${myconf} $(use_with gd)" |
189 |
myconf="${myconf} $(use_with ggi ggi ${EPREFIX}/usr/$(get_libdir))" |
190 |
myconf="${myconf} $(use_with ggi xmi ${EPREFIX}/usr/$(get_libdir))" |
191 |
myconf="${myconf} $(use_with lua)" |
192 |
myconf="${myconf} $(use_with plotutils plot "${EPREFIX}"/usr/$(get_libdir))" |
193 |
myconf="${myconf} $(use_with svga linux-vga)" |
194 |
myconf="${myconf} $(use_enable thin-splines)" |
195 |
myconf="${myconf} $(use_enable wxwidgets)" |
196 |
myconf="${myconf} $(use_with X x)" |
197 |
use readline \ |
198 |
&& myconf="${myconf} --with-readline=gnu" \ |
199 |
|| myconf="${myconf} --with-readline=builtin" |
200 |
|
201 |
if has_version virtual/emacs; then |
202 |
emacs="emacs" |
203 |
elif has_version app-xemacs/texinfo; then |
204 |
emacs="xemacs" |
205 |
fi |
206 |
|
207 |
econf ${myconf} \ |
208 |
DIST_CONTACT="http://bugs.gentoo.org/" \ |
209 |
EMACS="${emacs}" |
210 |
|
211 |
if use xemacs; then |
212 |
einfo "Configuring gnuplot-mode for XEmacs ..." |
213 |
use emacs && cp -Rp lisp lisp-xemacs || ln -s lisp lisp-xemacs |
214 |
cd "${S}/lisp-xemacs" |
215 |
econf --with-lispdir="${EPREFIX}/usr/lib/xemacs/site-packages/${PN}" EMACS=xemacs |
216 |
fi |
217 |
|
218 |
if use emacs; then |
219 |
einfo "Configuring gnuplot-mode for GNU Emacs ..." |
220 |
cd "${S}/lisp" |
221 |
econf --with-lispdir="${EPREFIX}${SITELISP}/${PN}" EMACS=emacs |
222 |
fi |
223 |
} |
224 |
|
225 |
src_compile() { |
226 |
# Prevent access violations, see bug 201871 |
227 |
VARTEXFONTS="${T}/fonts" |
228 |
|
229 |
# This is a hack to avoid sandbox violations when using the Linux console. |
230 |
# Creating the DVI and PDF tutorials require /dev/svga to build the |
231 |
# example plots. |
232 |
addwrite /dev/svga:/dev/mouse:/dev/tts/0 |
233 |
|
234 |
emake all info || die |
235 |
|
236 |
if use xemacs; then |
237 |
cd "${S}/lisp-xemacs" |
238 |
emake || die |
239 |
fi |
240 |
|
241 |
if use emacs; then |
242 |
cd "${S}/lisp" |
243 |
emake || die |
244 |
fi |
245 |
|
246 |
if use doc; then |
247 |
# Avoid sandbox violation in epstopdf/ghostscript |
248 |
addpredict /var/cache/fontconfig |
249 |
cd "${S}/docs" |
250 |
emake pdf || die |
251 |
cd "${S}/tutorial" |
252 |
emake pdf || die |
253 |
|
254 |
if use emacs || use xemacs; then |
255 |
cd "${S}/lisp" |
256 |
emake pdf || die |
257 |
fi |
258 |
fi |
259 |
} |
260 |
|
261 |
src_install () { |
262 |
emake DESTDIR="${D}" install || die |
263 |
|
264 |
if use xemacs; then |
265 |
cd "${S}/lisp-xemacs" |
266 |
emake DESTDIR="${D}" install || die |
267 |
fi |
268 |
|
269 |
if use emacs; then |
270 |
cd "${S}/lisp" |
271 |
emake DESTDIR="${D}" install || die |
272 |
# info-look* is included with >=emacs-21 |
273 |
rm -f "${ED}${SITELISP}/${PN}"/info-look* |
274 |
|
275 |
# Gentoo emacs site-lisp configuration |
276 |
echo "(add-to-list 'load-path \"@SITELISP@\")" > ${E_SITEFILE} |
277 |
sed '/^;; move/,+3 d' dotemacs >> ${E_SITEFILE} || die |
278 |
elisp-site-file-install ${E_SITEFILE} || die |
279 |
fi |
280 |
|
281 |
cd "${S}" |
282 |
dodoc BUGS ChangeLog NEWS PGPKEYS PORTING README* TODO |
283 |
newdoc term/PostScript/README README-ps |
284 |
newdoc term/js/README README-js |
285 |
use lua && newdoc term/lua/README README-lua |
286 |
|
287 |
if use doc; then |
288 |
# Demo files |
289 |
insinto /usr/share/${PN}/${GP_VERSION} |
290 |
doins -r demo || die |
291 |
rm -f "${ED}"/usr/share/${PN}/${GP_VERSION}/demo/Makefile* |
292 |
rm -f "${ED}"/usr/share/${PN}/${GP_VERSION}/demo/binary* |
293 |
# Manual |
294 |
dodoc docs/gnuplot.pdf |
295 |
# Tutorial |
296 |
dodoc tutorial/{tutorial.dvi,tutorial.pdf} |
297 |
# FAQ |
298 |
dodoc FAQ.pdf |
299 |
# Documentation for making PostScript files |
300 |
docinto psdoc |
301 |
dodoc docs/psdoc/{*.doc,*.tex,*.ps,*.gpi,README} |
302 |
fi |
303 |
|
304 |
if use emacs || use xemacs; then |
305 |
docinto emacs |
306 |
dodoc lisp/ChangeLog lisp/README |
307 |
use doc && dodoc lisp/gpelcard.pdf |
308 |
fi |
309 |
} |
310 |
|
311 |
pkg_postinst() { |
312 |
use emacs && elisp-site-regen |
313 |
use latex && texmf-update |
314 |
|
315 |
einfo "Gnuplot no longer links against pdflib, see the ChangeLog for" |
316 |
einfo "details. You can use the \"pdfcairo\" terminal for PDF output." |
317 |
use cairo || einfo "It is available with USE=\"cairo\"." |
318 |
|
319 |
if use svga; then |
320 |
echo |
321 |
einfo "In order to enable ordinary users to use SVGA console graphics" |
322 |
einfo "gnuplot needs to be set up as setuid root. Please note that" |
323 |
einfo "this is usually considered to be a security hazard." |
324 |
einfo "As root, manually \"chmod u+s /usr/bin/gnuplot\"." |
325 |
fi |
326 |
if use gd; then |
327 |
echo |
328 |
einfo "For font support in png/jpeg/gif output, you may have to" |
329 |
einfo "set the GDFONTPATH and GNUPLOT_DEFAULT_GDFONT environment" |
330 |
einfo "variables. See the FAQ file in /usr/share/doc/${PF}/" |
331 |
einfo "for more information." |
332 |
fi |
333 |
} |
334 |
|
335 |
pkg_postrm() { |
336 |
use emacs && elisp-site-regen |
337 |
use latex && texmf-update |
338 |
} |