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/Alien-LibGumbo/
Date: Thu, 23 Apr 2020 07:47:12
Message-Id: 1587627991.964fc89ee2bfcc18c6f26bbba5794e13a272a245.kentnl@gentoo
1 commit: 964fc89ee2bfcc18c6f26bbba5794e13a272a245
2 Author: Kent Fredric <kentnl <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 23 07:37:20 2020 +0000
4 Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 23 07:46:31 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=964fc89e
7
8 dev-perl/Alien-LibGumbo: -r bump for EAPI7 and Tests
9
10 - EAPI7-ify
11 - Add some rudimentary tests to check modules are at least, loadable.
12
13 Package-Manager: Portage-2.3.97, Repoman-2.3.22
14 Signed-off-by: Kent Fredric <kentnl <AT> gentoo.org>
15
16 .../Alien-LibGumbo/Alien-LibGumbo-0.50.0-r1.ebuild | 50 ++++++++++++++++++++++
17 dev-perl/Alien-LibGumbo/metadata.xml | 2 +
18 2 files changed, 52 insertions(+)
19
20 diff --git a/dev-perl/Alien-LibGumbo/Alien-LibGumbo-0.50.0-r1.ebuild b/dev-perl/Alien-LibGumbo/Alien-LibGumbo-0.50.0-r1.ebuild
21 new file mode 100644
22 index 00000000000..3e5aca8a29b
23 --- /dev/null
24 +++ b/dev-perl/Alien-LibGumbo/Alien-LibGumbo-0.50.0-r1.ebuild
25 @@ -0,0 +1,50 @@
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=RUZ
32 +DIST_VERSION=0.05
33 +inherit perl-module
34 +
35 +DESCRIPTION="Gumbo parser library"
36 +
37 +SLOT="0"
38 +KEYWORDS="~amd64"
39 +
40 +# Alien-Build for Alien::Base
41 +RDEPEND="
42 + >=dev-perl/Alien-Build-0.5.0
43 + >=dev-perl/File-ShareDir-1.30.0
44 + >=dev-perl/Path-Class-0.13.0
45 +"
46 +DEPEND="
47 + dev-perl/Module-Build
48 +"
49 +BDEPEND="${RDEPEND}
50 + >=dev-perl/Alien-Base-ModuleBuild-0.5.0
51 + >=dev-perl/Module-Build-0.420.0
52 +"
53 +src_test() {
54 + local MODULES=(
55 + "Alien::LibGumbo ${DIST_VERSION}"
56 + "Alien::LibGumbo::ConfigData"
57 + "Alien::LibGumbo::Install::Files"
58 + )
59 + local failed=()
60 + for dep in "${MODULES[@]}"; do
61 + ebegin "Compile testing ${dep}"
62 + perl -Mblib="${S}/blib" -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 + # Currently useless
74 + # perl-module_src_test
75 +}
76
77 diff --git a/dev-perl/Alien-LibGumbo/metadata.xml b/dev-perl/Alien-LibGumbo/metadata.xml
78 index 1e7040b181a..7dcd3649f04 100644
79 --- a/dev-perl/Alien-LibGumbo/metadata.xml
80 +++ b/dev-perl/Alien-LibGumbo/metadata.xml
81 @@ -12,5 +12,7 @@
82 <upstream>
83 <remote-id type="cpan">Alien-LibGumbo</remote-id>
84 <remote-id type="cpan-module">Alien::LibGumbo</remote-id>
85 + <remote-id type="cpan-module">Alien::LibGumbo::ConfigData</remote-id>
86 + <remote-id type="cpan-module">Alien::LibGumbo::Install::Files</remote-id>
87 </upstream>
88 </pkgmetadata>