Diff alsa-lib-1.2.4 with a alsa-lib-1.2.5_p20210604

/usr/portage/media-libs/alsa-lib/alsa-lib-1.2.5_p20210604.ebuild 2021-06-05 23:39:00.000000000 +0300
6 6
PYTHON_COMPAT=( python3_{7,8,9} )
7 7
inherit autotools multilib-minimal python-single-r1
8 8

  
9
# When COMMIT is defined, this ebuild turns from a release into a snapshot ebuild:
10
COMMIT="abe805ed6c7f38e48002e575535afd1f673b9bcd"
11
# Also set SNAPSHOT_PV to match the correct PV, so that the ebuild can detect a naive rename:
12
SNAPSHOT_PV="1.2.5_p20210604"
13

  
9 14
DESCRIPTION="Advanced Linux Sound Architecture Library"
10 15
HOMEPAGE="https://alsa-project.org/wiki/Main_Page"
11
SRC_URI="https://www.alsa-project.org/files/pub/lib/${P}.tar.bz2"
16
if [[ -n ${COMMIT} ]]; then
17
	SRC_URI="https://git.alsa-project.org/?p=${PN}.git;a=snapshot;h=${COMMIT};sf=tgz -> ${P}.tar.gz"
18
	S="${WORKDIR}"/${PN}-${COMMIT:0:7}
19
else
20
	# TODO: Upstream does publish .sig files, so someone could implement verify-sig ;)
21
	SRC_URI="https://www.alsa-project.org/files/pub/lib/${P}.tar.bz2"
22
fi
12 23

  
13 24
LICENSE="LGPL-2.1"
14 25
SLOT="0"
15
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux"
26
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
16 27
IUSE="alisp debug doc elibc_uclibc python +thread-safety"
17 28

  
18 29
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
......
26 37

  
27 38
PATCHES=(
28 39
	"${FILESDIR}/${PN}-1.1.6-missing_files.patch" # bug #652422
29
	"${FILESDIR}/${PN}-1.2.4-musl.patch" # bug #792570
30 40
)
31 41

  
42
pkg_pretend() {
43
	if [[ -n ${COMMIT} && -z ${SNAPSHOT_PV} || -z ${COMMIT} && -n ${SNAPSHOT_PV} ]]; then
44
		eerror "Please either set both COMMIT and SNAPSHOT_PV or neither!"
45
	elif [[ -n ${SNAPSHOT_PV} && ${PV} != ${SNAPSHOT_PV} ]]; then
46
		eerror "Rename of snapshot ebuild detected - please check COMMIT & SNAPSHOT_PV!"
47
	fi
48
}
49

  
32 50
pkg_setup() {
33 51
	use python && python-single-r1_pkg_setup
34 52
}
Thank you!