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