1 |
commit: b8ddc0187d0889662c3c40884729fb35efff959b |
2 |
Author: Chema Alonso Josa <nimiux <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 1 18:44:50 2017 +0000 |
4 |
Commit: José María Alonso <nimiux <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 1 18:44:50 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/lisp.git/commit/?id=b8ddc018 |
7 |
|
8 |
dev-lisp/asdf: Adds test phase. Installs info file. |
9 |
|
10 |
Gentoo-Bug: 605752 |
11 |
Gentoo-Bug: 623494 |
12 |
|
13 |
dev-lisp/asdf/asdf-3.2.1-r1.ebuild | 60 ++++++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 60 insertions(+) |
15 |
|
16 |
diff --git a/dev-lisp/asdf/asdf-3.2.1-r1.ebuild b/dev-lisp/asdf/asdf-3.2.1-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000..10fefccb |
19 |
--- /dev/null |
20 |
+++ b/dev-lisp/asdf/asdf-3.2.1-r1.ebuild |
21 |
@@ -0,0 +1,60 @@ |
22 |
+# Copyright 1999-2017 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=6 |
26 |
+ |
27 |
+inherit eutils prefix common-lisp-3 |
28 |
+ |
29 |
+DESCRIPTION="ASDF is Another System Definition Facility for Common Lisp" |
30 |
+HOMEPAGE="http://common-lisp.net/project/asdf/" |
31 |
+SRC_URI="http://common-lisp.net/project/${PN}/archives/${P}.tar.gz" |
32 |
+ |
33 |
+LICENSE="MIT" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris" |
36 |
+IUSE="doc" |
37 |
+ |
38 |
+SLOT="0/${PVR}" |
39 |
+ |
40 |
+DEPEND="!dev-lisp/cl-${PN} |
41 |
+ !dev-lisp/asdf-binary-locations |
42 |
+ !dev-lisp/gentoo-init |
43 |
+ !<dev-lisp/asdf-2.33-r3 |
44 |
+ doc? ( virtual/texi2dvi )" |
45 |
+RDEPEND="" |
46 |
+PDEPEND="~dev-lisp/uiop-${PV}" |
47 |
+ |
48 |
+COMMONLISPS="sbcl clisp clozurecl cmucl ecls" |
49 |
+ |
50 |
+find-lisp-impl() { |
51 |
+ for lisp in ${COMMONLISPS} ; do |
52 |
+ [[ "$(best_version dev-lisp/${lisp})" ]] && echo "${lisp}" && return |
53 |
+ done |
54 |
+ die "No CommonLisp implementation found" |
55 |
+} |
56 |
+ |
57 |
+install_docs() { |
58 |
+ (cd doc ; dodoc *.{html,css,ico,png} "${PN}.pdf" ; dodoc -r asdf ; doinfo "${PN}.info" ) |
59 |
+} |
60 |
+ |
61 |
+src_compile() { |
62 |
+ emake |
63 |
+ use doc && emake -C doc |
64 |
+} |
65 |
+ |
66 |
+src_test() { |
67 |
+ common-lisp-export-impl-args "$(find-lisp-impl)" |
68 |
+ test/run-tests.sh ${CL_BINARY} |
69 |
+} |
70 |
+ |
71 |
+src_install() { |
72 |
+ insinto "${CLSOURCEROOT}/${PN}" |
73 |
+ doins -r build version.lisp-expr |
74 |
+ dodoc README.md TODO |
75 |
+ use doc && install_docs |
76 |
+ insinto /etc/common-lisp |
77 |
+ cd "${T}" || die |
78 |
+ cp "${FILESDIR}/gentoo-init.lisp" "${FILESDIR}/source-registry.conf" . || die |
79 |
+ eprefixify gentoo-init.lisp source-registry.conf |
80 |
+ doins gentoo-init.lisp source-registry.conf |
81 |
+} |