blob: 6d55ad6f37ff70e203080a99b8c36d9cad62c9fa (
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
41
42
43
44
45
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit common-lisp-2
MY_P=${PN}_${PV}
DESCRIPTION="The Common Foreign Function Interface (CFFI)"
HOMEPAGE="http://common-lisp.net/project/cffi/"
SRC_URI="http://common-lisp.net/project/${PN}/releases/${MY_P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="doc"
DEPEND="doc? ( dev-lisp/sbcl virtual/texi2dvi )"
RDEPEND="!dev-lisp/cl-${PN}
dev-lisp/alexandria
dev-lisp/babel
dev-lisp/trivial-features"
CLSYSTEMS="${PN} ${PN}-tests ${PN}-examples ${PN}-grovel ${PN}-uffi-compat"
S="${WORKDIR}"/${MY_P}
src_compile() {
if use doc ; then
VARTEXFONTS="${T}"/fonts \
make -C doc manual spec || die "Cannot build docs"
fi
}
src_install() {
common-lisp-install *.asd examples/ grovel/ src/ tests/ uffi-compat/
common-lisp-symlink-asdf
dodoc README TODO doc/*.txt
if use doc; then
doinfo doc/*.info
rm doc/{spec,manual}/cffi*
insinto /usr/share/doc/${PF}/html
doins -r doc/{spec,manual}
fi
}
|