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