Diff flac-compat-1.3.4 with a flac-compat-1.4.3

/usr/portage/media-libs/flac-compat/flac-compat-1.4.3.ebuild 2025-12-01 18:18:04.455256556 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2025 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6
inherit multilib-minimal
6
inherit flag-o-matic multilib-minimal
7 7

  
8 8
DESCRIPTION="Free lossless audio encoder and decoder"
9 9
HOMEPAGE="https://xiph.org/flac/"
......
11 11
S="${WORKDIR}/${P/-compat}"
12 12

  
13 13
LICENSE="BSD FDL-1.2 GPL-2 LGPL-2.1"
14
SLOT="8.3.0"
14
SLOT="12.1.0"
15 15
KEYWORDS="amd64 arm arm64 x86"
16
IUSE="+cxx ogg cpu_flags_x86_sse"
16
IUSE="+cxx ogg cpu_flags_x86_avx"
17 17

  
18 18
RDEPEND="
19
	!media-libs/flac:0/0
20
	ogg? ( media-libs/libogg[${MULTILIB_USEDEP}] )"
19
	!media-libs/flac:0/10-12
20
	ogg? ( media-libs/libogg[${MULTILIB_USEDEP}] )
21
"
21 22
DEPEND="${RDEPEND}"
22 23
BDEPEND="
23 24
	app-arch/xz-utils
24 25
	sys-devel/gettext
25 26
	virtual/pkgconfig
26
	abi_x86_32? ( dev-lang/nasm )"
27
	abi_x86_32? ( dev-lang/nasm )
28
"
27 29

  
28 30
multilib_src_configure() {
31
	# -fipa-pta exposes a test failure in replaygain_analysis (https://gcc.gnu.org/PR115533)
32
	# TODO: Replace with some -ffp-contract= option?
33
	append-flags $(test-flags-CC -fno-ipa-pta)
34

  
29 35
	local myeconfargs=(
30
		--disable-debug
31
		--disable-altivec
32
		--disable-vsx
33 36
		--disable-doxygen-docs
34 37
		--disable-examples
35
		--disable-xmms-plugin
36
		$(use_enable cpu_flags_x86_sse sse)
38
		--disable-valgrind-testing
39
		--disable-version-from-git
40

  
41
		$(use_enable cpu_flags_x86_avx avx)
37 42
		$(use_enable cxx cpplibs)
43
		--disable-debug
38 44
		$(use_enable ogg)
39 45

  
46
		--disable-programs
47

  
40 48
		# cross-compile fix (bug #521446)
41 49
		# no effect if ogg support is disabled
42 50
		--with-ogg
43 51
	)
52

  
44 53
	ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
45 54
}
46 55

  
47 56
multilib_src_test() {
57
	# configure has --enable-exhaustive-tests we could pass...
58
	# there's also --disable-thorough-test.
48 59
	if [[ ${UID} != 0 ]]; then
60
		# Parallel tests work for CMake but don't for autotools as of 1.4.3
61
		# https://github.com/xiph/flac/commit/aaffdcaa969c19aee9dc89be420eae470b55e405
49 62
		emake -j1 check
50 63
	else
51 64
		ewarn "Tests will fail if ran as root, skipping."
......
53 66
}
54 67

  
55 68
multilib_src_install_all() {
56
	rm -r "${ED}"/usr/bin || die
57 69
	rm -r "${ED}"/usr/include || die
58 70
	rm -r "${ED}"/usr/share || die
59 71
	rm -r "${ED}"/usr/lib*/pkgconfig || die
Thank you!