# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=6 inherit latex-package S=${WORKDIR} DESCRIPTION="The LaTeX package for JCAP" HOMEPAGE="https://jcap.sissa.it/jcap/help/JCAP_TeXclass.jsp" SRC_URI="https://jcap.sissa.it/jcap/help/JCAP/TeXclass/DOCS/JCAP-author-doc.tar.gz" LICENSE="LPPL-1.3c" SLOT="0" KEYWORDS="~amd64" IUSE="doc examples" DEPEND="" RDEPEND=">=dev-texlive/texlive-latex-2012" src_unpack(){ unpack ${A} if use examples; then tar -xf example.tar.gz rm example/jcappub.sty fi } src_install() { if ! use doc; then rm *pdf fi latex-package_src_install if use examples; then dodoc -r example fi }