Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-visualization/gnuplot: ChangeLog gnuplot-4.2.4.ebuild
Date: Wed, 08 Oct 2008 12:55:47
Message-Id: E1KnYZm-0003g8-8e@stork.gentoo.org
1 ulm 08/10/08 12:55:38
2
3 Modified: ChangeLog
4 Added: gnuplot-4.2.4.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_rc11/cvs/Linux 2.6.26-gentoo-r1 i686)
8
9 Revision Changes Path
10 1.81 sci-visualization/gnuplot/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gnuplot/ChangeLog?rev=1.81&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gnuplot/ChangeLog?rev=1.81&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gnuplot/ChangeLog?r1=1.80&r2=1.81
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v
19 retrieving revision 1.80
20 retrieving revision 1.81
21 diff -u -r1.80 -r1.81
22 --- ChangeLog 26 Aug 2008 19:54:14 -0000 1.80
23 +++ ChangeLog 8 Oct 2008 12:55:38 -0000 1.81
24 @@ -1,6 +1,11 @@
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.80 2008/08/26 19:54:14 ulm Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v 1.81 2008/10/08 12:55:38 ulm Exp $
29 +
30 +*gnuplot-4.2.4 (08 Oct 2008)
31 +
32 + 08 Oct 2008; Ulrich Mueller <ulm@g.o> +gnuplot-4.2.4.ebuild:
33 + Version bump. Omit libggi patch since most of it was applied upstream.
34
35 26 Aug 2008; Ulrich Mueller <ulm@g.o>
36 +files/gnuplot-4.2.3-disable-texhash.patch, gnuplot-4.2.3-r2.ebuild:
37
38
39
40 1.1 sci-visualization/gnuplot/gnuplot-4.2.4.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.2.4.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.2.4.ebuild?rev=1.1&content-type=text/plain
44
45 Index: gnuplot-4.2.4.ebuild
46 ===================================================================
47 # Copyright 1999-2008 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.4.ebuild,v 1.1 2008/10/08 12:55:38 ulm Exp $
50
51 inherit autotools elisp-common eutils multilib wxwidgets
52
53 MY_P="${P/_/.}"
54
55 DESCRIPTION="Command-line driven interactive plotting program"
56 HOMEPAGE="http://www.gnuplot.info/"
57 SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz"
58
59 LICENSE="gnuplot"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd"
62 IUSE="doc emacs gd ggi latex pdf plotutils readline svga wxwindows X xemacs"
63 RESTRICT="wxwindows? ( test )"
64
65 RDEPEND="
66 xemacs? ( virtual/xemacs app-xemacs/texinfo app-xemacs/xemacs-base )
67 emacs? ( virtual/emacs !app-emacs/gnuplot-mode )
68 pdf? ( media-libs/pdflib )
69 ggi? ( media-libs/libggi )
70 gd? ( >=media-libs/gd-2 )
71 doc? ( virtual/latex-base
72 virtual/ghostscript )
73 latex? ( virtual/latex-base )
74 X? ( x11-libs/libXaw )
75 svga? ( media-libs/svgalib )
76 readline? ( >=sys-libs/readline-4.2 )
77 plotutils? ( media-libs/plotutils )
78 wxwindows? ( =x11-libs/wxGTK-2.6*
79 >=x11-libs/cairo-0.9
80 >=x11-libs/pango-1.10.3
81 >=x11-libs/gtk+-2.8 )"
82 DEPEND="${RDEPEND}
83 dev-util/pkgconfig"
84
85 S=${WORKDIR}/${MY_P}
86
87 E_SITEFILE=50${PN}-gentoo.el
88 TEXMF=/usr/share/texmf-site
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 # Texinfo source is already shipped, so separate preparation not needed
109 # and error-prone, see bug 194216
110 epatch "${FILESDIR}"/${PN}-4.2.2-disable_texi_generation.patch
111 # Don't store resource files in deprecated location, reported upstream:
112 # http://sourceforge.net/tracker/index.php?func=detail&aid=1953742&group_id=2055&atid=102055
113 epatch "${FILESDIR}"/${PN}-4.2.3-app-defaults.patch
114 # Disable texhash to prevent sandbox violation, bug 201871
115 epatch "${FILESDIR}"/${PN}-4.2.3-disable-texhash.patch
116
117 eautoreconf
118 }
119
120 src_compile() {
121 # Prevent access violations, see bug 201871
122 VARTEXFONTS="${T}/fonts"
123
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 if use wxwindows ; then
134 WX_GTK_VER="2.6"
135 need-wxwidgets unicode
136 fi
137
138 local myconf="--with-gihdir=/usr/share/${PN}/gih"
139
140 myconf="${myconf} $(use_with X x)"
141 myconf="${myconf} $(use_with svga linux-vga)"
142 myconf="${myconf} $(use_with gd)"
143 myconf="${myconf} $(use_enable wxwindows wxwidgets)"
144 myconf="${myconf} $(use_with plotutils plot /usr/$(get_libdir))"
145 myconf="${myconf} $(use_with pdf pdf /usr/$(get_libdir))"
146
147 use ggi \
148 && myconf="${myconf} --with-ggi=/usr/$(get_libdir)
149 --with-xmi=/usr/$(get_libdir)" \
150 || myconf="${myconf} --without-ggi"
151
152 use readline \
153 && myconf="${myconf} --with-readline=gnu --enable-history-file" \
154 || myconf="${myconf} --with-readline"
155
156 myconf="${myconf} --without-lisp-files"
157
158 # This is a hack to avoid sandbox violations when using the Linux console.
159 # Creating the DVI and PDF tutorials require /dev/svga to build the
160 # example plots.
161 addwrite /dev/svga:/dev/mouse:/dev/tts/0
162
163 TEMACS=no
164 use xemacs && TEMACS=xemacs
165 use emacs && TEMACS=emacs
166 EMACS=${TEMACS} econf ${myconf} || die
167 emake || die
168
169 if use doc ; then
170 cd docs
171 emake pdf || die
172 cd ../tutorial
173 emake pdf || die
174 fi
175 }
176
177 src_install () {
178 emake DESTDIR="${D}" install || die
179
180 if use emacs; then
181 cd lisp
182 einfo "Configuring gnuplot-mode for GNU Emacs..."
183 EMACS="emacs" econf --with-lispdir="${SITELISP}/${PN}" || die
184 emake DESTDIR="${D}" install || die
185 emake clean
186 cd ..
187
188 # Gentoo emacs site-lisp configuration
189 string="(add-to-list 'load-path \"/usr/share/emacs/site-lisp/${PN}\")"
190 echo -e ";;; Gnuplot site-lisp configuration\n\n${string}\n" > ${E_SITEFILE}
191 sed '/^;; move/,+4 d' lisp/dotemacs >> ${E_SITEFILE}
192 elisp-site-file-install ${E_SITEFILE}
193 fi
194
195 if use xemacs; then
196 cd lisp
197 einfo "Configuring gnuplot-mode for XEmacs..."
198 EMACS="xemacs" econf --with-lispdir="/usr/lib/xemacs/site-packages/${PN}" || die
199 emake DESTDIR="${D}" install || die
200 cd ..
201 fi
202
203 dodoc BUGS ChangeLog FAQ NEWS PATCHLEVEL PGPKEYS PORTING README* TODO VERSION
204
205 if use doc; then
206 # Demo files
207 insinto /usr/share/${PN}/demo
208 doins demo/*
209 # Manual
210 insinto /usr/share/doc/${PF}/manual
211 doins docs/gnuplot.pdf
212 # Tutorial
213 insinto /usr/share/doc/${PF}/tutorial
214 doins tutorial/{tutorial.dvi,tutorial.pdf}
215 # Documentation for making PostScript files
216 insinto /usr/share/doc/${PF}/psdoc
217 doins docs/psdoc/{*.doc,*.tex,*.ps,*.gpi,README}
218 fi
219
220 if ! use X; then
221 # see bug 194527
222 rm -rf "${D}/usr/$(get_libdir)/X11"
223 fi
224 }
225
226 pkg_postinst() {
227 use emacs && elisp-site-regen
228 if use svga ; then
229 einfo "In order to enable ordinary users to use SVGA console graphics"
230 einfo "gnuplot needs to be set up as setuid root. Please note that"
231 einfo "this is usually considered to be a security hazard."
232 einfo "As root, manually \"chmod u+s /usr/bin/gnuplot\"."
233 fi
234 use latex && latex_rehash
235 }
236
237 pkg_postrm() {
238 use emacs && elisp-site-regen
239 use latex && latex_rehash
240 }