1 |
commit: e2d6c1ca8e30739bffe330a116e3b280af3a9b48 |
2 |
Author: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 14 19:52:36 2017 +0000 |
4 |
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 14 19:54:12 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2d6c1ca |
7 |
|
8 |
dev-perl/Audio-CD-disc-cover: Add basic tests |
9 |
|
10 |
- EAPI6 |
11 |
- Fix header issue |
12 |
- Add basic tests |
13 |
- Add USE="examples" |
14 |
|
15 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
16 |
|
17 |
.../Audio-CD-disc-cover-0.05-r2.ebuild | 51 ++++++++++++++++++++++ |
18 |
1 file changed, 51 insertions(+) |
19 |
|
20 |
diff --git a/dev-perl/Audio-CD-disc-cover/Audio-CD-disc-cover-0.05-r2.ebuild b/dev-perl/Audio-CD-disc-cover/Audio-CD-disc-cover-0.05-r2.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..74a86f95577 |
23 |
--- /dev/null |
24 |
+++ b/dev-perl/Audio-CD-disc-cover/Audio-CD-disc-cover-0.05-r2.ebuild |
25 |
@@ -0,0 +1,51 @@ |
26 |
+# Copyright 1999-2017 Gentoo Foundation |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=6 |
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 |
+IUSE="" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86" |
47 |
+ |
48 |
+RDEPEND=">=dev-perl/URI-1.10 |
49 |
+ >=dev-perl/HTML-Parser-3.15 |
50 |
+ >=virtual/perl-MIME-Base64-2.12 |
51 |
+ >=virtual/perl-Digest-MD5-2.12 |
52 |
+ >=virtual/perl-libnet-1.0703-r1 |
53 |
+ >=dev-perl/libwww-perl-5.50 |
54 |
+ >=media-libs/libcdaudio-0.99.6" |
55 |
+DEPEND="${RDEPEND}" |
56 |
+ |
57 |
+src_test() { |
58 |
+ local MODULES=( |
59 |
+ "Audio::CD ${PV}" |
60 |
+ ) |
61 |
+ local failed=() |
62 |
+ for dep in "${MODULES[@]}"; do |
63 |
+ ebegin "Compile testing ${dep}" |
64 |
+ perl -Mblib="${S}" -M"${dep} ()" -e1 |
65 |
+ eend $? || failed+=( "$dep" ) |
66 |
+ done |
67 |
+ if [[ ${failed[@]} ]]; then |
68 |
+ echo |
69 |
+ eerror "One or more modules failed compile:"; |
70 |
+ for dep in "${failed[@]}"; do |
71 |
+ eerror " ${dep}" |
72 |
+ done |
73 |
+ die "Failing due to module compilation errors"; |
74 |
+ fi |
75 |
+ perl-module_src_test |
76 |
+} |