summaryrefslogtreecommitdiff
blob: be4064326dde5d4d3a0f4d0ca1895950dbcb0c78 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lisp/cl-cgi-utils/cl-cgi-utils-0.9.ebuild,v 1.2 2008/09/03 20:54:16 opfer Exp $

inherit common-lisp eutils

DESCRIPTION="lisp-cgi-utils is a Common Lisp library for developing CGI applications."
HOMEPAGE="http://www.thangorodrim.de/software/lisp-cgi-utils/index.html"
SRC_URI="http://www.thangorodrim.de/software/lisp-cgi-utils/lisp-cgi-utils-${PV}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="doc"

CLPACKAGE=lisp-cgi-utils

DEPEND="doc? ( virtual/latex-base dev-tex/hevea )"

S=${WORKDIR}/lisp-cgi-utils-${PV}

src_unpack() {
	unpack ${A}
	epatch "${FILESDIR}/${PV}-defconstant-gentoo.patch"
}

src_compile() {
	if use doc; then
		make -C doc || die
	fi
}

src_install() {
	common-lisp-install *.{lisp,asd}
	common-lisp-system-symlink
	dodoc LGPL-2.1
	insinto /usr/share/doc/${PF}/examples
	doins examples/*
	use doc && dodoc doc/{examples,cookies}.{dvi,ps,pdf,html,txt}
}