Gentoo Archives: gentoo-commits

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