Gentoo Archives: gentoo-commits

From: "José María Alonso" <nimiux@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/lisp:master commit in: dev-lisp/cl-aima/
Date: Fri, 07 Jul 2017 08:27:36
Message-Id: 1499416061.4ffc8c2aafd940b931b2e623dec84cfadab7b08f.nimiux@gentoo
1 commit: 4ffc8c2aafd940b931b2e623dec84cfadab7b08f
2 Author: Chema Alonso Josa <nimiux <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 7 08:27:41 2017 +0000
4 Commit: José María Alonso <nimiux <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 7 08:27:41 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/lisp.git/commit/?id=4ffc8c2a
7
8 dev-lisp/cl-aima: Updates to common-lisp-3 eclass
9
10 dev-lisp/cl-aima/cl-aima-1.0.4-r1.ebuild | 24 ++++++++++++++----------
11 1 file changed, 14 insertions(+), 10 deletions(-)
12
13 diff --git a/dev-lisp/cl-aima/cl-aima-1.0.4-r1.ebuild b/dev-lisp/cl-aima/cl-aima-1.0.4-r1.ebuild
14 index 39cf3311..9f19fff0 100644
15 --- a/dev-lisp/cl-aima/cl-aima-1.0.4-r1.ebuild
16 +++ b/dev-lisp/cl-aima/cl-aima-1.0.4-r1.ebuild
17 @@ -1,14 +1,14 @@
18 -# Copyright 1999-2016 Gentoo Foundation
19 +# Copyright 1999-2017 Gentoo Foundation
20 # Distributed under the terms of the GNU General Public License v2
21 -# $Id$
22
23 -inherit common-lisp-2 eutils
24 +EAPI=6
25 +
26 +inherit common-lisp-3 eutils
27
28 DEB_PV=1
29
30 DESCRIPTION="Common Lisp source code from Peter Norvig's Artificial Intelligence: A Modern Approach"
31 -HOMEPAGE="http://aima.cs.berkeley.edu/lisp/doc/overview.html
32 - http://packages.debian.org/unstable/devel/cl-aima.html"
33 +HOMEPAGE="http://aima.cs.berkeley.edu/lisp/doc/overview.html"
34 SRC_URI="mirror://gentoo/${PN}_${PV}.orig.tar.gz
35 mirror://gentoo/${PN}_${PV}-${DEB_PV}.diff.gz"
36
37 @@ -22,19 +22,23 @@ CLSYSTEMS="aima"
38
39 src_unpack() {
40 unpack ${A}
41 - epatch ${PN}_${PV}-${DEB_PV}.diff
42 - epatch "${FILESDIR}"/${PV}-defsystem-and-package-lock-gentoo.patch
43 +}
44 +
45 +src_prepare() {
46 + eapply ${PN}_${PV}-${DEB_PV}.diff
47 + eapply "${FILESDIR}"/${PV}-defsystem-and-package-lock-gentoo.patch
48 + eapply_user
49 }
50
51 src_install() {
52 - common-lisp-install aima.{asd,lisp}
53 + common-lisp-install-sources aima.lisp
54 for module in agents language learning logic search uncertainty utilities; do
55 find ${module} -type f -name \*.lisp -print | while read lisp; do \
56 - common-lisp-install "${lisp}"
57 + common-lisp-install-sources "${lisp}"
58 done
59 mv ${module}/README.html README-${module}.html && dohtml README-${module}.html
60 done
61 - common-lisp-symlink-asdf
62 + common-lisp-install-asdf
63 dohtml doc/*
64 find "${D}" -type f -exec chmod 644 '{}' \;
65 }