summaryrefslogtreecommitdiff
blob: 2fd96bc5734c484b14e2bbd1dbb1a6b7f0d571e7 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EGIT_REPO_URI="http://common-lisp.net/project/parenscript/git/parenscript/"

inherit common-lisp-2 git eutils

DESCRIPTION="Parenscript is a small lispy language that can be compiled to JavaScript."
HOMEPAGE="http://common-lisp.net/project/parenscript/"

LICENSE="BSD"
SLOT="0"
KEYWORDS=""
IUSE="doc"

DEPEND="doc? ( virtual/latex-base )"
RDEPEND="!dev-lisp/cl-${PN}
		!dev-lisp/cl-${PN}-darcs
		!dev-lisp/${PN}-darcs"

src_compile() {
	if use doc ; then
		cd docs
		sh build.sh || die "Cannot build docs"
	fi
}

# TODO: install extras/js-expander.el
src_install() {
	common-lisp-install parenscript.asd extras/*.lisp runtime src t
	common-lisp-symlink-asdf
	dodoc contributors docs/internal/notes-and-links.txt || die "Cannot install docs"
	use doc && { dodoc docs/*.pdf || die "Cannot install docs" ; }
}