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