Сравнение texinfo-6.8 с texinfo-7.0.2

/usr/portage/sys-apps/texinfo/texinfo-7.0.2.ebuild 2023-10-09 14:52:35.412368499 +0300
5 5
# virtual/texi2dvi package to pull in all the right deps.  The tool is not
6 6
# usable out-of-the-box because it requires the large tex packages.
7 7

  
8
EAPI=7
8
EAPI=8
9 9

  
10 10
inherit flag-o-matic toolchain-funcs
11 11

  
12 12
DESCRIPTION="The GNU info program and utilities"
13 13
HOMEPAGE="https://www.gnu.org/software/texinfo/"
14
SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
14

  
15
if [[ ${PV} == 9999 ]]; then
16
	inherit git-r3
17
	EGIT_REPO_URI="https://git.savannah.gnu.org/git/texinfo.git"
18
	REGEN_BDEPEND="
19
		>=sys-devel/autoconf-2.62
20
		>=sys-devel/automake-1.16
21
		sys-devel/libtool
22
	"
23
elif [[ $(ver_cut 3) -ge 90 || $(ver_cut 4) -ge 90 ]] ; then
24
	SRC_URI="https://alpha.gnu.org/gnu/${PN}/${P}.tar.xz"
25
	REGEN_BDEPEND=""
26
else
27
	SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
28
	KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
29
	REGEN_BDEPEND=""
30
fi
15 31

  
16 32
LICENSE="GPL-3+"
17 33
SLOT="0"
18
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
19 34
IUSE="nls +standalone static"
20 35

  
21 36
RDEPEND="
22 37
	!=app-text/tetex-2*
23
	>=sys-libs/ncurses-5.2-r2:0=
24
	standalone? ( dev-lang/perl )
25
	!standalone?  ( dev-lang/perl:= )
26
	nls? ( virtual/libintl )"
38
	>=sys-libs/ncurses-5.2-r2:=
39
	virtual/perl-Data-Dumper
40
	virtual/perl-Encode
41
	standalone? ( >=dev-lang/perl-5.8.1 )
42
	!standalone?  ( >=dev-lang/perl-5.8.1:= )
43
	nls? ( virtual/libintl )
44
"
27 45
DEPEND="${RDEPEND}"
28
BDEPEND="nls? ( >=sys-devel/gettext-0.19.6 )"
29

  
30
PATCHES=(
31
	"${FILESDIR}/${P}-undo-gnulib-nonnul.patch"
32
)
46
BDEPEND="
47
	${REGEN_BDEPEND}
48
	nls? ( >=sys-devel/gettext-0.19.6 )
49
"
33 50

  
34 51
src_prepare() {
35 52
	default
36 53

  
54
	if [[ ${PV} == 9999 ]]; then
55
		./autogen.sh || die
56
	fi
57

  
58
	# Needed if a patch touches install-info.c
59
	#touch man/install-info.1 || die
60

  
37 61
	if use prefix ; then
38 62
		sed -i -e '1c\#!/usr/bin/env sh' util/texi2dvi util/texi2pdf || die
39
		touch doc/{texi2dvi,texi2pdf,pdftexi2dvi}.1
63
		touch {doc,man}/{texi2dvi,texi2pdf,pdftexi2dvi}.1 || die
40 64
	fi
41 65
}
42 66

  
43 67
src_configure() {
44
	# Respect compiler and CPPFLAGS/CFLAGS/LDFLAGS for Perl extensions. #622576
45
	local -x PERL_EXT_CC="$(tc-getCC)" PERL_EXT_CPPFLAGS="${CPPFLAGS}" PERL_EXT_CFLAGS="${CFLAGS}" PERL_EXT_LDFLAGS="${LDFLAGS}"
68
	# Respect compiler and CPPFLAGS/CFLAGS/LDFLAGS for Perl extensions
69
	# bug #622576
70
	local -x PERL_EXT_CC="$(tc-getCC)" PERL_EXT_CPPFLAGS="${CPPFLAGS}"
71
	local -x PERL_EXT_CFLAGS="${CFLAGS}" PERL_EXT_LDFLAGS="${LDFLAGS}"
46 72

  
47 73
	use static && append-ldflags -static
74

  
48 75
	local myeconfargs=(
49 76
		--cache-file="${S}"/config.cache
50 77
		$(use_enable nls)
78
		$(use_enable !standalone perl-xs)
51 79
	)
52 80

  
53
	if use standalone ; then
54
		myeconfargs+=(
55
			--disable-perl-xs
56
		)
57
	else
58
		myeconfargs+=(
59
			--enable-perl-xs
60
		)
61
	fi
62

  
63 81
	econf "${myeconfargs[@]}"
64 82
}
Спасибо!