1 |
commit: 962b38d22057e18d40d366ce8c9b097835c443dd |
2 |
Author: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 2 23:28:25 2020 +0000 |
4 |
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 2 23:57:21 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=962b38d2 |
7 |
|
8 |
dev-perl/Audio-CD-disc-cover: -r bump for EAPI7 + CFLAGS love |
9 |
|
10 |
- EAPI7 |
11 |
- Ensure CFLAGS get passed to make/compile |
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 |
.../Audio-CD-disc-cover-0.05-r3.ebuild | 59 ++++++++++++++++++++++ |
18 |
1 file changed, 59 insertions(+) |
19 |
|
20 |
diff --git a/dev-perl/Audio-CD-disc-cover/Audio-CD-disc-cover-0.05-r3.ebuild b/dev-perl/Audio-CD-disc-cover/Audio-CD-disc-cover-0.05-r3.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..94519a8ae85 |
23 |
--- /dev/null |
24 |
+++ b/dev-perl/Audio-CD-disc-cover/Audio-CD-disc-cover-0.05-r3.ebuild |
25 |
@@ -0,0 +1,59 @@ |
26 |
+# Copyright 1999-2020 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=7 |
30 |
+ |
31 |
+# This appears it should really be entitled Audio-CD |
32 |
+# There are * QA Notice: errors on building however the HOMEPAGE gives no source repo in which to file |
33 |
+# prob. not worth the trouble for this little script. |
34 |
+ |
35 |
+DIST_EXAMPLES=("eg/*") |
36 |
+inherit perl-module |
37 |
+ |
38 |
+MY_P=Audio-CD-${PV} |
39 |
+S=${WORKDIR}/${MY_P} |
40 |
+DESCRIPTION="Perl Module needed for app-cdr/disc-cover" |
41 |
+HOMEPAGE="http://www.vanhemert.co.uk/disc-cover.html" |
42 |
+SRC_URI="http://www.vanhemert.co.uk/files/${MY_P}.tar.gz" |
43 |
+ |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86" |
46 |
+ |
47 |
+RDEPEND=">=dev-perl/URI-1.10 |
48 |
+ >=dev-perl/HTML-Parser-3.15 |
49 |
+ >=virtual/perl-MIME-Base64-2.12 |
50 |
+ >=virtual/perl-Digest-MD5-2.12 |
51 |
+ >=virtual/perl-libnet-1.0703-r1 |
52 |
+ >=dev-perl/libwww-perl-5.50 |
53 |
+ >=media-libs/libcdaudio-0.99.6" |
54 |
+DEPEND=" |
55 |
+ >=media-libs/libcdaudio-0.99.6 |
56 |
+" |
57 |
+BDEPEND="${RDEPEND}" |
58 |
+ |
59 |
+src_compile() { |
60 |
+ mymake=( |
61 |
+ "OPTIMIZE=${CFLAGS}" |
62 |
+ ) |
63 |
+ perl-module_src_compile |
64 |
+} |
65 |
+src_test() { |
66 |
+ local MODULES=( |
67 |
+ "Audio::CD ${PV}" |
68 |
+ ) |
69 |
+ local failed=() |
70 |
+ for dep in "${MODULES[@]}"; do |
71 |
+ ebegin "Compile testing ${dep}" |
72 |
+ perl -Mblib="${S}" -M"${dep} ()" -e1 |
73 |
+ eend $? || failed+=( "$dep" ) |
74 |
+ done |
75 |
+ if [[ ${failed[@]} ]]; then |
76 |
+ echo |
77 |
+ eerror "One or more modules failed compile:"; |
78 |
+ for dep in "${failed[@]}"; do |
79 |
+ eerror " ${dep}" |
80 |
+ done |
81 |
+ die "Failing due to module compilation errors"; |
82 |
+ fi |
83 |
+ perl-module_src_test |
84 |
+} |