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

inherit common-lisp

MY_PV=${PV:0:3}
MY_PATCH_PV=${PV:5}

DESCRIPTION="yaclml is a collection of macros and utilities for generating XML/HTML like markup from lisp code"
HOMEPAGE="http://common-lisp.net/project/bese/yaclml.html"
SRC_URI="mirror://gentoo/yaclml--dev--${MY_PV}--patch-${MY_PATCH_PV}.tar.bz2"
# SRC_URI="ftp://ftp.common-lisp.net/pub/project/bese/yaclml_${PV}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc x86"
IUSE="doc"
DEPEND="dev-lisp/cl-iterate
	dev-lisp/cl-arnesi
	doc? ( virtual/tetex )"

CLPACKAGE="yaclml"

S=${WORKDIR}/yaclml--dev--${MY_PV}--patch-${MY_PATCH_PV}
# S=${WORKDIR}/yaclml_${PV}

src_unpack() {
	unpack ${A}
	find ${S}/ -type d -name .arch-ids -exec rm -rf '{}' \; &>/dev/null
}

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

src_install() {
	dodir /usr/share/common-lisp/source/yaclml
	dodir /usr/share/common-lisp/systems
	cp -R src ${D}/usr/share/common-lisp/source/yaclml/
	common-lisp-install yaclml.asd
	common-lisp-system-symlink
	dosym /usr/share/common-lisp/source/yaclml/yaclml.asd \
		/usr/share/common-lisp/systems/
	use doc && dodoc docs/yaclml.pdf
}