Gentoo Archives: gentoo-commits

From: "Christoph Junghans (ottxor)" <ottxor@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-visualization/gnuplot: ChangeLog gnuplot-4.4.4.ebuild
Date: Mon, 28 Nov 2011 05:22:51
Message-Id: 20111128052238.7A01E2004B@flycatcher.gentoo.org
1 ottxor 11/11/28 05:22:38
2
3 Modified: ChangeLog
4 Added: gnuplot-4.4.4.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.0_alpha79/cvs/Linux i686)
9
10 Revision Changes Path
11 1.168 sci-visualization/gnuplot/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/ChangeLog?rev=1.168&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/ChangeLog?rev=1.168&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/ChangeLog?r1=1.167&r2=1.168
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v
20 retrieving revision 1.167
21 retrieving revision 1.168
22 diff -u -r1.167 -r1.168
23 --- ChangeLog 11 Nov 2011 22:56:21 -0000 1.167
24 +++ ChangeLog 28 Nov 2011 05:22:38 -0000 1.168
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sci-visualization/gnuplot
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v 1.167 2011/11/11 22:56:21 ulm Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v 1.168 2011/11/28 05:22:38 ottxor Exp $
30 +
31 +*gnuplot-4.4.4 (28 Nov 2011)
32 +
33 + 28 Nov 2011; Christoph Junghans <ottxor@g.o> +gnuplot-4.4.4.ebuild:
34 + version bump
35
36 11 Nov 2011; Ulrich Mueller <ulm@g.o> gnuplot-4.2.6-r2.ebuild,
37 gnuplot-4.4.3-r1.ebuild:
38
39
40
41 1.1 sci-visualization/gnuplot/gnuplot-4.4.4.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.4.4.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.4.4.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gnuplot-4.4.4.ebuild
47 ===================================================================
48 # Copyright 1999-2011 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.4.4.ebuild,v 1.1 2011/11/28 05:22:38 ottxor Exp $
51
52 EAPI=3
53
54 inherit elisp-common multilib wxwidgets
55
56 DESCRIPTION="Command-line driven interactive plotting program"
57 HOMEPAGE="http://www.gnuplot.info/"
58
59 if [[ -z ${PV%%*9999} ]]; then
60 inherit autotools cvs
61 ECVS_SERVER="gnuplot.cvs.sourceforge.net:/cvsroot/gnuplot"
62 ECVS_MODULE="gnuplot"
63 ECVS_BRANCH="branch-4-4-stable"
64 ECVS_USER="anonymous"
65 ECVS_CVS_OPTIONS="-dP"
66 MY_P="${PN}"
67 SRC_URI=""
68 else
69 MY_P="${P/_/-}"
70 SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz"
71 fi
72
73 LICENSE="gnuplot GPL-2"
74 SLOT="0"
75 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
76 IUSE="cairo doc emacs examples +gd ggi latex lua plotutils readline svga thin-splines wxwidgets X xemacs"
77
78 RDEPEND="
79 cairo? (
80 x11-libs/cairo
81 x11-libs/pango )
82 emacs? ( virtual/emacs )
83 gd? ( media-libs/gd[png] )
84 ggi? ( media-libs/libggi )
85 latex? (
86 virtual/latex-base
87 lua? (
88 dev-tex/pgf
89 >=dev-texlive/texlive-latexrecommended-2008-r2 ) )
90 lua? ( dev-lang/lua )
91 plotutils? ( media-libs/plotutils )
92 readline? ( sys-libs/readline )
93 svga? ( media-libs/svgalib )
94 wxwidgets? (
95 x11-libs/wxGTK:2.8[X]
96 x11-libs/cairo
97 x11-libs/pango
98 x11-libs/gtk+:2 )
99 X? ( x11-libs/libXaw )
100 xemacs? (
101 app-editors/xemacs
102 app-xemacs/xemacs-base )"
103 DEPEND="${RDEPEND}
104 dev-util/pkgconfig
105 doc? (
106 virtual/latex-base
107 dev-texlive/texlive-latexextra
108 app-text/ghostscript-gpl )
109 !emacs? ( xemacs? ( app-xemacs/texinfo ) )"
110
111 RESTRICT="wxwidgets? ( test )"
112
113 S="${WORKDIR}/${MY_P}"
114
115 GP_VERSION="${PV%.*}"
116 E_SITEFILE="50${PN}-gentoo.el"
117 TEXMF="${EPREFIX}/usr/share/texmf-site"
118
119 src_prepare() {
120 if [[ -z ${PV%%*9999} ]]; then
121 local dir
122 for dir in config demo m4 term tutorial; do
123 emake -C "$dir" -f Makefile.am.in Makefile.am || \
124 die "make -f Makefile.am.in Makefile.am in $dir failed"
125 done
126 eautoreconf
127 fi
128
129 # Add special version identification as required by provision 2
130 # of the gnuplot license
131 sed -i -e "1s/.*/& (Gentoo revision ${PR})/" PATCHLEVEL || die
132 }
133
134 src_configure() {
135 if ! use latex; then
136 sed -i -e '/SUBDIRS/s/LaTeX//' share/Makefile.in || die
137 fi
138
139 if use wxwidgets; then
140 WX_GTK_VER="2.8"
141 need-wxwidgets unicode
142 fi
143
144 local myconf
145 myconf="${myconf} --without-lisp-files"
146 myconf="${myconf} --without-pdf"
147 myconf="${myconf} --with-texdir=${TEXMF}/tex/latex/${PN}"
148 myconf="${myconf} $(use_with cairo)"
149 myconf="${myconf} $(use_with doc tutorial)"
150 myconf="${myconf} $(use_with gd)"
151 myconf="${myconf} $(use_with ggi ggi ${EPREFIX}/usr/$(get_libdir))"
152 myconf="${myconf} $(use_with ggi xmi ${EPREFIX}/usr/$(get_libdir))"
153 myconf="${myconf} $(use_with lua)"
154 myconf="${myconf} $(use_with plotutils plot "${EPREFIX}"/usr/$(get_libdir))"
155 myconf="${myconf} $(use_with svga linux-vga)"
156 myconf="${myconf} $(use_enable thin-splines)"
157 myconf="${myconf} $(use_enable wxwidgets)"
158 myconf="${myconf} $(use_with X x)"
159 use readline \
160 && myconf="${myconf} --with-readline=gnu" \
161 || myconf="${myconf} --with-readline=builtin"
162
163 econf ${myconf} \
164 DIST_CONTACT="http://bugs.gentoo.org/" \
165 EMACS=$(usev emacs || usev xemacs || echo no)
166
167 if use xemacs; then
168 einfo "Configuring gnuplot-mode for XEmacs ..."
169 use emacs && cp -Rp lisp lisp-xemacs || ln -s lisp lisp-xemacs
170 cd "${S}/lisp-xemacs"
171 econf --with-lispdir="${EPREFIX}/usr/lib/xemacs/site-packages/${PN}" EMACS=xemacs
172 fi
173
174 if use emacs; then
175 einfo "Configuring gnuplot-mode for GNU Emacs ..."
176 cd "${S}/lisp"
177 econf --with-lispdir="${EPREFIX}${SITELISP}/${PN}" EMACS=emacs
178 fi
179 }
180
181 src_compile() {
182 # Prevent access violations, see bug 201871
183 VARTEXFONTS="${T}/fonts"
184
185 # This is a hack to avoid sandbox violations when using the Linux console.
186 # Creating the DVI and PDF tutorials require /dev/svga to build the
187 # example plots.
188 addwrite /dev/svga:/dev/mouse:/dev/tts/0
189
190 emake all info || die
191
192 if use xemacs; then
193 cd "${S}/lisp-xemacs"
194 emake || die
195 fi
196
197 if use emacs; then
198 cd "${S}/lisp"
199 emake || die
200 fi
201
202 if use doc; then
203 # Avoid sandbox violation in epstopdf/ghostscript
204 addpredict /var/cache/fontconfig
205 cd "${S}/docs"
206 emake pdf || die
207 cd "${S}/tutorial"
208 emake pdf || die
209
210 if use emacs || use xemacs; then
211 cd "${S}/lisp"
212 emake pdf || die
213 fi
214 fi
215 }
216
217 src_install () {
218 emake DESTDIR="${D}" install || die
219
220 if use xemacs; then
221 cd "${S}/lisp-xemacs"
222 emake DESTDIR="${D}" install || die
223 fi
224
225 if use emacs; then
226 cd "${S}/lisp"
227 emake DESTDIR="${D}" install || die
228 # info-look* is included with >=emacs-21
229 rm -f "${ED}${SITELISP}/${PN}"/info-look*
230
231 # Gentoo emacs site-lisp configuration
232 echo "(add-to-list 'load-path \"@SITELISP@\")" > ${E_SITEFILE}
233 sed '/^;; move/,+3 d' dotemacs >> ${E_SITEFILE} || die
234 elisp-site-file-install ${E_SITEFILE} || die
235 fi
236
237 cd "${S}"
238 dodoc BUGS ChangeLog NEWS PGPKEYS PORTING README* TODO
239 newdoc term/PostScript/README README-ps
240 newdoc term/js/README README-js
241 use lua && newdoc term/lua/README README-lua
242
243 if use examples; then
244 # Demo files
245 insinto /usr/share/${PN}/${GP_VERSION}
246 doins -r demo || die
247 rm -f "${ED}"/usr/share/${PN}/${GP_VERSION}/demo/Makefile*
248 rm -f "${ED}"/usr/share/${PN}/${GP_VERSION}/demo/binary*
249 fi
250 if use doc; then
251 # Manual
252 dodoc docs/gnuplot.pdf
253 # Tutorial
254 dodoc tutorial/{tutorial.dvi,tutorial.pdf}
255 # FAQ
256 dodoc FAQ.pdf
257 # Documentation for making PostScript files
258 docinto psdoc
259 dodoc docs/psdoc/{*.doc,*.tex,*.ps,*.gpi,README}
260 fi
261
262 if use emacs || use xemacs; then
263 docinto emacs
264 dodoc lisp/ChangeLog lisp/README
265 use doc && dodoc lisp/gpelcard.pdf
266 fi
267 }
268
269 pkg_postinst() {
270 use emacs && elisp-site-regen
271 use latex && texmf-update
272
273 elog "Gnuplot no longer links against pdflib, see the ChangeLog for"
274 elog "details. You can use the \"pdfcairo\" terminal for PDF output."
275 use cairo || elog "It is available with USE=\"cairo\"."
276
277 if use svga; then
278 echo
279 elog "In order to enable ordinary users to use SVGA console graphics"
280 elog "gnuplot needs to be set up as setuid root. Please note that"
281 elog "this is usually considered to be a security hazard."
282 elog "As root, manually \"chmod u+s /usr/bin/gnuplot\"."
283 fi
284 if use gd; then
285 echo
286 elog "For font support in png/jpeg/gif output, you may have to"
287 elog "set the GDFONTPATH and GNUPLOT_DEFAULT_GDFONT environment"
288 elog "variables. See the FAQ file in /usr/share/doc/${PF}/"
289 elog "for more information."
290 fi
291 }
292
293 pkg_postrm() {
294 use emacs && elisp-site-regen
295 use latex && texmf-update
296 }