Сравнение diffutils-3.8 с diffutils-3.9

/usr/portage/sys-apps/diffutils/diffutils-3.9.ebuild 2023-10-09 14:52:35.364368498 +0300
1 1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6 6
VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/diffutils.asc
7 7
inherit flag-o-matic verify-sig
8 8

  
9 9
DESCRIPTION="Tools to make diffs and compare files"
10 10
HOMEPAGE="https://www.gnu.org/software/diffutils/"
11
SRC_URI="mirror://gnu/diffutils/${P}.tar.xz
12
	https://alpha.gnu.org/gnu/diffutils/${P}.tar.xz
13
	verify-sig? (
14
		mirror://gnu/diffutils/${P}.tar.xz.sig
15
		https://alpha.gnu.org/gnu/diffutils/${P}.tar.xz.sig
16
	)"
11

  
12
if [[ ${PV} == *_p* ]] ; then
13
	# Subscribe to the 'platform-testers' ML to find these.
14
	# Useful to test on our especially more niche arches and report issues upstream.
15
	MY_COMMIT="43-2d50"
16
	MY_P=${PN}-$(ver_cut 1-2).${MY_COMMIT}
17
	SRC_URI="https://meyering.net/diff/${MY_P}.tar.xz"
18
	SRC_URI+=" verify-sig? ( https://meyering.net/diff/${MY_P}.tar.xz.sig )"
19
	S="${WORKDIR}"/${MY_P}
20
else
21
	SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
22
	SRC_URI+=" verify-sig? ( mirror://gnu/${PN}/${P}.tar.xz.sig )"
23
	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"
24
fi
17 25

  
18 26
LICENSE="GPL-2"
19 27
SLOT="0"
20
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"
21 28
IUSE="nls static"
22 29

  
23
BDEPEND="nls? ( sys-devel/gettext )
24
	verify-sig? ( sec-keys/openpgp-keys-diffutils )"
30
BDEPEND="
31
	nls? ( sys-devel/gettext )
32
	verify-sig? ( sec-keys/openpgp-keys-diffutils )
33
"
25 34

  
26 35
PATCHES=(
27
	"${FILESDIR}/ppc-musl.patch"
28
	"${FILESDIR}/loong-fix-build.patch"
36
	"${FILESDIR}"/${P}-make-4.4-test-color.patch
29 37
)
30 38

  
31
src_prepare() {
32
	default
33

  
34
	# touch generated files after patching m4, to avoid activating maintainer
35
	# mode
36
	# remove when loong-fix-build.patch is no longer necessary
37
	touch ./aclocal.m4 lib/config.hin ./configure || die
38
	find . -name Makefile.in -exec touch {} + || die
39
}
40

  
41 39
src_configure() {
42 40
	use static && append-ldflags -static
43 41

  
......
48 46
	use elibc_glibc && export gl_cv_func_getopt_gnu=yes
49 47

  
50 48
	local myeconfargs=(
49
		# Interferes with F_S (sets F_S=2)
50
		--disable-gcc-warnings
51 51
		--with-packager="Gentoo"
52 52
		--with-packager-version="${PVR}"
53 53
		--with-packager-bug-reports="https://bugs.gentoo.org/"
Спасибо!