Diff attr-2.4.48-r4 with a attr-2.4.48-r5

/usr/portage/sys-apps/attr/attr-2.4.48-r5.ebuild 2020-12-20 19:39:00.000000000 +0300
1
# Copyright 1999-2021 Gentoo Authors
1
# Copyright 1999-2020 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI="7"
5 5

  
6 6
inherit flag-o-matic libtool toolchain-funcs multilib-minimal usr-ldscript
7 7

  
8
if [[ ${PV} == 9999 ]] ; then
9
	EGIT_REPO_URI="https://git.savannah.gnu.org/git/${PN}.git"
10

  
11
	inherit autotools git-r3
12
else
13
	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
14
	SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
15
fi
16

  
8 17
DESCRIPTION="Extended attributes tools"
9 18
HOMEPAGE="https://savannah.nongnu.org/projects/attr"
10
SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
11

  
12 19
LICENSE="LGPL-2.1"
13 20
SLOT="0"
14
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
21

  
15 22
IUSE="debug nls static-libs"
16 23

  
17 24
BDEPEND="nls? ( sys-devel/gettext )"
18 25

  
19
PATCHES=(
20
	"${FILESDIR}/${P}-perl-5.26.patch"
21
	"${FILESDIR}/${P}-switch-back-to-syscall.patch"
22
)
26
src_prepare() {
27
	local PATCHES=(
28
		"${FILESDIR}/${P}-perl-5.26.patch"
29
		"${FILESDIR}/${P}-switch-back-to-syscall.patch"
30
	)
31

  
32
	default
33

  
34
	if [[ ${PV} == 9999 ]] ; then
35
		po/update-potfiles || die
36
		eautopoint
37
		eautoreconf
38
	else
39
		elibtoolize #580792
40
	fi
41
}
23 42

  
24
pkg_setup() {
43
src_configure() {
25 44
	# Remove -flto* from flags as this breaks binaries (bug #644048)
26 45
	filter-flags -flto*
27 46
	append-ldflags "-Wl,--no-gc-sections" #700116
28
}
29

  
30
src_prepare() {
31
	default
32
	elibtoolize #580792
47
	tc-ld-disable-gold #644048
48
	append-lfs-flags #760857
49
	multilib-minimal_src_configure
33 50
}
34 51

  
35 52
multilib_src_configure() {
36
	unset PLATFORM #184564
37
	export OPTIMIZER=${CFLAGS}
38
	export DEBUG=-DNDEBUG
39

  
40
	tc-ld-disable-gold #644048
41

  
42 53
	local myeconfargs=(
43 54
		--bindir="${EPREFIX}"/bin
44 55
		--enable-shared
Thank you!