1 |
commit: 1393eeeab842b492db5b42b03e5759d4f7ab7d31 |
2 |
Author: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 21 03:04:20 2017 +0000 |
4 |
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 21 03:04:20 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1393eeea |
7 |
|
8 |
dev-perl/Emacs-PDE: EAPI6 + Tests |
9 |
|
10 |
- EAPI6ify |
11 |
- Add basic tests ( Upstream has none to speak of ) |
12 |
|
13 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
14 |
|
15 |
dev-perl/Emacs-PDE/Emacs-PDE-0.2.16-r2.ebuild | 42 +++++++++++++++++++++++++++ |
16 |
1 file changed, 42 insertions(+) |
17 |
|
18 |
diff --git a/dev-perl/Emacs-PDE/Emacs-PDE-0.2.16-r2.ebuild b/dev-perl/Emacs-PDE/Emacs-PDE-0.2.16-r2.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..e142d1e50d5 |
21 |
--- /dev/null |
22 |
+++ b/dev-perl/Emacs-PDE/Emacs-PDE-0.2.16-r2.ebuild |
23 |
@@ -0,0 +1,42 @@ |
24 |
+# Copyright 1999-2017 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=6 |
28 |
+ |
29 |
+DIST_AUTHOR=YEWENBIN |
30 |
+ |
31 |
+inherit perl-module elisp-common |
32 |
+ |
33 |
+DESCRIPTION="Perl Develop Environment in Emacs" |
34 |
+ |
35 |
+LICENSE="|| ( Artistic GPL-1 GPL-2 GPL-3 )" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
38 |
+IUSE="" |
39 |
+ |
40 |
+RDEPEND="virtual/emacs" |
41 |
+DEPEND="dev-perl/Module-Build |
42 |
+ ${RDEPEND}" |
43 |
+myconf="--elispdir=${D}${SITELISP}/pde" |
44 |
+ |
45 |
+src_test() { |
46 |
+ local MODULES=( |
47 |
+ "Emacs::PDE ${PV}" |
48 |
+ "Emacs::PDE::Util" |
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 |
+ perl-module_src_test |
65 |
+} |