blob: c61d433b3e1f41879fde83b9ca742b83863c4053 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit common-lisp-2 eutils
DEB_PV=1
DESCRIPTION="Common Lisp source code from Peter Norvig's Artificial Intelligence: A Modern Approach"
HOMEPAGE="http://aima.cs.berkeley.edu/lisp/doc/overview.html
http://packages.debian.org/unstable/devel/cl-aima.html"
SRC_URI="mirror://gentoo/${PN}_${PV}.orig.tar.gz
mirror://gentoo/${PN}_${PV}-${DEB_PV}.diff.gz"
LICENSE="Norvig"
SLOT="0"
KEYWORDS="~amd64 ~sparc ~x86"
IUSE=""
CLPACKAGE="aima"
CLSYSTEMS="aima"
src_unpack() {
unpack ${A}
epatch ${PN}_${PV}-${DEB_PV}.diff
epatch "${FILESDIR}"/${PV}-defsystem-and-package-lock-gentoo.patch
}
src_install() {
common-lisp-install aima.{asd,lisp}
for module in agents language learning logic search uncertainty utilities; do
find ${module} -type f -name \*.lisp -print | while read lisp; do \
common-lisp-install "${lisp}"
done
mv ${module}/README.html README-${module}.html && dohtml README-${module}.html
done
common-lisp-symlink-asdf
dohtml doc/*
find "${D}" -type f -exec chmod 644 '{}' \;
}
|