Сравнение atari-fdisk-0.7.1.5.4 с atari-fdisk-0.7.1.5.4-r1

/usr/portage/sys-fs/atari-fdisk/atari-fdisk-0.7.1.5.4-r1.ebuild 2023-10-09 14:52:35.500368502 +0300
3 3

  
4 4
EAPI=7
5 5

  
6
inherit toolchain-funcs
6
inherit multilib toolchain-funcs
7 7

  
8 8
MY_PV=$(ver_cut 1-3)
9 9
DEB_PV=$(ver_cut 4-5)
......
14 14

  
15 15
LICENSE="GPL-2"
16 16
SLOT="0"
17
# Note: The code assumes sizeof(long) == 4 everywhere.  If you try to
18
# use this on 64bit systems (where sizeof(long) == 8), then misbehavior
19
# and memory corruption will ensue.
20
KEYWORDS="-* ~m68k x86"
17
# Note: The code assumes sizeof(long) == 4 everywhere. 64-bit platforms need to
18
# build a 32-bit binary below to avoid memory corruption issues.
19
KEYWORDS="~amd64 ~m68k ~x86"
21 20

  
22 21
PATCHES=(
23 22
	"${FILESDIR}"/${PN}-0.7.1.5.4-prompt-logic.patch
24 23
	"${FILESDIR}"/${PN}-0.7.1.5.4-gcc-5-inline.patch
24
	"${FILESDIR}"/${PN}-0.7.1.5.4-globals.patch
25 25
)
26 26

  
27
src_configure() {
28
	if use amd64; then
29
		multilib_toolchain_setup x86
30
	else
31
		tc-export CC LD
32
	fi
33
}
34

  
27 35
src_compile() {
28 36
	emake \
37
		CC="${CC}" \
38
		LD="${LD}" \
29 39
		CFLAGS="${CFLAGS}" \
30 40
		LDFLAGS="${LDFLAGS}" \
31
		CC="$(tc-getCC)" \
32 41
		COMPILE_ARCH=m68k
33 42
}
34 43

  
......
37 46
	doman debian/atari-fdisk.8
38 47

  
39 48
	into /
40
	if [[ $(tc-arch) == "m68k" ]] ; then
41
		dosbin fdisk
42
		dosym fdisk /sbin/atari-fdisk
43
		dosym atari-fdisk.8 /usr/share/man/man8/fdisk.8
44
	else
45
		dosbin atari-fdisk
46
	fi
49
	dosbin atari-fdisk
47 50
}
Спасибо!