Diff apulse-0.1.12_p20180803 with a apulse-0.1.13-r2

/usr/portage/media-sound/apulse/apulse-0.1.13-r2.ebuild 2023-10-09 14:52:31.764368407 +0300
1
# Copyright 1999-2018 Gentoo Foundation
1
# Copyright 1999-2022 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=6
4
EAPI=7
5 5

  
6
inherit multilib cmake-multilib
7

  
8
COMMIT="bcd55c85365aff30668f17e2ed6ba86d5d235ce3"
6
inherit cmake-multilib multiprocessing
9 7

  
10 8
DESCRIPTION="PulseAudio emulation for ALSA"
11 9
HOMEPAGE="https://github.com/i-rinat/apulse"
12
SRC_URI="https://codeload.github.com/i-rinat/${PN}/zip/${COMMIT} -> ${P}.zip"
10
SRC_URI="https://github.com/i-rinat/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
13 11

  
14 12
LICENSE="MIT LGPL-2.1"
15 13
SLOT="0"
16
KEYWORDS="amd64 x86"
14
KEYWORDS="amd64 ~ppc64 x86"
17 15

  
18 16
IUSE="debug sdk test"
17
RESTRICT="!test? ( test )"
19 18

  
20 19
DEPEND="dev-libs/glib:2[${MULTILIB_USEDEP}]
21 20
	media-libs/alsa-lib[${MULTILIB_USEDEP}]
22
	sdk? ( !media-sound/pulseaudio ) "
23
RDEPEND="${DEPEND}"
24

  
25
PATCHES=( "${FILESDIR}/sdk.patch" )
26

  
27
S="${WORKDIR}/${PN}-${COMMIT}"
21
	sdk? ( !media-libs/libpulse !media-sound/pulseaudio ) "
22
RDEPEND="${DEPEND}
23
	!media-plugins/alsa-plugins[pulseaudio]"
24

  
25
PATCHES=(
26
	"${FILESDIR}/sdk.patch"
27
	"${FILESDIR}/check-key-before-remove.patch"
28
	"${FILESDIR}/man.patch"
29
)
28 30

  
29 31
src_prepare() {
30
	cmake-utils_src_prepare
32
	cmake_src_prepare
31 33

  
32 34
	if ! use sdk; then
33 35
		# Ensure all relevant libdirs are added, to support all ABIs
......
44 46
		"-DLOG_TO_STDERR=$(usex debug)"
45 47
		"-DWITH_TRACE=$(usex debug)"
46 48
	)
47
	cmake-utils_src_configure
49
	cmake_src_configure
48 50
}
49 51

  
50 52
multilib_src_test() {
51
	emake check
53
	_test() {
54
		pushd tests || die
55
		cmake -S "${S}/tests" -B . || die
56
		emake test_ringbuffer
57
		ctest -j "$(makeopts_jobs "${MAKEOPTS}" 999)" \
58
			--test-load "$(makeopts_loadavg)" || die
59
		popd || die
60
	}
61
	multilib_foreach_abi _test
52 62
}
53 63

  
54 64
multilib_src_install_all() {
55
	# Do not use deprecated MULTILIB_CHOST_TOOLS
56 65
	if ! use sdk; then
57
		unset BUILD_DIR
58 66
		_install_wrapper() { newbin "${BUILD_DIR}/apulse" "${CHOST}-apulse"; }
59 67
		multilib_foreach_abi _install_wrapper
60 68
		dobin "${T}/apulse"
Thank you!