# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit common-lisp-3 eutils MY_P=${PN}_${PV:0:3}-${PV:4} DESCRIPTION="Common Lisp networking library for handling e-mail from Maildir, POP3, IMAP and SMTP" HOMEPAGE="http://common-lisp.net/project/mel-base/" SRC_URI="http://common-lisp.net/project/mel-base/release/${MY_P}.tar.gz" LICENSE="BSD-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~sparc ~x86" IUSE="doc" DEPEND="doc? ( virtual/texi2dvi )" RDEPEND="!dev-lisp/cl-${PN} app-misc/mime-types" S="${WORKDIR}"/${MY_P} src_unpack() { unpack ${A} } src_prepare() { sed -i 's:0\.7\.0:0\.8\.0:' "${S}"/${PN}.asd } src_compile() { cd docs/manual # must fix userguide.texinfo # makeinfo mel.texinfo -o ${PN}.info || die "Cannot build info docs" if use doc ; then VARTEXFONTS="${T}"/fonts \ texi2pdf mel.texinfo -o ${PN}.pdf || die "Cannot build PDF docs" fi } src_install() { common-lisp-install-sources *.lisp folders lisp-dep protocols common-lisp-install-asdf # must fix userguide.texinfo # doinfo docs/manual/${PN}.info use doc && dodoc docs/manual/${PN}.pdf }