# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=2 inherit common-lisp-2 eutils MY_P=${PN}_${PV} DESCRIPTION="CL-STORE is a Common Lisp library for serializing and deserializing Common Lisp objects." HOMEPAGE="http://common-lisp.net/project/cl-store/" SRC_URI="http://common-lisp.net/project/${PN}/files/${MY_P}.tgz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~ppc ~sparc ~x86" IUSE="doc" DEPEND="sys-apps/texinfo doc? ( virtual/texi2dvi )" S="${WORKDIR}"/${PN} src_prepare() { rm xml* */custom-xml.lisp } src_compile() { cd doc makeinfo ${PN}.texi -o ${PN}.info || die "Cannot build info docs" if use doc ; then VARTEXFONTS="${T}"/fonts \ texi2pdf ${PN}.texi -o ${PN}.pdf || die "Cannot build PDF docs" fi } src_install() { common-lisp-install *.{lisp,asd} \ abcl acl allegrocl clisp cmucl ecl lispworks mcl openmcl sbcl common-lisp-symlink-asdf dodoc ChangeLog doinfo doc/${PN}.info use doc && dodoc doc/${PN}.pdf }