Diff pari-2.15.3 with a pari-2.15.4-r1

/usr/portage/sci-mathematics/pari/pari-2.15.4-r1.ebuild 2023-10-09 14:52:35.120368492 +0300
14 14
# The subslot is the value of $soname_num obtained from
15 15
# upstream's config/version script.
16 16
SLOT="0/8"
17
KEYWORDS="~alpha amd64 ~arm ~hppa ~mips ~ppc ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
17
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
18 18
IUSE="data doc examples fltk gmp test threads X"
19
REQUIRED_USE="fltk? ( !X )" # mutually exclusive plot implementations
19 20
RESTRICT="!test? ( test )"
20 21

  
21 22
BDEPEND="
......
31 32
	X? ( x11-libs/libX11:0= )"
32 33
RDEPEND="${DEPEND}"
33 34

  
35
# Both of these should be obsolete in the next version. I've sent the
36
# fltk CXXFLAGS bit upstream, and using --graphic=<foo> hopefully works
37
# around the automagic parts.
34 38
PATCHES=(
35
	"${FILESDIR}/${PN}"-2.9.4-ppc.patch
36 39
	"${FILESDIR}/${PN}"-2.9.4-fltk-detection.patch
37 40
	"${FILESDIR}/${PN}"-2.11.2-no-automagic.patch
38 41
)
......
72 75
	# expecting a compiler driver. See bugs 722090 and 871117.
73 76
	# DLLDFLAGS, on the other hand, is used exactly like LDFLAGS would
74 77
	# be in a less-weird build system.
78
	#
79
	# There's a lot of automagic involved in the graphics detection.  We
80
	# first pass --graphic=none, which disables some of it. We then pass
81
	# --graphic=fltk (or --graphic=X11) only if USE=fltk (or USE=X) is
82
	# set. This is a stronger hint to the build system than --with-fltk
83
	# would be, and importantly does not rely on the corresponding but
84
	# nonexistent(!) option option for X11.
75 85
	LD="" DLLD="$(tc-getCC)" DLLDFLAGS="${LDFLAGS}" ./Configure \
76 86
		--prefix="${EPREFIX}"/usr \
77 87
		--datadir="${EPREFIX}/usr/share/${PN}" \
......
81 91
		--with-readline="${EPREFIX}"/usr \
82 92
		--with-readline-lib="${EPREFIX}/usr/$(get_libdir)" \
83 93
		--with-ncurses-lib="${EPREFIX}/usr/$(get_libdir)" \
84
		$(use_with fltk) \
94
		--graphic=none \
95
		$(usex X --graphic=X11 "" "" "") \
96
		$(usex fltk --graphic=fltk "" "" "") \
85 97
		$(use_with gmp) \
86
		--without-qt \
87 98
		$(usex threads "--mt=pthread" "" "" "") \
88 99
		|| die "./Configure failed"
89 100
}
Thank you!