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