Diff gnuplot-6.0.3 with a gnuplot-6.1.9999

/usr/portage/sci-visualization/gnuplot/gnuplot-6.1.9999.ebuild 2026-01-17 11:18:06.853506238 +0300
1
# Copyright 1999-2025 Gentoo Authors
1
# Copyright 1999-2026 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
......
20 20
else
21 21
	MY_P="${P/_/.}"
22 22
	SRC_URI="https://downloads.sourceforge.net/gnuplot/${MY_P}.tar.gz"
23
	KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos ~x64-solaris"
23
	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos ~x64-solaris"
24 24
fi
25 25

  
26 26
S="${WORKDIR}/${MY_P}"
......
29 29
SLOT="0"
30 30
IUSE="amos aqua bitmap cairo doc examples +gd gpic latex libcaca libcerf lua metafont metapost qt6 readline regis tgif wxwidgets X"
31 31

  
32
REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )"
32
REQUIRED_USE="
33
	doc? ( gd )
34
	lua? ( ${LUA_REQUIRED_USE} )"
33 35

  
34 36
RDEPEND="
35 37
	amos? ( dev-libs/openspecfun )
......
90 92

  
91 93
	if [[ ${PV##*.} = 9999 ]]; then
92 94
		local dir
93
		for dir in config demo m4 term tutorial; do
95
		for dir in config demo m4 term; do
94 96
			emake -C "$dir" -f Makefile.am.in Makefile.am
95 97
		done
96 98
	fi
......
142 144
		$(use_enable wxwidgets)
143 145
		DIST_CONTACT="https://bugs.gentoo.org/"
144 146
		EMACS=no
145
		# pdflatex fails in titlepag.tex: "Argument of  has an extra }."
146
		# Work around this by using lualatex to build the user manual,
147
		# see release notes of gnuplot-6.0.3
148
		PDFLATEX=lualatex
149 147
	)
150 148

  
151 149
	econf "${myconf[@]}"
......
159 157

  
160 158
	emake all
161 159

  
162
	# Building the documentation is broken for some configurations.
163
	# Install the pre-built gnuplot.pdf instead. #577828 #689894 #960528
164
	#if use doc; then
165
	#	if use cairo; then
166
	#		emake -C docs pdf
167
	#	else
168
	#		ewarn "Cannot build figures unless cairo is enabled."
169
	#		ewarn "Building documentation without figures."
170
	#		emake -C docs pdf_nofig
171
	#		mv docs/nofigures.pdf docs/gnuplot.pdf || die
172
	#	fi
173
	#fi
160
	if use doc; then
161
		if use cairo; then
162
			emake -C docs pdf
163
		else
164
			ewarn "Cannot build figures unless cairo is enabled."
165
			ewarn "Building documentation without figures."
166
			emake -C docs pdf_nofig
167
			mv docs/nofigures.pdf docs/gnuplot.pdf || die
168
		fi
169
	fi
174 170
}
175 171

  
176 172
src_install() {
Thank you!