summaryrefslogtreecommitdiff
blob: 092a7d7478966a8b0f5494c393bb4650a3b79589 (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
46
47
48
49
50
51
52
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit common-lisp-3 elisp-common eutils

DESCRIPTION="Climacs is an Emacs-like text editor written in Common Lisp."
HOMEPAGE="http://common-lisp.net/project/climacs"
SRC_URI="http://common-lisp.net/~sionescu/files/${P}.tar.bz2"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="doc"

DEPEND="sys-apps/texinfo
		doc? ( virtual/texi2dvi )"
RDEPEND=">=dev-lisp/flexichain-0.4.1
		>=dev-lisp/mcclim-0.9.5_p20080209"

src_compile() {
	cd Doc || die
	makeinfo --force ${PN}-internals.texi -o ${PN}-internals.info || die
	[[ -e ${PN}-internals.info ]] || die "Cannot build info docs(internals)"
	makeinfo --force ${PN}-user.texi -o ${PN}-user.info || die
	[[ -e ${PN}-user.info ]] || die "Cannot build info docs(user manual)"
	if use doc ; then
		VARTEXFONTS="${T}"/fonts \
			texi2pdf ${PN}-internals.texi -o ${PN}-internals.pdf \
			|| die "Cannot build PDF docs(internals)"
		VARTEXFONTS="${T}"/fonts \
			texi2pdf ${PN}-user.texi -o ${PN}-user.pdf \
			|| die "Cannot build PDF docs(user manual)"
	fi
}

src_install() {
	common-lisp-install-sources *.lisp
	common-lisp-install-asdf
	dodoc INSTALL* README TODO
	doinfo Doc/${PN}-{internals,user}.info
	use doc && dodoc Doc/${PN}-{internals,user}.pdf
}

pkg_postinst() {
	use emacs && elisp-site-regen
}

pkg_postrm() {
	use emacs && elisp-site-regen
}