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: gnuplot-4.6.4-r2.ebuild ChangeLog
Date: Sun, 23 Mar 2014 13:55:31
Message-Id: 20140323135521.9258D20051@flycatcher.gentoo.org
1 ulm 14/03/23 13:55:21
2
3 Modified: ChangeLog
4 Added: gnuplot-4.6.4-r2.ebuild
5 Log:
6 Drop emacs and xemacs USE flags because gnuplot-mode for Emacs is now maintained and distributed separately, bug 504354. For Emacs support, app-emacs/gnuplot-mode should be installed. KEYWORDS dropped to those of gnuserv-mode; they will be readded later.
7
8 (Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 9433907D693FB5B8!)
9
10 Revision Changes Path
11 1.233 sci-visualization/gnuplot/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/ChangeLog?rev=1.233&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/ChangeLog?rev=1.233&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/ChangeLog?r1=1.232&r2=1.233
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v
20 retrieving revision 1.232
21 retrieving revision 1.233
22 diff -u -r1.232 -r1.233
23 --- ChangeLog 22 Mar 2014 19:25:47 -0000 1.232
24 +++ ChangeLog 23 Mar 2014 13:55:21 -0000 1.233
25 @@ -1,6 +1,14 @@
26 # ChangeLog for sci-visualization/gnuplot
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v 1.232 2014/03/22 19:25:47 ulm Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v 1.233 2014/03/23 13:55:21 ulm Exp $
30 +
31 +*gnuplot-4.6.4-r2 (23 Mar 2014)
32 +
33 + 23 Mar 2014; Ulrich Müller <ulm@g.o> +gnuplot-4.6.4-r2.ebuild:
34 + Drop emacs and xemacs USE flags because gnuplot-mode for Emacs is now
35 + maintained and distributed separately, bug 504354. For Emacs support,
36 + app-emacs/gnuplot-mode should be installed. KEYWORDS dropped to those
37 + of gnuserv-mode; they will be readded later.
38
39 22 Mar 2014; Ulrich Müller <ulm@g.o> gnuplot-4.6.4-r1.ebuild:
40 Install the GNU Info file with doinfo, as the install-info make target does
41
42
43
44 1.1 sci-visualization/gnuplot/gnuplot-4.6.4-r2.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.6.4-r2.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.6.4-r2.ebuild?rev=1.1&content-type=text/plain
48
49 Index: gnuplot-4.6.4-r2.ebuild
50 ===================================================================
51 # Copyright 1999-2014 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.6.4-r2.ebuild,v 1.1 2014/03/23 13:55:21 ulm Exp $
54
55 EAPI=5
56
57 inherit eutils flag-o-matic multilib readme.gentoo toolchain-funcs wxwidgets
58
59 DESCRIPTION="Command-line driven interactive plotting program"
60 HOMEPAGE="http://www.gnuplot.info/"
61
62 if [[ -z ${PV%%*9999} ]]; then
63 inherit autotools cvs
64 ECVS_SERVER="gnuplot.cvs.sourceforge.net:/cvsroot/gnuplot"
65 ECVS_MODULE="gnuplot"
66 ECVS_BRANCH="branch-4-6-stable"
67 ECVS_USER="anonymous"
68 ECVS_CVS_OPTIONS="-dP"
69 MY_P="${PN}"
70 SRC_URI=""
71 else
72 MY_P="${P/_/.}"
73 SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz
74 mirror://gentoo/${PN}.info-4.6.2.tar.xz"
75 fi
76
77 LICENSE="gnuplot bitmap? ( free-noncomm )"
78 SLOT="0"
79 KEYWORDS="~amd64 ~ppc ~x86"
80 IUSE="aqua bitmap cairo doc examples +gd ggi latex lua plotutils qt4 readline svga thin-splines wxwidgets X"
81
82 RDEPEND="
83 cairo? (
84 x11-libs/cairo
85 x11-libs/pango )
86 gd? ( >=media-libs/gd-2.0.35-r3[png] )
87 ggi? ( media-libs/libggi )
88 latex? (
89 virtual/latex-base
90 lua? (
91 dev-tex/pgf
92 >=dev-texlive/texlive-latexrecommended-2008-r2 ) )
93 lua? ( dev-lang/lua )
94 plotutils? ( media-libs/plotutils )
95 qt4? ( >=dev-qt/qtcore-4.5:4
96 >=dev-qt/qtgui-4.5:4
97 >=dev-qt/qtsvg-4.5:4 )
98 readline? ( sys-libs/readline )
99 svga? ( media-libs/svgalib )
100 wxwidgets? (
101 x11-libs/wxGTK:2.8[X]
102 x11-libs/cairo
103 x11-libs/pango
104 x11-libs/gtk+:2 )
105 X? ( x11-libs/libXaw )"
106 DEPEND="${RDEPEND}
107 virtual/pkgconfig
108 doc? (
109 virtual/latex-base
110 dev-texlive/texlive-latexextra
111 app-text/ghostscript-gpl )"
112
113 S="${WORKDIR}/${MY_P}"
114
115 GP_VERSION="${PV%.*}"
116 E_SITEFILE="lisp/50${PN}-gentoo.el"
117 TEXMF="${EPREFIX}/usr/share/texmf-site"
118
119 src_prepare() {
120 if [[ -n ${PV%%*9999} ]]; then
121 epatch "${FILESDIR}/${PN}-4.6.2-gdversion.patch" #462996
122 mv "${WORKDIR}"/gnuplot-4.6.2/docs/gnuplot.info docs || die
123 touch docs/gnuplot.info || die #464092#c12 and #466758
124 else
125 local dir
126 for dir in config demo m4 term tutorial; do
127 emake -C "$dir" -f Makefile.am.in Makefile.am
128 done
129 eautoreconf
130 fi
131
132 # Add special version identification as required by provision 2
133 # of the gnuplot license
134 sed -i -e "1s/.*/& (Gentoo revision ${PR})/" PATCHLEVEL || die
135
136 # hacky workaround
137 # Please hack the buildsystem if you like
138 if use prefix && use qt4; then
139 append-ldflags -Wl,-rpath,"${EPREFIX}"/usr/$(get_libdir)/qt4
140 fi
141
142 DOC_CONTENTS='Gnuplot no longer links against pdflib, see the ChangeLog
143 for details. You can use the "pdfcairo" terminal for PDF output.'
144 use cairo || DOC_CONTENTS+=' It is available with USE="cairo".'
145 use svga && DOC_CONTENTS+='\n\nIn order to enable ordinary users to use
146 SVGA console graphics, gnuplot needs to be set up as setuid root.
147 Please note that this is usually considered to be a security hazard.
148 As root, manually "chmod u+s /usr/bin/gnuplot".'
149 use gd && DOC_CONTENTS+='\n\nFor font support in png/jpeg/gif output,
150 you may have to set the GDFONTPATH and GNUPLOT_DEFAULT_GDFONT
151 environment variables. See the FAQ file in /usr/share/doc/${PF}/
152 for more information.'
153 DOC_CONTENTS+='\n\ngnuplot-mode for Emacs is now maintained and
154 distributed separately; the gnuplot ebuild no longer installs it.
155 Emerge app-emacs/gnuplot-mode for Emacs support.'
156 has_version "${CATEGORY}/${PN}[emacs(-)]" && FORCE_PRINT_ELOG=1
157 }
158
159 src_configure() {
160 if ! use latex; then
161 sed -i -e '/SUBDIRS/s/LaTeX//' share/Makefile.in || die
162 fi
163
164 if use wxwidgets; then
165 WX_GTK_VER="2.8"
166 need-wxwidgets unicode
167 fi
168
169 tc-export CC CXX #453174
170
171 econf \
172 --without-pdf \
173 --with-texdir="${TEXMF}/tex/latex/${PN}" \
174 --with-readline=$(usex readline gnu builtin) \
175 --without-lisp-files \
176 $(use_with bitmap bitmap-terminals) \
177 $(use_with cairo) \
178 $(use_with doc tutorial) \
179 $(use_with gd) \
180 "$(use_with ggi ggi "${EPREFIX}/usr/$(get_libdir)")" \
181 "$(use_with ggi xmi "${EPREFIX}/usr/$(get_libdir)")" \
182 $(use_with lua) \
183 "$(use_with plotutils plot "${EPREFIX}/usr/$(get_libdir)")" \
184 $(use_with svga linux-vga) \
185 $(use_with X x) \
186 --enable-stats \
187 $(use_enable qt4 qt) \
188 $(use_enable thin-splines) \
189 $(use_enable wxwidgets) \
190 DIST_CONTACT="http://bugs.gentoo.org/" \
191 EMACS=no
192 }
193
194 src_compile() {
195 # Prevent access violations, see bug 201871
196 VARTEXFONTS="${T}/fonts"
197
198 # We believe that the following line is no longer needed.
199 # In case of problems file a bug report at bugs.gentoo.org.
200 #addwrite /dev/svga:/dev/mouse:/dev/tts/0
201
202 emake all info
203
204 if use doc; then
205 # Avoid sandbox violation in epstopdf/ghostscript
206 addpredict /var/cache/fontconfig
207 emake -C docs pdf
208 emake -C tutorial pdf
209 fi
210 }
211
212 src_install () {
213 emake -j1 DESTDIR="${D}" install
214
215 doinfo docs/gnuplot.info
216 dodoc BUGS ChangeLog NEWS PGPKEYS PORTING README*
217 newdoc term/PostScript/README README-ps
218 newdoc term/js/README README-js
219 use lua && newdoc term/lua/README README-lua
220 readme.gentoo_create_doc
221
222 if use examples; then
223 # Demo files
224 insinto /usr/share/${PN}/${GP_VERSION}
225 doins -r demo
226 rm -f "${ED}"/usr/share/${PN}/${GP_VERSION}/demo/Makefile*
227 rm -f "${ED}"/usr/share/${PN}/${GP_VERSION}/demo/binary*
228 fi
229
230 if use doc; then
231 # Manual, tutorial, FAQ
232 dodoc docs/gnuplot.pdf tutorial/{tutorial.dvi,tutorial.pdf} FAQ.pdf
233 # Documentation for making PostScript files
234 docinto psdoc
235 dodoc docs/psdoc/{*.doc,*.tex,*.ps,*.gpi,README}
236 fi
237 }
238
239 src_test() {
240 GNUTERM="unknown" default_src_test
241 }
242
243 pkg_postinst() {
244 use latex && texmf-update
245 readme.gentoo_print_elog
246 }
247
248 pkg_postrm() {
249 use latex && texmf-update
250 }