1 |
opfer 08/04/24 12:19:55 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: gnuplot-4.2.3.ebuild |
5 |
Log: |
6 |
version bump |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.68 sci-visualization/gnuplot/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gnuplot/ChangeLog?rev=1.68&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gnuplot/ChangeLog?rev=1.68&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gnuplot/ChangeLog?r1=1.67&r2=1.68 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v |
19 |
retrieving revision 1.67 |
20 |
retrieving revision 1.68 |
21 |
diff -u -r1.67 -r1.68 |
22 |
--- ChangeLog 24 Apr 2008 12:11:00 -0000 1.67 |
23 |
+++ ChangeLog 24 Apr 2008 12:19:54 -0000 1.68 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for sci-visualization/gnuplot |
26 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v 1.67 2008/04/24 12:11:00 opfer Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v 1.68 2008/04/24 12:19:54 opfer Exp $ |
29 |
+ |
30 |
+*gnuplot-4.2.3 (24 Apr 2008) |
31 |
+ |
32 |
+ 24 Apr 2008; Christian Faulhammer <opfer@g.o> |
33 |
+ +gnuplot-4.2.3.ebuild: |
34 |
+ version bump |
35 |
|
36 |
24 Apr 2008; Christian Faulhammer <opfer@g.o> |
37 |
gnuplot-4.2.2-r1.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 sci-visualization/gnuplot/gnuplot-4.2.3.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.2.3.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.2.3.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: gnuplot-4.2.3.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2008 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.2.3.ebuild,v 1.1 2008/04/24 12:19:54 opfer Exp $ |
51 |
|
52 |
inherit eutils elisp-common multilib wxwidgets |
53 |
|
54 |
MY_P="${P/_/.}" |
55 |
|
56 |
DESCRIPTION="Command-line driven interactive plotting program" |
57 |
HOMEPAGE="http://www.gnuplot.info/" |
58 |
SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz" |
59 |
|
60 |
LICENSE="gnuplot" |
61 |
SLOT="0" |
62 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd" |
63 |
IUSE="doc emacs gd ggi latex pdf plotutils readline svga wxwindows X xemacs" |
64 |
RESTRICT="wxwindows? ( test )" |
65 |
|
66 |
RDEPEND=" |
67 |
xemacs? ( virtual/xemacs app-xemacs/texinfo app-xemacs/xemacs-base ) |
68 |
emacs? ( virtual/emacs !app-emacs/gnuplot-mode ) |
69 |
pdf? ( media-libs/pdflib ) |
70 |
ggi? ( media-libs/libggi ) |
71 |
gd? ( >=media-libs/gd-2 ) |
72 |
doc? ( virtual/latex-base |
73 |
virtual/ghostscript ) |
74 |
latex? ( virtual/latex-base ) |
75 |
X? ( x11-libs/libXaw ) |
76 |
svga? ( media-libs/svgalib ) |
77 |
readline? ( >=sys-libs/readline-4.2 ) |
78 |
plotutils? ( media-libs/plotutils ) |
79 |
wxwindows? ( =x11-libs/wxGTK-2.6* |
80 |
>=x11-libs/cairo-0.9 |
81 |
>=x11-libs/pango-1.10.3 |
82 |
>=x11-libs/gtk+-2.8 )" |
83 |
DEPEND="${RDEPEND} |
84 |
dev-util/pkgconfig" |
85 |
|
86 |
S=${WORKDIR}/${MY_P} |
87 |
|
88 |
E_SITEFILE="50gnuplot-gentoo.el" |
89 |
|
90 |
latex_rehash() { |
91 |
if has_version '>=app-text/tetex-3' || has_version '>=app-text/ptex-3.1.8' || has_version 'app-text/texlive'; then |
92 |
texmf-update |
93 |
else |
94 |
texconfig rehash |
95 |
fi |
96 |
} |
97 |
|
98 |
pkg_setup() { |
99 |
if use gd && ! built_with_use media-libs/gd png; then |
100 |
eerror "media-libs/gd needs to be built with PNG support" |
101 |
die "please rebuilt media-libs/gd with USE=png" |
102 |
fi |
103 |
} |
104 |
|
105 |
src_unpack() { |
106 |
unpack ${A} |
107 |
cd "${S}" |
108 |
# not sane enough for upstream, but we will keep it |
109 |
epatch "${FILESDIR}"/${PN}-4.2.0-libggi.patch |
110 |
# Texinfo source is already shipped, so separate preparation not needed |
111 |
# and error-prone, see bug 194216 |
112 |
epatch "${FILESDIR}"/${PN}-4.2.2-disable_texi_generation.patch |
113 |
} |
114 |
|
115 |
src_compile() { |
116 |
# Prevent access violations, see bug 201871 |
117 |
VARTEXFONTS="${T}/fonts" |
118 |
|
119 |
# See bug #156427. |
120 |
if use latex ; then |
121 |
sed -i \ |
122 |
-e 's/TEXMFLOCAL/TEXMFSITE/g' share/LaTeX/Makefile.in || die |
123 |
else |
124 |
sed -i \ |
125 |
-e '/^SUBDIRS/ s/LaTeX//' share/LaTeX/Makefile.in || die |
126 |
fi |
127 |
|
128 |
if use wxwindows ; then |
129 |
WX_GTK_VER="2.6" |
130 |
need-wxwidgets unicode |
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 |
|
142 |
use ggi \ |
143 |
&& myconf="${myconf} --with-ggi=/usr/$(get_libdir) |
144 |
--with-xmi=/usr/$(get_libdir)" \ |
145 |
|| myconf="${myconf} --without-ggi" |
146 |
|
147 |
use readline \ |
148 |
&& myconf="${myconf} --with-readline=gnu --enable-history-file" \ |
149 |
|| myconf="${myconf} --with-readline" |
150 |
|
151 |
myconf="${myconf} --without-lisp-files" |
152 |
|
153 |
# This is a hack to avoid sandbox violations when using the Linux console. |
154 |
# Creating the DVI and PDF tutorials require /dev/svga to build the |
155 |
# example plots. |
156 |
addwrite /dev/svga:/dev/mouse:/dev/tts/0 |
157 |
|
158 |
TEMACS=no |
159 |
use xemacs && TEMACS=xemacs |
160 |
use emacs && TEMACS=emacs |
161 |
EMACS=${TEMACS} econf ${myconf} || die |
162 |
emake || die |
163 |
|
164 |
if use doc ; then |
165 |
cd docs |
166 |
emake pdf || die |
167 |
cd ../tutorial |
168 |
emake pdf || die |
169 |
fi |
170 |
} |
171 |
|
172 |
src_install () { |
173 |
emake DESTDIR="${D}" install || die |
174 |
|
175 |
if use emacs; then |
176 |
cd lisp |
177 |
einfo "Configuring gnuplot-mode for GNU Emacs..." |
178 |
EMACS="emacs" econf --with-lispdir="${SITELISP}/${PN}" || die |
179 |
emake DESTDIR="${D}" install || die |
180 |
emake clean |
181 |
cd .. |
182 |
|
183 |
# Gentoo emacs site-lisp configuration |
184 |
string="(add-to-list 'load-path \"/usr/share/emacs/site-lisp/${PN}\")" |
185 |
echo -e ";;; Gnuplot site-lisp configuration\n\n${string}\n" > ${E_SITEFILE} |
186 |
sed '/^;; move/,+4 d' lisp/dotemacs >> ${E_SITEFILE} |
187 |
elisp-site-file-install ${E_SITEFILE} |
188 |
fi |
189 |
|
190 |
if use xemacs; then |
191 |
cd lisp |
192 |
einfo "Configuring gnuplot-mode for XEmacs..." |
193 |
EMACS="xemacs" econf --with-lispdir="/usr/lib/xemacs/site-packages/${PN}" || die |
194 |
emake DESTDIR="${D}" install || die |
195 |
cd .. |
196 |
fi |
197 |
|
198 |
dodoc BUGS ChangeLog FAQ NEWS PATCHLEVEL PGPKEYS PORTING README* TODO VERSION |
199 |
|
200 |
if use doc; then |
201 |
# Demo files |
202 |
insinto /usr/share/${PN}/demo |
203 |
doins demo/* |
204 |
# Manual |
205 |
insinto /usr/share/doc/${PF}/manual |
206 |
doins docs/gnuplot.pdf |
207 |
# Tutorial |
208 |
insinto /usr/share/doc/${PF}/tutorial |
209 |
doins tutorial/{tutorial.dvi,tutorial.pdf} |
210 |
# Documentation for making PostScript files |
211 |
insinto /usr/share/doc/${PF}/psdoc |
212 |
doins docs/psdoc/{*.doc,*.tex,*.ps,*.gpi,README} |
213 |
fi |
214 |
|
215 |
if ! use X; then |
216 |
# see bug 194527 |
217 |
rm -rf "${D}/usr/$(get_libdir)/X11" |
218 |
fi |
219 |
} |
220 |
|
221 |
pkg_postinst() { |
222 |
use emacs && elisp-site-regen |
223 |
if use svga ; then |
224 |
einfo "In order to enable ordinary users to use SVGA console graphics" |
225 |
einfo "gnuplot needs to be set up as setuid root. Please note that" |
226 |
einfo "this is usually considered to be a security hazard." |
227 |
einfo "As root, manually \"chmod u+s /usr/bin/gnuplot\"." |
228 |
fi |
229 |
use latex && latex_rehash |
230 |
} |
231 |
|
232 |
pkg_postrm() { |
233 |
use emacs && elisp-site-regen |
234 |
use latex && latex_rehash |
235 |
} |
236 |
|
237 |
|
238 |
|
239 |
-- |
240 |
gentoo-commits@l.g.o mailing list |