summaryrefslogtreecommitdiff
blob: f69b85b7aee240f37f9ed5fea5a02f80226cec67 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lisp/cl-xml-psychiatrist/cl-xml-psychiatrist-0.4.ebuild,v 1.3 2005/05/24 18:48:37 mkennedy Exp $

inherit common-lisp

DESCRIPTION="A powerful XML sanity checker for Common Lisp"
HOMEPAGE="http://common-lisp.net/project/xml-psychiatrist/"
SRC_URI="http://common-lisp.net/project/xml-psychiatrist/xml-psychiatrist-${PV}.tar.gz"
LICENSE="LLGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc x86"
IUSE="doc"

DEPEND="dev-lisp/cl-xmls
	dev-lisp/cl-ppcre
	doc? ( dev-tex/latex2html app-text/ghostscript )"

CLPACKAGE=xml-psychiatrist

S=${WORKDIR}/xml-psychiatrist-${PV}

src_compile() {
	if use doc; then
		cd doc
		latex manual.tex
		dvips manual.dvi -o manual.ps
		ps2pdf manual.ps
		latex2html manual.tex
	fi
}

src_install() {
	common-lisp-install *.asd *.lisp
	common-lisp-system-symlink
	dodoc README
	if use doc; then
		cd doc
		dohtml manual/*
		dodoc manual.{ps,pdf}
	fi
}