Diff gnuplot-6.0.3 with a gnuplot-6.1.9999

/usr/portage/sci-visualization/gnuplot/gnuplot-6.1.9999.ebuild 2025-12-01 18:18:04.705253301 +0300
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 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
23
	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~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
......
121 123
	tc-export_build_env BUILD_CC
122 124
	export CC_FOR_BUILD=${BUILD_CC}
123 125

  
124
	local myconf=(
125
		--with-texdir="${TEXMF}/tex/latex/${PN}"
126
		--with-readline=$(usex readline gnu builtin)
127
		$(use_with amos)
128
		$(use_with bitmap bitmap-terminals)
129
		$(use_with cairo)
130
		$(use_with gd)
131
		$(use_with gpic)
132
		"$(use_with libcaca caca "${EPREFIX}/usr/$(get_libdir)")"
133
		$(use_with libcerf)
134
		$(use_with lua)
135
		$(use_with metafont)
136
		$(use_with metapost)
137
		$(use_with qt6 qt qt6)
138
		$(use_with regis)
139
		$(use_with tgif)
140
		$(use_with X x)
141
		--enable-stats
142
		$(use_enable wxwidgets)
143
		DIST_CONTACT="https://bugs.gentoo.org/"
126
	econf \
127
		--with-texdir="${TEXMF}/tex/latex/${PN}" \
128
		--with-readline=$(usex readline gnu builtin) \
129
		$(use_with amos) \
130
		$(use_with bitmap bitmap-terminals) \
131
		$(use_with cairo) \
132
		$(use_with gd) \
133
		$(use_with gpic) \
134
		"$(use_with libcaca caca "${EPREFIX}/usr/$(get_libdir)")" \
135
		$(use_with libcerf) \
136
		$(use_with lua) \
137
		$(use_with metafont) \
138
		$(use_with metapost) \
139
		$(use_with qt6 qt qt6) \
140
		$(use_with regis) \
141
		$(use_with tgif) \
142
		$(use_with X x) \
143
		--enable-stats \
144
		$(use_enable wxwidgets) \
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
	)
150

  
151
	econf "${myconf[@]}"
152 147
}
153 148

  
154 149
src_compile() {
155
	# Prevent access violations #201871
156
	local -x VARTEXFONTS="${T}/fonts"
157
	# Work around luatex braindamage #950021
158
	local -x TEXMFCACHE="${T}/texmf-var" TEXMFVAR="${T}/texmf-var"
150
	# Prevent access violations, see bug 201871
151
	local -x TEXMFVAR="${T}" TEXMFCACHE="${T}" VARTEXFONTS="${T}/fonts"
159 152

  
160 153
	emake all
161 154

  
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
155
	if use doc; then
156
		if use cairo; then
157
			emake -C docs pdf
158
		else
159
			ewarn "Cannot build figures unless cairo is enabled."
160
			ewarn "Building documentation without figures."
161
			emake -C docs pdf_nofig
162
			mv docs/nofigures.pdf docs/gnuplot.pdf || die
163
		fi
164
	fi
174 165
}
175 166

  
176 167
src_install() {
Thank you!