74 lines
1.6 KiB
Bash
74 lines
1.6 KiB
Bash
# Copyright 1999-2014 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Id$
|
|
|
|
EAPI="5"
|
|
|
|
inherit eutils autotools texlive-common
|
|
|
|
MY_PN=${PN/ctive-/}
|
|
MY_P=${MY_PN}-${PV}
|
|
S=${WORKDIR}/${MY_P}
|
|
|
|
DESCRIPTION="A DVI previewer and a presenter for slides written in LaTeX"
|
|
SRC_URI="http://gallium.inria.fr/advi/${MY_P}.tar.gz"
|
|
HOMEPAGE="http://gallium.inria.fr/advi/"
|
|
LICENSE="LGPL-2.1"
|
|
|
|
IUSE="+ocamlopt"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~ppc x86"
|
|
|
|
RDEPEND=">=dev-lang/ocaml-3.11.2:=[ocamlopt?]
|
|
>=dev-ml/camlimages-4.0.1:=[truetype,tiff,jpeg,postscript,X]
|
|
virtual/latex-base
|
|
app-text/ghostscript-gpl
|
|
x11-libs/libXinerama"
|
|
DEPEND="${RDEPEND}
|
|
dev-texlive/texlive-pstricks
|
|
dev-texlive/texlive-pictures
|
|
dev-texlive/texlive-latexextra
|
|
x11-proto/xineramaproto
|
|
dev-ml/findlib
|
|
app-text/htmlc
|
|
dev-tex/hevea"
|
|
|
|
DOCS=( "README" "TODO" )
|
|
|
|
src_prepare() {
|
|
epatch "${FILESDIR}/${PN}-1.9-htmlcflags.patch"
|
|
AT_M4DIR="." eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
TEXMFMAIN="${EPREFIX}"/usr/share/texmf-site econf $(use_enable ocamlopt native-program) \
|
|
--docdir="${EPREFIX}/usr/share/doc/${PF}" --enable-dependency-tracking #486066
|
|
}
|
|
|
|
src_compile() {
|
|
export VARTEXFONTS="${T}/fonts"
|
|
emake
|
|
cd doc || die
|
|
emake splash.dvi scratch_write_splash.dvi scratch_draw_splash.dvi
|
|
}
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" PACKAGE="${PF}" install
|
|
|
|
# now install the documentation
|
|
dodoc ${DOCS}
|
|
|
|
export STRIP_MASK="*/bin/advi.byt"
|
|
|
|
for i in "${ED}/usr/share/doc/${PF}/"*.dvi ; do
|
|
docompress -x /usr/share/doc/${PF}/$(basename $i)
|
|
done
|
|
}
|
|
|
|
pkg_postinst() {
|
|
etexmf-update
|
|
}
|
|
|
|
pkg_postrm() {
|
|
etexmf-update
|
|
}
|