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