1 |
commit: 9aca4003cdbd5845334204a561f22f47812f7796 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 29 21:20:34 2018 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 29 21:21:35 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9aca4003 |
7 |
|
8 |
sci-visualization/gnuplot: Version bump. |
9 |
|
10 |
Package-Manager: Portage-2.3.48, Repoman-2.3.10 |
11 |
|
12 |
sci-visualization/gnuplot/Manifest | 1 + |
13 |
sci-visualization/gnuplot/gnuplot-5.2.4.ebuild | 210 +++++++++++++++++++++++++ |
14 |
2 files changed, 211 insertions(+) |
15 |
|
16 |
diff --git a/sci-visualization/gnuplot/Manifest b/sci-visualization/gnuplot/Manifest |
17 |
index e141324658a..03224b5074d 100644 |
18 |
--- a/sci-visualization/gnuplot/Manifest |
19 |
+++ b/sci-visualization/gnuplot/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST gnuplot-5.0.7.tar.gz 5100186 BLAKE2B 97fcefa12148fc2b581113c5283eb09217e87858ae293931758d0bb595fd7aaca4671216956211a3d30492be35f91809a975c9c80c25861c477e9235a8b5b309 SHA512 5d7241dc1472f87af8632110a1e88f83b5ea3f41e1bc8c89a45dc4662a3071d91a25bf9ae5196a2b8bef09c8079c22f635bb947c02def3416d78880d61eea919 |
22 |
DIST gnuplot-5.2.2.tar.gz 5282973 BLAKE2B a15c72aaa8d62079ea3e9f20fa9fe3aaaf6036cf8dc67a784dee79ac7bd0ad7bfac754c9583b50c46deeef2f1bcd920d1094a5d1e19a1dae75405de8c3249621 SHA512 51d5b2234dae358580cc2794ed63f8a5b950baf73edc5362f5bb18d77e8066c3c010239c3b29840db11e5936cb9381bb57193de751bd274af5547a45d6d88b0b |
23 |
+DIST gnuplot-5.2.4.tar.gz 5292321 BLAKE2B a2eee046de6707ffcaf1a5b175601c18da14db350095a949deed0e241d8476c177e2cecb35eab3059234231ad4be42e5e8a9e3083651313cc4b5997156813c67 SHA512 b276e379fe5e493a176750d9ccd84a8b02c8784b1d8701dc4252945a7e9e0455eebba0085d0d98824a4acf5da0def3b71ad3362803365a32e7c29f18af7854bb |
24 |
|
25 |
diff --git a/sci-visualization/gnuplot/gnuplot-5.2.4.ebuild b/sci-visualization/gnuplot/gnuplot-5.2.4.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..8c07cfc760f |
28 |
--- /dev/null |
29 |
+++ b/sci-visualization/gnuplot/gnuplot-5.2.4.ebuild |
30 |
@@ -0,0 +1,210 @@ |
31 |
+# Copyright 1999-2018 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+inherit autotools flag-o-matic readme.gentoo-r1 toolchain-funcs wxwidgets |
37 |
+ |
38 |
+DESCRIPTION="Command-line driven interactive plotting program" |
39 |
+HOMEPAGE="http://www.gnuplot.info/" |
40 |
+ |
41 |
+if [[ -z ${PV%%*9999} ]]; then |
42 |
+ inherit git-r3 |
43 |
+ EGIT_REPO_URI="https://git.code.sf.net/p/gnuplot/gnuplot-main" |
44 |
+ EGIT_BRANCH="branch-5-2-stable" |
45 |
+ MY_P="${PN}" |
46 |
+ EGIT_CHECKOUT_DIR="${WORKDIR}/${MY_P}" |
47 |
+else |
48 |
+ MY_P="${P/_/.}" |
49 |
+ SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz" |
50 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~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" |
51 |
+fi |
52 |
+ |
53 |
+LICENSE="gnuplot bitmap? ( free-noncomm )" |
54 |
+SLOT="0" |
55 |
+IUSE="aqua bitmap cairo compat doc examples +gd ggi latex libcaca libcerf lua qt5 readline regis svga wxwidgets X" |
56 |
+ |
57 |
+RDEPEND=" |
58 |
+ cairo? ( |
59 |
+ x11-libs/cairo |
60 |
+ x11-libs/pango ) |
61 |
+ gd? ( >=media-libs/gd-2.0.35-r3:2=[png] ) |
62 |
+ ggi? ( media-libs/libggi ) |
63 |
+ latex? ( |
64 |
+ virtual/latex-base |
65 |
+ lua? ( |
66 |
+ dev-tex/pgf |
67 |
+ >=dev-texlive/texlive-latexrecommended-2008-r2 ) ) |
68 |
+ libcaca? ( media-libs/libcaca ) |
69 |
+ lua? ( dev-lang/lua:0 ) |
70 |
+ qt5? ( dev-qt/qtcore:5= |
71 |
+ dev-qt/qtgui:5= |
72 |
+ dev-qt/qtnetwork:5= |
73 |
+ dev-qt/qtprintsupport:5= |
74 |
+ dev-qt/qtsvg:5= |
75 |
+ dev-qt/qtwidgets:5= ) |
76 |
+ readline? ( sys-libs/readline:0= ) |
77 |
+ libcerf? ( sci-libs/libcerf ) |
78 |
+ svga? ( media-libs/svgalib ) |
79 |
+ wxwidgets? ( |
80 |
+ x11-libs/wxGTK:3.0[X] |
81 |
+ x11-libs/cairo |
82 |
+ x11-libs/pango |
83 |
+ x11-libs/gtk+:2 ) |
84 |
+ X? ( x11-libs/libXaw )" |
85 |
+DEPEND="${RDEPEND} |
86 |
+ virtual/pkgconfig |
87 |
+ doc? ( |
88 |
+ virtual/latex-base |
89 |
+ dev-texlive/texlive-latexextra |
90 |
+ app-text/ghostscript-gpl ) |
91 |
+ qt5? ( dev-qt/linguist-tools:5 )" |
92 |
+ |
93 |
+S="${WORKDIR}/${MY_P}" |
94 |
+ |
95 |
+GP_VERSION="${PV%.*}" |
96 |
+E_SITEFILE="lisp/50${PN}-gentoo.el" |
97 |
+TEXMF="${EPREFIX}/usr/share/texmf-site" |
98 |
+ |
99 |
+src_prepare() { |
100 |
+ eapply "${FILESDIR}"/${PN}-5.0.1-fix-underlinking.patch |
101 |
+ eapply "${FILESDIR}"/${PN}-5.0.6-no-picins.patch |
102 |
+ eapply "${FILESDIR}"/${PN}-5.2.2-regis.patch |
103 |
+ eapply_user |
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 |
+ fi |
111 |
+ |
112 |
+ # Add special version identification as required by provision 2 |
113 |
+ # of the gnuplot license |
114 |
+ sed -i -e "1s/.*/& (Gentoo revision ${PR})/" PATCHLEVEL || die |
115 |
+ |
116 |
+ DOC_CONTENTS='Gnuplot no longer links against pdflib, see the ChangeLog |
117 |
+ for details. You can use the "pdfcairo" terminal for PDF output.' |
118 |
+ use cairo || DOC_CONTENTS+=' It is available with USE="cairo".' |
119 |
+ use svga && DOC_CONTENTS+='\n\nIn order to enable ordinary users to use |
120 |
+ SVGA console graphics, gnuplot needs to be set up as setuid root. |
121 |
+ Please note that this is usually considered to be a security hazard. |
122 |
+ As root, manually "chmod u+s /usr/bin/gnuplot".' |
123 |
+ use gd && DOC_CONTENTS+='\n\nFor font support in png/jpeg/gif output, |
124 |
+ you may have to set the GDFONTPATH and GNUPLOT_DEFAULT_GDFONT |
125 |
+ environment variables. See the FAQ file in /usr/share/doc/${PF}/ |
126 |
+ for more information.' |
127 |
+ |
128 |
+ eautoreconf |
129 |
+ |
130 |
+ # Make sure we don't mix build & host flags. |
131 |
+ sed -i \ |
132 |
+ -e 's:@CPPFLAGS@:$(BUILD_CPPFLAGS):' \ |
133 |
+ -e 's:@CFLAGS@:$(BUILD_CFLAGS):' \ |
134 |
+ -e 's:@LDFLAGS@:$(BUILD_LDFLAGS):' \ |
135 |
+ -e 's:@CC@:$(CC_FOR_BUILD):' \ |
136 |
+ docs/Makefile.in || die |
137 |
+} |
138 |
+ |
139 |
+src_configure() { |
140 |
+ if ! use latex; then |
141 |
+ sed -i -e '/SUBDIRS/s/LaTeX//' share/Makefile.in || die |
142 |
+ fi |
143 |
+ |
144 |
+ if use wxwidgets; then |
145 |
+ WX_GTK_VER="3.0" |
146 |
+ need-wxwidgets unicode |
147 |
+ fi |
148 |
+ |
149 |
+ tc-export CC CXX #453174 |
150 |
+ tc-export_build_env BUILD_CC |
151 |
+ export CC_FOR_BUILD=${BUILD_CC} |
152 |
+ |
153 |
+ use qt5 && append-cxxflags -std=c++11 |
154 |
+ |
155 |
+ econf \ |
156 |
+ --with-texdir="${TEXMF}/tex/latex/${PN}" \ |
157 |
+ --with-readline=$(usex readline gnu builtin) \ |
158 |
+ $(use_with bitmap bitmap-terminals) \ |
159 |
+ $(use_with cairo) \ |
160 |
+ $(use_enable compat backwards-compatibility) \ |
161 |
+ $(use_with doc tutorial) \ |
162 |
+ $(use_with gd) \ |
163 |
+ "$(use_with ggi ggi "${EPREFIX}/usr/$(get_libdir)")" \ |
164 |
+ "$(use_with ggi xmi "${EPREFIX}/usr/$(get_libdir)")" \ |
165 |
+ "$(use_with libcaca caca "${EPREFIX}/usr/$(get_libdir)")" \ |
166 |
+ $(use_with libcerf) \ |
167 |
+ $(use_with lua) \ |
168 |
+ $(use_with regis) \ |
169 |
+ $(use_with svga linux-vga) \ |
170 |
+ $(use_with X x) \ |
171 |
+ --enable-stats \ |
172 |
+ $(use_with qt5 qt qt5) \ |
173 |
+ $(use_enable wxwidgets) \ |
174 |
+ DIST_CONTACT="https://bugs.gentoo.org/" \ |
175 |
+ EMACS=no |
176 |
+} |
177 |
+ |
178 |
+src_compile() { |
179 |
+ # Prevent access violations, see bug 201871 |
180 |
+ export VARTEXFONTS="${T}/fonts" |
181 |
+ |
182 |
+ # We believe that the following line is no longer needed. |
183 |
+ # In case of problems file a bug report at bugs.gentoo.org. |
184 |
+ #addwrite /dev/svga:/dev/mouse:/dev/tts/0 |
185 |
+ |
186 |
+ emake all |
187 |
+ |
188 |
+ if use doc; then |
189 |
+ # Avoid sandbox violation in epstopdf/ghostscript |
190 |
+ addpredict /var/cache/fontconfig |
191 |
+ if use cairo; then |
192 |
+ emake -C docs pdf |
193 |
+ else |
194 |
+ ewarn "Cannot build figures unless cairo is enabled." |
195 |
+ ewarn "Building documentation without figures." |
196 |
+ emake -C docs pdf_nofig |
197 |
+ mv docs/nofigures.pdf docs/gnuplot.pdf || die |
198 |
+ fi |
199 |
+ emake -C tutorial pdf |
200 |
+ fi |
201 |
+} |
202 |
+ |
203 |
+src_install () { |
204 |
+ emake DESTDIR="${D}" install |
205 |
+ |
206 |
+ dodoc BUGS ChangeLog NEWS PGPKEYS README* RELEASE_NOTES TODO |
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 |
+} |