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