Gentoo Archives: gentoo-commits

From: Christoph Junghans <ottxor@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-visualization/gnuplot/
Date: Mon, 07 Mar 2016 16:11:27
Message-Id: 1457367068.ce9db67160a1de82244c6dc078b90320672491a7.ottxor@gentoo
1 commit: ce9db67160a1de82244c6dc078b90320672491a7
2 Author: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 7 16:11:08 2016 +0000
4 Commit: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 7 16:11:08 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce9db671
7
8 sci-visualization/gnuplot: version bump (bug #576710)
9
10 Package-Manager: portage-2.2.26
11
12 sci-visualization/gnuplot/Manifest | 1 +
13 sci-visualization/gnuplot/gnuplot-5.0.3.ebuild | 209 +++++++++++++++++++++++++
14 2 files changed, 210 insertions(+)
15
16 diff --git a/sci-visualization/gnuplot/Manifest b/sci-visualization/gnuplot/Manifest
17 index d8bfd2a..a27c277 100644
18 --- a/sci-visualization/gnuplot/Manifest
19 +++ b/sci-visualization/gnuplot/Manifest
20 @@ -1,3 +1,4 @@
21 DIST gnuplot-4.6.5.tar.gz 5035657 SHA256 e550f030c7d04570e89c3d4e3f6e82296816508419c86ab46c4dd73156519a2d SHA512 5a9c55d664105242aaf6356e707094a7dd5a80ba8d836bc7b3ce8836bcf5d2a57174d38220ea9efc58fa04f3c5f7d680ca5023482cff1a62b93549ff0530c47d WHIRLPOOL 9b3bc60668af708359c66f01d3780ee1547a03d8842af7010505c98ec3f870df846d167f557157e2ec6f85bf55cc03be02dc3514f533a3adaf9edc7fca61037b
22 DIST gnuplot-5.0.1.tar.gz 4963747 SHA256 7cbc557e71df581ea520123fb439dea5f073adcc9010a2885dc80d4ed28b3c47 SHA512 f68ccef8ecad0d5f7c2eb5dc2c97ba14abba6e3324c36bb9ede5f87eef613942376a26e42e55fa8e9c908e2b732aa0b9f34d6d5c386e3d5cf9685bbca60fa094 WHIRLPOOL 7c1d7ec4e999d5d78fadc67cee1186988dbb1cd53feef19094554aa215a19ee6b136d7b65e692cba42bfdb19a06f036fc3fbe1b78cb55f9d0f1b8a740341d15c
23 +DIST gnuplot-5.0.3.tar.gz 5042644 SHA256 5f6ee35f3f22014058e999911934bfa9db28e02a2722a7001c192cd182b8c715 SHA512 e5ce44ea1071d388fac96aeb4f675a4625b3ac1858d7a78adedb40d95d99d67b2afdcca0aeb056c5e438edd288b8c65a3def2d18cc7c76fcf64eaa3cd77de9ca WHIRLPOOL 115688f506603ce33b5b1002a28c659c67be8ca51c6f92d185c5bd2000f34135ef75d3fa5467f807604bee2c91fb0034b27d0e51a143e8759d98645c250eb92e
24 DIST gnuplot.info-4.6.2.tar.xz 182168 SHA256 73307153e8f525cce04d8c2c09ef28e422f21cd216d019f7aef8dbe71b6cc1bd SHA512 805e11933addefde41a15287e96bff9f4e307bbffbabe4bf1a9c49663a688702d9e738750d4ca6db475c9c09c0b6a14589b7e18392161610709e8864c626d4ff WHIRLPOOL bc16e1b6a798e214516aba413b3843045b0489038943dec6511722fed1eba772ba1067a8cdcada216afa903de5744c0722fa9f856a74d8f8e68fa27016704e53
25
26 diff --git a/sci-visualization/gnuplot/gnuplot-5.0.3.ebuild b/sci-visualization/gnuplot/gnuplot-5.0.3.ebuild
27 new file mode 100644
28 index 0000000..7350554
29 --- /dev/null
30 +++ b/sci-visualization/gnuplot/gnuplot-5.0.3.ebuild
31 @@ -0,0 +1,209 @@
32 +# Copyright 1999-2016 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=5
37 +
38 +inherit autotools eutils flag-o-matic multilib readme.gentoo toolchain-funcs wxwidgets
39 +
40 +DESCRIPTION="Command-line driven interactive plotting program"
41 +HOMEPAGE="http://www.gnuplot.info/"
42 +
43 +if [[ -z ${PV%%*9999} ]]; then
44 + inherit autotools cvs
45 + ECVS_SERVER="gnuplot.cvs.sourceforge.net:/cvsroot/gnuplot"
46 + ECVS_MODULE="gnuplot"
47 + ECVS_BRANCH="branch-5-0-stable"
48 + ECVS_USER="anonymous"
49 + ECVS_CVS_OPTIONS="-dP"
50 + MY_P="${PN}"
51 + SRC_URI=""
52 + KEYWORDS=""
53 +else
54 + MY_P="${P/_/.}"
55 + SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz"
56 + KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
57 + inherit autotools
58 +fi
59 +
60 +LICENSE="gnuplot bitmap? ( free-noncomm )"
61 +SLOT="0"
62 +IUSE="aqua bitmap cairo compat doc examples +gd ggi latex libcaca libcerf lua qt4 readline svga wxwidgets X"
63 +
64 +RDEPEND="
65 + cairo? (
66 + x11-libs/cairo
67 + x11-libs/pango )
68 + gd? ( >=media-libs/gd-2.0.35-r3:2=[png] )
69 + ggi? ( media-libs/libggi )
70 + latex? (
71 + virtual/latex-base
72 + lua? (
73 + dev-tex/pgf
74 + >=dev-texlive/texlive-latexrecommended-2008-r2 ) )
75 + libcaca? ( media-libs/libcaca )
76 + lua? ( dev-lang/lua:0 )
77 + qt4? ( >=dev-qt/qtcore-4.5:4
78 + >=dev-qt/qtgui-4.5:4
79 + >=dev-qt/qtsvg-4.5:4 )
80 + readline? ( sys-libs/readline:0 )
81 + libcerf? ( sci-libs/libcerf )
82 + svga? ( media-libs/svgalib )
83 + wxwidgets? (
84 + x11-libs/wxGTK:3.0[X]
85 + x11-libs/cairo
86 + x11-libs/pango
87 + x11-libs/gtk+:2 )
88 + X? ( x11-libs/libXaw )"
89 +DEPEND="${RDEPEND}
90 + virtual/pkgconfig
91 + doc? (
92 + virtual/latex-base
93 + dev-texlive/texlive-latexextra
94 + app-text/ghostscript-gpl )"
95 +
96 +S="${WORKDIR}/${MY_P}"
97 +
98 +GP_VERSION="${PV%.*}"
99 +E_SITEFILE="lisp/50${PN}-gentoo.el"
100 +TEXMF="${EPREFIX}/usr/share/texmf-site"
101 +
102 +src_prepare() {
103 + # Fix underlinking
104 + epatch "${FILESDIR}"/${PN}-5.0.1-fix-underlinking.patch
105 +
106 + if [[ -z ${PV%%*9999} ]]; then
107 + local dir
108 + for dir in config demo m4 term tutorial; do
109 + emake -C "$dir" -f Makefile.am.in Makefile.am
110 + done
111 + #eautoreconf
112 + fi
113 +
114 + # Add special version identification as required by provision 2
115 + # of the gnuplot license
116 + sed -i -e "1s/.*/& (Gentoo revision ${PR})/" PATCHLEVEL || die
117 +
118 + # hacky workaround
119 + # Please hack the buildsystem if you like
120 + if use prefix && use qt4; then
121 + append-ldflags -Wl,-rpath,"${EPREFIX}"/usr/$(get_libdir)/qt4
122 + fi
123 +
124 + DOC_CONTENTS='Gnuplot no longer links against pdflib, see the ChangeLog
125 + for details. You can use the "pdfcairo" terminal for PDF output.'
126 + use cairo || DOC_CONTENTS+=' It is available with USE="cairo".'
127 + use svga && DOC_CONTENTS+='\n\nIn order to enable ordinary users to use
128 + SVGA console graphics, gnuplot needs to be set up as setuid root.
129 + Please note that this is usually considered to be a security hazard.
130 + As root, manually "chmod u+s /usr/bin/gnuplot".'
131 + use gd && DOC_CONTENTS+='\n\nFor font support in png/jpeg/gif output,
132 + you may have to set the GDFONTPATH and GNUPLOT_DEFAULT_GDFONT
133 + environment variables. See the FAQ file in /usr/share/doc/${PF}/
134 + for more information.'
135 +
136 + mv configure.in configure.ac || die
137 + eautoreconf
138 +
139 + # Make sure we don't mix build & host flags.
140 + sed -i \
141 + -e 's:@CPPFLAGS@:$(BUILD_CPPFLAGS):' \
142 + -e 's:@CFLAGS@:$(BUILD_CFLAGS):' \
143 + -e 's:@LDFLAGS@:$(BUILD_LDFLAGS):' \
144 + -e 's:@CC@:$(CC_FOR_BUILD):' \
145 + docs/Makefile.in || die
146 +}
147 +
148 +src_configure() {
149 + if ! use latex; then
150 + sed -i -e '/SUBDIRS/s/LaTeX//' share/Makefile.in || die
151 + fi
152 +
153 + if use wxwidgets; then
154 + WX_GTK_VER="3.0"
155 + need-wxwidgets unicode
156 + fi
157 +
158 + tc-export CC CXX #453174
159 + tc-export_build_env BUILD_CC
160 + export CC_FOR_BUILD=${BUILD_CC}
161 +
162 + econf \
163 + --without-pdf \
164 + --with-texdir="${TEXMF}/tex/latex/${PN}" \
165 + --with-readline=$(usex readline gnu builtin) \
166 + $(use_with bitmap bitmap-terminals) \
167 + $(use_with cairo) \
168 + $(use_enable compat backwards-compatibility) \
169 + $(use_with doc tutorial) \
170 + $(use_with gd) \
171 + "$(use_with ggi ggi "${EPREFIX}/usr/$(get_libdir)")" \
172 + "$(use_with ggi xmi "${EPREFIX}/usr/$(get_libdir)")" \
173 + "$(use_with libcaca caca "${EPREFIX}/usr/$(get_libdir)")" \
174 + $(use_with libcerf) \
175 + $(use_with lua) \
176 + $(use_with svga linux-vga) \
177 + $(use_with X x) \
178 + --enable-stats \
179 + $(use_with qt4 qt qt4) \
180 + $(use_enable wxwidgets) \
181 + DIST_CONTACT="https://bugs.gentoo.org/" \
182 + EMACS=no
183 +}
184 +
185 +src_compile() {
186 + # Prevent access violations, see bug 201871
187 + export VARTEXFONTS="${T}/fonts"
188 +
189 + # We believe that the following line is no longer needed.
190 + # In case of problems file a bug report at bugs.gentoo.org.
191 + #addwrite /dev/svga:/dev/mouse:/dev/tts/0
192 +
193 + emake all
194 +
195 + if use doc; then
196 + # Avoid sandbox violation in epstopdf/ghostscript
197 + addpredict /var/cache/fontconfig
198 + emake -C docs gnuplot.pdf
199 + emake -C tutorial pdf
200 + fi
201 +}
202 +
203 +src_install () {
204 + emake DESTDIR="${D}" install
205 +
206 + dodoc BUGS ChangeLog NEWS PGPKEYS PORTING README*
207 + newdoc term/PostScript/README README-ps
208 + newdoc term/js/README README-js
209 + use lua && newdoc term/lua/README README-lua
210 + readme.gentoo_create_doc
211 +
212 + if use examples; then
213 + # Demo files
214 + insinto /usr/share/${PN}/${GP_VERSION}
215 + doins -r demo
216 + rm -f "${ED}"/usr/share/${PN}/${GP_VERSION}/demo/Makefile*
217 + rm -f "${ED}"/usr/share/${PN}/${GP_VERSION}/demo/binary*
218 + fi
219 +
220 + if use doc; then
221 + # Manual, tutorial, FAQ
222 + dodoc docs/gnuplot.pdf tutorial/{tutorial.dvi,tutorial.pdf} FAQ.pdf
223 + # Documentation for making PostScript files
224 + docinto psdoc
225 + dodoc docs/psdoc/{*.doc,*.tex,*.ps,*.gpi,README}
226 + fi
227 +}
228 +
229 +src_test() {
230 + GNUTERM="unknown" default_src_test
231 +}
232 +
233 +pkg_postinst() {
234 + use latex && texmf-update
235 + readme.gentoo_print_elog
236 +}
237 +
238 +pkg_postrm() {
239 + use latex && texmf-update
240 +}