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-DSP/
Date: Fri, 03 Jul 2020 00:07:51
Message-Id: 1593734244.62bc679a51ffa28d7a6340be8978ac35effa4694.kentnl@gentoo
1 commit: 62bc679a51ffa28d7a6340be8978ac35effa4694
2 Author: Kent Fredric <kentnl <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 2 23:32:00 2020 +0000
4 Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 2 23:57:24 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62bc679a
7
8 dev-perl/Audio-DSP: -r bump for EAPI7/CFLAGS love
9
10 - EAPI7
11 - Ensure CFLAGS passed to make/compiler
12 - Remove empty/unused variable assignments
13
14 Package-Manager: Portage-2.3.100, Repoman-2.3.22
15 Signed-off-by: Kent Fredric <kentnl <AT> gentoo.org>
16
17 dev-perl/Audio-DSP/Audio-DSP-0.20.0-r3.ebuild | 48 +++++++++++++++++++++++++++
18 1 file changed, 48 insertions(+)
19
20 diff --git a/dev-perl/Audio-DSP/Audio-DSP-0.20.0-r3.ebuild b/dev-perl/Audio-DSP/Audio-DSP-0.20.0-r3.ebuild
21 new file mode 100644
22 index 00000000000..1996d7d8834
23 --- /dev/null
24 +++ b/dev-perl/Audio-DSP/Audio-DSP-0.20.0-r3.ebuild
25 @@ -0,0 +1,48 @@
26 +# Copyright 1999-2020 Gentoo Authors
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=7
30 +
31 +DIST_AUTHOR=SETHJ
32 +DIST_VERSION=0.02
33 +inherit perl-module
34 +
35 +DESCRIPTION="Perl interface to *NIX digital audio device"
36 +
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~sparc ~x86"
39 +
40 +src_compile() {
41 + mymake=(
42 + "OPTIMIZE=${CFLAGS}"
43 + )
44 + perl-module_src_compile
45 +}
46 +src_test() {
47 + local MODULES=(
48 + "Audio::DSP ${DIST_VERSION}"
49 + )
50 + local failed=()
51 + for dep in "${MODULES[@]}"; do
52 + ebegin "Compile testing ${dep}"
53 + perl -Mblib="${S}" -M"${dep} ()" -e1
54 + eend $? || failed+=( "$dep" )
55 + done
56 + if [[ ${failed[@]} ]]; then
57 + echo
58 + eerror "One or more modules failed compile:";
59 + for dep in "${failed[@]}"; do
60 + eerror " ${dep}"
61 + done
62 + die "Failing due to module compilation errors";
63 + fi
64 + if [[ "${AUDIO_DSP_HW_TEST:-0}" == 0 ]]; then
65 + ewarn "Comprehensive testing of this module needs hardware access to dsp"
66 + ewarn "devices. Set AUDIO_DSP_HW_TEST=1 in your environment if you want full"
67 + ewarn "coverage"
68 + ewarn "For details, see:"
69 + ewarn "https://wiki.gentoo.org/wiki/Project:Perl/maint-notes/dev-perl/Audio-DSP"
70 + else
71 + perl-module_src_test
72 + fi
73 +}