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