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: gnuplot-4.6.1.ebuild ChangeLog
Date: Tue, 02 Oct 2012 03:33:28
Message-Id: 20121002033318.84EC921600@flycatcher.gentoo.org
1 ottxor 12/10/02 03:33:18
2
3 Modified: ChangeLog
4 Added: gnuplot-4.6.1.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.0_alpha134/cvs/Linux i686)
9
10 Revision Changes Path
11 1.194 sci-visualization/gnuplot/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/ChangeLog?rev=1.194&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/ChangeLog?rev=1.194&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/ChangeLog?r1=1.193&r2=1.194
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v
20 retrieving revision 1.193
21 retrieving revision 1.194
22 diff -u -r1.193 -r1.194
23 --- ChangeLog 10 Sep 2012 00:15:46 -0000 1.193
24 +++ ChangeLog 2 Oct 2012 03:33:18 -0000 1.194
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sci-visualization/gnuplot
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v 1.193 2012/09/10 00:15:46 ottxor Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v 1.194 2012/10/02 03:33:18 ottxor Exp $
30 +
31 +*gnuplot-4.6.1 (02 Oct 2012)
32 +
33 + 02 Oct 2012; Christoph Junghans <ottxor@g.o> +gnuplot-4.6.1.ebuild:
34 + version bump
35
36 10 Sep 2012; Christoph Junghans <ottxor@g.o> metadata.xml:
37 updated metadata.xml
38
39
40
41 1.1 sci-visualization/gnuplot/gnuplot-4.6.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.6.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.6.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gnuplot-4.6.1.ebuild
47 ===================================================================
48 # Copyright 1999-2012 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.6.1.ebuild,v 1.1 2012/10/02 03:33:18 ottxor Exp $
51
52 EAPI=4
53
54 inherit elisp-common flag-o-matic 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-6-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 bitmap? ( free-noncomm )"
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="bitmap cairo doc emacs examples +gd ggi latex lua plotutils qt4 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 qt4? ( >=x11-libs/qt-core-4.5:4
93 >=x11-libs/qt-gui-4.5:4
94 >=x11-libs/qt-svg-4.5:4 )
95 readline? ( sys-libs/readline )
96 svga? ( media-libs/svgalib )
97 wxwidgets? (
98 x11-libs/wxGTK:2.8[X]
99 x11-libs/cairo
100 x11-libs/pango
101 x11-libs/gtk+:2 )
102 X? ( x11-libs/libXaw )
103 xemacs? (
104 app-editors/xemacs
105 app-xemacs/xemacs-base )"
106 DEPEND="${RDEPEND}
107 virtual/pkgconfig
108 doc? (
109 virtual/latex-base
110 dev-texlive/texlive-latexextra
111 app-text/ghostscript-gpl )
112 !emacs? ( xemacs? ( app-xemacs/texinfo ) )"
113
114 if [[ -z ${PV%%*9999} ]]; then
115 # The live ebuild always needs an Emacs for building of gnuplot.texi
116 DEPEND="${DEPEND}
117 !emacs? ( !xemacs? ( || ( virtual/emacs app-xemacs/texinfo ) ) )"
118 fi
119
120 S="${WORKDIR}/${MY_P}"
121
122 GP_VERSION="${PV%.*}"
123 E_SITEFILE="50${PN}-gentoo.el"
124 TEXMF="${EPREFIX}/usr/share/texmf-site"
125
126 src_prepare() {
127 if [[ -z ${PV%%*9999} ]]; then
128 local dir
129 for dir in config demo m4 term tutorial; do
130 emake -C "$dir" -f Makefile.am.in Makefile.am
131 done
132 eautoreconf
133 fi
134
135 # Add special version identification as required by provision 2
136 # of the gnuplot license
137 sed -i -e "1s/.*/& (Gentoo revision ${PR})/" PATCHLEVEL || die
138
139 # hacky workaround
140 # Please hack the buildsystem if you like
141 if use prefix && use qt4; then
142 append-ldflags -Wl,-rpath,"${EPREFIX}"/usr/$(get_libdir)/qt4
143 fi
144 }
145
146 src_configure() {
147 if ! use latex; then
148 sed -i -e '/SUBDIRS/s/LaTeX//' share/Makefile.in || die
149 fi
150
151 if use wxwidgets; then
152 WX_GTK_VER="2.8"
153 need-wxwidgets unicode
154 fi
155
156 local myconf
157 myconf="${myconf} --without-lisp-files"
158 myconf="${myconf} --without-pdf"
159 myconf="${myconf} --enable-stats" #extra command save to be enabled
160 myconf="${myconf} --with-texdir=${TEXMF}/tex/latex/${PN}"
161 myconf="${myconf} $(use_with bitmap bitmap-terminals)"
162 myconf="${myconf} $(use_with cairo)"
163 myconf="${myconf} $(use_with doc tutorial)"
164 myconf="${myconf} $(use_with gd)"
165 myconf="${myconf} $(use_with ggi ggi ${EPREFIX}/usr/$(get_libdir))"
166 myconf="${myconf} $(use_with ggi xmi ${EPREFIX}/usr/$(get_libdir))"
167 myconf="${myconf} $(use_with lua)"
168 myconf="${myconf} $(use_with plotutils plot "${EPREFIX}"/usr/$(get_libdir))"
169 myconf="${myconf} $(use_with svga linux-vga)"
170 myconf="${myconf} $(use_enable thin-splines)"
171 myconf="${myconf} $(use_enable wxwidgets)"
172 myconf="${myconf} $(use_with X x)"
173 myconf="${myconf} $(use_enable qt4 qt)"
174 use readline \
175 && myconf="${myconf} --with-readline=gnu" \
176 || myconf="${myconf} --with-readline=builtin"
177
178 local emacs=$(usev emacs || usev xemacs || echo no)
179 if [[ -z ${PV%%*9999} && ${emacs} = no ]]; then
180 # Live ebuild needs an Emacs to build gnuplot.texi
181 if has_version virtual/emacs; then emacs=emacs
182 elif has_version app-xemacs/texinfo; then emacs=xemacs; fi
183 fi
184
185 econf ${myconf} \
186 DIST_CONTACT="http://bugs.gentoo.org/" \
187 EMACS=${emacs}
188
189 if use xemacs; then
190 einfo "Configuring gnuplot-mode for XEmacs ..."
191 use emacs && cp -Rp lisp lisp-xemacs || ln -s lisp lisp-xemacs
192 cd "${S}/lisp-xemacs"
193 econf --with-lispdir="${EPREFIX}/usr/lib/xemacs/site-packages/${PN}" EMACS=xemacs
194 fi
195
196 if use emacs; then
197 einfo "Configuring gnuplot-mode for GNU Emacs ..."
198 cd "${S}/lisp"
199 econf --with-lispdir="${EPREFIX}${SITELISP}/${PN}" EMACS=emacs
200 fi
201 }
202
203 src_compile() {
204 # Prevent access violations, see bug 201871
205 VARTEXFONTS="${T}/fonts"
206
207 # We believe that the following line is no longer needed.
208 # In case of problems file a bug report at bugs.gentoo.org.
209 #addwrite /dev/svga:/dev/mouse:/dev/tts/0
210
211 emake all info
212
213 if use xemacs; then
214 cd "${S}/lisp-xemacs"
215 emake
216 fi
217
218 if use emacs; then
219 cd "${S}/lisp"
220 emake
221 fi
222
223 if use doc; then
224 # Avoid sandbox violation in epstopdf/ghostscript
225 addpredict /var/cache/fontconfig
226 cd "${S}/docs"
227 emake pdf
228 cd "${S}/tutorial"
229 emake pdf
230
231 if use emacs || use xemacs; then
232 cd "${S}/lisp"
233 emake pdf
234 fi
235 fi
236 }
237
238 src_install () {
239 emake DESTDIR="${D}" install
240
241 if use xemacs; then
242 cd "${S}/lisp-xemacs"
243 emake DESTDIR="${D}" install
244 fi
245
246 if use emacs; then
247 cd "${S}/lisp"
248 emake DESTDIR="${D}" install
249 # info-look* is included with >=emacs-21
250 rm -f "${ED}${SITELISP}/${PN}"/info-look*
251
252 # Gentoo emacs site-lisp configuration
253 echo "(add-to-list 'load-path \"@SITELISP@\")" > ${E_SITEFILE}
254 sed '/^;; move/,+3 d' dotemacs >> ${E_SITEFILE} || die
255 elisp-site-file-install ${E_SITEFILE} || die
256 fi
257
258 cd "${S}"
259 dodoc BUGS ChangeLog NEWS PGPKEYS PORTING README*
260 newdoc term/PostScript/README README-ps
261 newdoc term/js/README README-js
262 use lua && newdoc term/lua/README README-lua
263
264 if use examples; then
265 # Demo files
266 insinto /usr/share/${PN}/${GP_VERSION}
267 doins -r demo
268 rm -f "${ED}"/usr/share/${PN}/${GP_VERSION}/demo/Makefile*
269 rm -f "${ED}"/usr/share/${PN}/${GP_VERSION}/demo/binary*
270 fi
271 if use doc; then
272 # Manual
273 dodoc docs/gnuplot.pdf
274 # Tutorial
275 dodoc tutorial/{tutorial.dvi,tutorial.pdf}
276 # FAQ
277 dodoc FAQ.pdf
278 # Documentation for making PostScript files
279 docinto psdoc
280 dodoc docs/psdoc/{*.doc,*.tex,*.ps,*.gpi,README}
281 fi
282
283 if use emacs || use xemacs; then
284 docinto emacs
285 dodoc lisp/ChangeLog lisp/README
286 use doc && dodoc lisp/gpelcard.pdf
287 fi
288 }
289
290 src_test() {
291 GNUTERM="unknown" default_src_test
292 }
293
294 pkg_postinst() {
295 use emacs && elisp-site-regen
296 use latex && texmf-update
297
298 elog "Gnuplot no longer links against pdflib, see the ChangeLog for"
299 elog "details. You can use the \"pdfcairo\" terminal for PDF output."
300 use cairo || elog "It is available with USE=\"cairo\"."
301
302 if use svga; then
303 echo
304 elog "In order to enable ordinary users to use SVGA console graphics"
305 elog "gnuplot needs to be set up as setuid root. Please note that"
306 elog "this is usually considered to be a security hazard."
307 elog "As root, manually \"chmod u+s /usr/bin/gnuplot\"."
308 fi
309 if use gd; then
310 echo
311 elog "For font support in png/jpeg/gif output, you may have to"
312 elog "set the GDFONTPATH and GNUPLOT_DEFAULT_GDFONT environment"
313 elog "variables. See the FAQ file in /usr/share/doc/${PF}/"
314 elog "for more information."
315 fi
316 }
317
318 pkg_postrm() {
319 use emacs && elisp-site-regen
320 use latex && texmf-update
321 }