Gentoo Archives: gentoo-commits

From: Kent Fredric <kentnl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/Audio-Mixer/
Date: Wed, 29 Apr 2020 10:58:36
Message-Id: 1588157882.b4ab3ff478eda3feb0eccb30715dae922ab32d9e.kentnl@gentoo
1 commit: b4ab3ff478eda3feb0eccb30715dae922ab32d9e
2 Author: Kent Fredric <kentnl <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 29 10:57:39 2020 +0000
4 Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 29 10:58:02 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4ab3ff4
7
8 dev-perl/Audio-Mixer: -r bump for EAPI7
9
10 - EAPI7
11 - Correct license
12 - Use ${CAT}/${PN} substitution in wiki link
13 - Remove empty variable assignments
14
15 Package-Manager: Portage-2.3.97, Repoman-2.3.22
16 Signed-off-by: Kent Fredric <kentnl <AT> gentoo.org>
17
18 dev-perl/Audio-Mixer/Audio-Mixer-0.700.0-r3.ebuild | 52 ++++++++++++++++++++++
19 1 file changed, 52 insertions(+)
20
21 diff --git a/dev-perl/Audio-Mixer/Audio-Mixer-0.700.0-r3.ebuild b/dev-perl/Audio-Mixer/Audio-Mixer-0.700.0-r3.ebuild
22 new file mode 100644
23 index 00000000000..8d500a018fa
24 --- /dev/null
25 +++ b/dev-perl/Audio-Mixer/Audio-Mixer-0.700.0-r3.ebuild
26 @@ -0,0 +1,52 @@
27 +# Copyright 1999-2020 Gentoo Authors
28 +# Distributed under the terms of the GNU General Public License v2
29 +
30 +EAPI=7
31 +
32 +DIST_AUTHOR=SERGEY
33 +DIST_VERSION=0.7
34 +DIST_EXAMPLES=("eg/*")
35 +inherit perl-module
36 +
37 +DESCRIPTION="Perl extension for Sound Mixer control"
38 +
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
41 +# License note: Ambiguous
42 +# https://rt.cpan.org/Ticket/Display.html?id=132448
43 +LICENSE="GPL-1"
44 +
45 +PATCHES=(
46 + "${FILESDIR}/${P}-volumepl.patch"
47 + "${FILESDIR}/${P}-clang.patch"
48 + "${FILESDIR}/${P}-testsuite.patch"
49 +)
50 +
51 +src_test() {
52 + local MODULES=(
53 + "Audio::Mixer ${DIST_VERSION}"
54 + )
55 + local failed=()
56 + for dep in "${MODULES[@]}"; do
57 + ebegin "Compile testing ${dep}"
58 + perl -Mblib="${S}" -M"${dep} ()" -e1
59 + eend $? || failed+=( "$dep" )
60 + done
61 + if [[ ${failed[@]} ]]; then
62 + echo
63 + eerror "One or more modules failed compile:";
64 + for dep in "${failed[@]}"; do
65 + eerror " ${dep}"
66 + done
67 + die "Failing due to module compilation errors";
68 + fi
69 + if [[ "${AUDIO_MIXER_HW_TEST:-0}" == 0 ]]; then
70 + ewarn "Comprehensive testing of this module needs hardware access to mixing"
71 + ewarn "devices. Set AUDIO_MIXER_HW_TEST=1 in your environment if you want full"
72 + ewarn "coverage"
73 + ewarn "For details, see:"
74 + ewarn "https://wiki.gentoo.org/wiki/Project:Perl/maint-notes/${CATEGORY}/${PN}"
75 + else
76 + perl-module_src_test
77 + fi
78 +}