Сравнение cdrtools-3.02_alpha09-r3 с cdrtools-3.02_alpha09-r4

/usr/portage/app-cdr/cdrtools/cdrtools-3.02_alpha09-r4.ebuild 2023-10-09 14:52:28.212368318 +0300
13 13

  
14 14
LICENSE="GPL-2 LGPL-2.1 CDDL-Schily"
15 15
SLOT="0"
16
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
16
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
17 17
IUSE="acl caps nls unicode selinux"
18 18

  
19 19
BDEPEND="
......
44 44
	echo "${os}"
45 45
}
46 46

  
47
symlink_build_rules() {
48
	local cputype="$1"
49
	pushd "${S}"/RULES > /dev/null || die
50
	ln -sf i586-linux-cc.rul       "${cputype}"-linux-cc.rul      || die
51
	ln -sf i586-linux-clang.rul    "${cputype}"-linux-clang.rul   || die
52
	ln -sf i586-linux-clang32.rul  "${cputype}"-linux-clang32.rul || die
53
	ln -sf i586-linux-clang64.rul  "${cputype}"-linux-clang64.rul || die
54
	ln -sf i586-linux-gcc.rul      "${cputype}"-linux-gcc.rul     || die
55
	ln -sf i586-linux-gcc32.rul    "${cputype}"-linux-gcc32.rul   || die
56
	ln -sf i586-linux-gcc64.rul    "${cputype}"-linux-gcc64.rul   || die
57
	popd > /dev/null || die
58
}
59

  
47 60
src_prepare() {
48 61
	default
49 62

  
......
71 84
		$(find ./ -type f -exec grep -l '^include.\+rules\.lib' '{}' '+') \
72 85
		|| die "sed rules"
73 86

  
87
	# Don't quote $(MAKE)
88
	sed -i -e 's|"$(MAKE)"|$(MAKE)|' \
89
		$(find ./RULES -type f -exec grep -l '"$(MAKE)"' '{}' '+') \
90
		|| die "sed RULES/"
91

  
74 92
	# Enable verbose build.
75 93
	sed -i -e '/@echo.*==>.*;/s:@echo[^;]*;:&set -x;:' \
76 94
		RULES/*.rul RULES/rules.prg RULES/rules.inc \
......
80 98
	cd "${S}"/RULES || die
81 99
	local tcCC="$(tc-getCC)"
82 100
	local tcCXX="$(tc-getCXX)"
83
	# fix RISC-V build err, bug 811375
84
	ln -s i586-linux-cc.rul riscv-linux-cc.rul || die
85
	ln -s i586-linux-cc.rul riscv64-linux-cc.rul || die
86 101

  
87 102
	sed -i -e "/cc-config.sh/s|\$(C_ARCH:%64=%) \$(CCOM_DEF)|${tcCC} ${tcCC}|" \
88 103
		rules1.top || die "sed rules1.top"
......
94 109
	sed -i -e "s|^#\(CONFFLAGS +=\).*|\1\t-cc=${tcCC}|" \
95 110
		rules.cnf || die "sed rules.cnf"
96 111

  
112
	# Add support for arm64
113
	symlink_build_rules aarch64_be
114

  
115
	# fix RISC-V build err, bug 811375
116
	symlink_build_rules riscv
117
	symlink_build_rules riscv64
118

  
119
	# Add support for loong
120
	symlink_build_rules loongarch64
121

  
97 122
	# Schily make setup.
98 123
	cd "${S}"/DEFAULTS || die
99 124
	local os=$(cdrtools_os)
Спасибо!