1 |
commit: 10b351c83a2f930a6a56de2d96176488d527e135 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 22 10:58:04 2022 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 22 10:58:31 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10b351c8 |
7 |
|
8 |
sci-visualization/gnuplot: Version bump to 5.4.3 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/831768 |
11 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
12 |
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> |
13 |
|
14 |
sci-visualization/gnuplot/Manifest | 1 + |
15 |
sci-visualization/gnuplot/gnuplot-5.4.3.ebuild | 209 +++++++++++++++++++++++++ |
16 |
2 files changed, 210 insertions(+) |
17 |
|
18 |
diff --git a/sci-visualization/gnuplot/Manifest b/sci-visualization/gnuplot/Manifest |
19 |
index 6886b9a4b1fe..813c59bcc914 100644 |
20 |
--- a/sci-visualization/gnuplot/Manifest |
21 |
+++ b/sci-visualization/gnuplot/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST gnuplot-5.4.1.tar.gz 5608076 BLAKE2B 7b2c30acd16b1aec3be9341c019449882a9231afe196bb05dc5d7925681296986de2be3463ca19d62ff1cea6dece0586b6bc8a54881c4fc2ec372635264ebb3d SHA512 2371830636d4c9ee93e9d6566dc2889e96ece3660b63ef4cfb6514e233510e5abaf4f93863bbe9a418f11db8e3b12a15242556aae52bb69591ad7d26e6581121 |
24 |
DIST gnuplot-5.4.2.tar.gz 5640202 BLAKE2B 42bdbe569a4dcd9e65010aff3d0b7428f1c3485bc64429ac0f2c4f157d43c4d640aa2b191430428ec01cb289bd1d43eb95b4167b5b9d236002d54e48b45c0a2a SHA512 e69ca74335cdd69c6013a254ac785dc67cc82713308460971cf6e0a66438716d8892a37344611d1841563efbc4b2b8c5692c13c7b06cff4f30f8d43e2ddfd7d4 |
25 |
+DIST gnuplot-5.4.3.tar.gz 5656008 BLAKE2B 44745bfc23f3c9f2d27499e0c1430ac32d7995fd12210d83996b87cd989cfdeca75848f0407ce25271f86b866405e726a56523c88a80a476015423cafb32b501 SHA512 fc35ab68a992acc8e35402c89cb7704c0efe117ec1fb272739d4378289d6c5a2e8f4b747b339fca916e559453547f2405863fb52038576883f0d5643a7220b5e |
26 |
|
27 |
diff --git a/sci-visualization/gnuplot/gnuplot-5.4.3.ebuild b/sci-visualization/gnuplot/gnuplot-5.4.3.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..8d395bb4e472 |
30 |
--- /dev/null |
31 |
+++ b/sci-visualization/gnuplot/gnuplot-5.4.3.ebuild |
32 |
@@ -0,0 +1,209 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+LUA_COMPAT=( lua5-{1,2,3,4} ) |
39 |
+WX_GTK_VER="3.0-gtk3" |
40 |
+ |
41 |
+inherit autotools lua-single readme.gentoo-r1 toolchain-funcs wxwidgets |
42 |
+ |
43 |
+DESCRIPTION="Command-line driven interactive plotting program" |
44 |
+HOMEPAGE="http://www.gnuplot.info/" |
45 |
+ |
46 |
+if [[ -z ${PV%%*9999} ]]; then |
47 |
+ inherit git-r3 |
48 |
+ EGIT_REPO_URI="https://git.code.sf.net/p/gnuplot/gnuplot-main" |
49 |
+ EGIT_BRANCH="master" |
50 |
+ MY_P="${PN}" |
51 |
+ EGIT_CHECKOUT_DIR="${WORKDIR}/${MY_P}" |
52 |
+else |
53 |
+ MY_P="${P/_/.}" |
54 |
+ SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz" |
55 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
56 |
+fi |
57 |
+ |
58 |
+S="${WORKDIR}/${MY_P}" |
59 |
+ |
60 |
+LICENSE="gnuplot" |
61 |
+SLOT="0" |
62 |
+IUSE="aqua bitmap cairo doc examples +gd ggi latex libcaca libcerf lua qt5 readline regis wxwidgets X" |
63 |
+REQUIRED_USE=" |
64 |
+ doc? ( gd ) |
65 |
+ lua? ( ${LUA_REQUIRED_USE} )" |
66 |
+ |
67 |
+RDEPEND=" |
68 |
+ cairo? ( |
69 |
+ x11-libs/cairo |
70 |
+ x11-libs/pango ) |
71 |
+ gd? ( >=media-libs/gd-2.0.35-r3:2=[png] ) |
72 |
+ ggi? ( media-libs/libggi ) |
73 |
+ latex? ( |
74 |
+ virtual/latex-base |
75 |
+ lua? ( |
76 |
+ dev-tex/pgf |
77 |
+ >=dev-texlive/texlive-latexrecommended-2008-r2 ) ) |
78 |
+ libcaca? ( media-libs/libcaca ) |
79 |
+ lua? ( ${LUA_DEPS} ) |
80 |
+ qt5? ( |
81 |
+ dev-qt/qtcore:5= |
82 |
+ dev-qt/qtgui:5= |
83 |
+ dev-qt/qtnetwork:5= |
84 |
+ dev-qt/qtprintsupport:5= |
85 |
+ dev-qt/qtsvg:5= |
86 |
+ dev-qt/qtwidgets:5= ) |
87 |
+ readline? ( sys-libs/readline:0= ) |
88 |
+ libcerf? ( sci-libs/libcerf ) |
89 |
+ wxwidgets? ( |
90 |
+ x11-libs/wxGTK:${WX_GTK_VER}[X] |
91 |
+ x11-libs/cairo |
92 |
+ x11-libs/pango |
93 |
+ x11-libs/gtk+:3 ) |
94 |
+ X? ( x11-libs/libXaw )" |
95 |
+ |
96 |
+DEPEND="${RDEPEND}" |
97 |
+ |
98 |
+BDEPEND=" |
99 |
+ virtual/pkgconfig |
100 |
+ doc? ( |
101 |
+ virtual/latex-base |
102 |
+ dev-texlive/texlive-latexextra |
103 |
+ dev-texlive/texlive-langgreek |
104 |
+ dev-texlive/texlive-mathscience |
105 |
+ app-text/ghostscript-gpl ) |
106 |
+ qt5? ( dev-qt/linguist-tools:5 )" |
107 |
+ |
108 |
+IDEPEND="latex? ( virtual/latex-base )" |
109 |
+ |
110 |
+GP_VERSION="${PV%.*}" |
111 |
+TEXMF="${EPREFIX}/usr/share/texmf-site" |
112 |
+ |
113 |
+PATCHES=( |
114 |
+ "${FILESDIR}"/${PN}-5.0.6-no-picins.patch |
115 |
+) |
116 |
+ |
117 |
+pkg_setup() { |
118 |
+ use lua && lua-single_pkg_setup |
119 |
+} |
120 |
+ |
121 |
+src_prepare() { |
122 |
+ default |
123 |
+ |
124 |
+ if [[ ${PV##*.} = 9999 ]]; then |
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 |
+ fi |
130 |
+ |
131 |
+ # Add special version identification as required by provision 2 |
132 |
+ # of the gnuplot license |
133 |
+ sed -i -e "1s/.*/& (Gentoo revision ${PR})/" PATCHLEVEL || die |
134 |
+ |
135 |
+ eautoreconf |
136 |
+ |
137 |
+ # Make sure we don't mix build & host flags. |
138 |
+ sed -i \ |
139 |
+ -e 's:@CPPFLAGS@:$(BUILD_CPPFLAGS):' \ |
140 |
+ -e 's:@CFLAGS@:$(BUILD_CFLAGS):' \ |
141 |
+ -e 's:@LDFLAGS@:$(BUILD_LDFLAGS):' \ |
142 |
+ -e 's:@CC@:$(CC_FOR_BUILD):' \ |
143 |
+ docs/Makefile.in || die |
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 |
+ use wxwidgets && setup-wxwidgets |
152 |
+ |
153 |
+ tc-export CC CXX #453174 |
154 |
+ tc-export_build_env BUILD_CC |
155 |
+ export CC_FOR_BUILD=${BUILD_CC} |
156 |
+ |
157 |
+ econf \ |
158 |
+ --with-texdir="${TEXMF}/tex/latex/${PN}" \ |
159 |
+ --with-readline=$(usex readline gnu builtin) \ |
160 |
+ $(use_with bitmap bitmap-terminals) \ |
161 |
+ $(use_with cairo) \ |
162 |
+ $(use_with gd) \ |
163 |
+ "$(use_with ggi ggi "${EPREFIX}/usr/$(get_libdir)")" \ |
164 |
+ "$(use_with libcaca caca "${EPREFIX}/usr/$(get_libdir)")" \ |
165 |
+ $(use_with libcerf) \ |
166 |
+ $(use_with lua) \ |
167 |
+ $(use_with regis) \ |
168 |
+ $(use_with X x) \ |
169 |
+ --enable-stats \ |
170 |
+ $(use_with qt5 qt qt5) \ |
171 |
+ $(use_enable wxwidgets) \ |
172 |
+ DIST_CONTACT="https://bugs.gentoo.org/" \ |
173 |
+ EMACS=no |
174 |
+} |
175 |
+ |
176 |
+src_compile() { |
177 |
+ # Prevent access violations, see bug 201871 |
178 |
+ export VARTEXFONTS="${T}/fonts" |
179 |
+ |
180 |
+ emake all |
181 |
+ |
182 |
+ if use doc; then |
183 |
+ # Avoid sandbox violation in epstopdf/ghostscript |
184 |
+ addpredict /var/cache/fontconfig |
185 |
+ if use cairo; then |
186 |
+ emake -C docs pdf |
187 |
+ else |
188 |
+ ewarn "Cannot build figures unless cairo is enabled." |
189 |
+ ewarn "Building documentation without figures." |
190 |
+ emake -C docs pdf_nofig |
191 |
+ mv docs/nofigures.pdf docs/gnuplot.pdf || die |
192 |
+ fi |
193 |
+ fi |
194 |
+} |
195 |
+ |
196 |
+src_install() { |
197 |
+ emake DESTDIR="${D}" install |
198 |
+ |
199 |
+ dodoc BUGS NEWS PGPKEYS README* RELEASE_NOTES |
200 |
+ newdoc term/PostScript/README README-ps |
201 |
+ newdoc term/js/README README-js |
202 |
+ use lua && newdoc term/lua/README README-lua |
203 |
+ |
204 |
+ local DOC_CONTENTS='Gnuplot no longer links against pdflib. You can |
205 |
+ use the "pdfcairo" terminal for PDF output.' |
206 |
+ use cairo || DOC_CONTENTS+=' It is available with USE="cairo".' |
207 |
+ use gd && DOC_CONTENTS+="\n\nFor font support in png/jpeg/gif output, |
208 |
+ you may have to set the GDFONTPATH and GNUPLOT_DEFAULT_GDFONT |
209 |
+ environment variables. See the FAQ file in /usr/share/doc/${PF}/ |
210 |
+ for more information." |
211 |
+ readme.gentoo_create_doc |
212 |
+ |
213 |
+ if use examples; then |
214 |
+ # Demo files |
215 |
+ insinto /usr/share/${PN}/${GP_VERSION} |
216 |
+ doins -r demo |
217 |
+ rm "${ED}"/usr/share/${PN}/${GP_VERSION}/demo/binary{1,2,3} || die |
218 |
+ rm "${ED}"/usr/share/${PN}/${GP_VERSION}/demo/plugin/*.{o,so} || die |
219 |
+ fi |
220 |
+ |
221 |
+ if use doc; then |
222 |
+ # Manual, FAQ |
223 |
+ dodoc docs/gnuplot.pdf FAQ.pdf |
224 |
+ # Documentation for making PostScript files |
225 |
+ docinto psdoc |
226 |
+ dodoc docs/psdoc/{*.doc,*.tex,*.ps,*.gpi,README} |
227 |
+ fi |
228 |
+} |
229 |
+ |
230 |
+src_test() { |
231 |
+ emake check GNUTERM="dumb" |
232 |
+} |
233 |
+ |
234 |
+pkg_postinst() { |
235 |
+ use latex && texmf-update |
236 |
+ readme.gentoo_print_elog |
237 |
+} |
238 |
+ |
239 |
+pkg_postrm() { |
240 |
+ use latex && texmf-update |
241 |
+} |