diff options
author | Alexis Ballier <aballier@gentoo.org> | 2015-12-11 12:27:54 +0100 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2015-12-11 12:28:35 +0100 |
commit | 9923403672135fb533d0634e3d1debe180b4308f (patch) | |
tree | aab2b436e4965f7b60152ce0b63df5d21ab58158 /dev-tex/hevea/hevea-2.26.ebuild | |
parent | dev-libs/openssl: ia64 stable wrt bug #567476 (diff) | |
download | gentoo-9923403672135fb533d0634e3d1debe180b4308f.tar.gz gentoo-9923403672135fb533d0634e3d1debe180b4308f.tar.bz2 gentoo-9923403672135fb533d0634e3d1debe180b4308f.zip |
dev-tex/hevea: bump to 2.26
Package-Manager: portage-2.2.26
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-tex/hevea/hevea-2.26.ebuild')
-rw-r--r-- | dev-tex/hevea/hevea-2.26.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/dev-tex/hevea/hevea-2.26.ebuild b/dev-tex/hevea/hevea-2.26.ebuild new file mode 100644 index 000000000000..90a000220df6 --- /dev/null +++ b/dev-tex/hevea/hevea-2.26.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils multilib + +IUSE="+ocamlopt" + +DESCRIPTION="HeVeA is a quite complete and fast LaTeX to HTML translator" +HOMEPAGE="http://hevea.inria.fr/" +SRC_URI="http://hevea.inria.fr/distri/${P}.tar.gz" + +LICENSE="QPL" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" + +DEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]" +RDEPEND="${DEPEND} + dev-texlive/texlive-latexextra" + +src_compile() { + rm -f config.sh + emake PREFIX=/usr DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)/hevea" LATEXLIBDIR="/usr/share/texmf-site/tex/latex/hevea" config.sh || die "Failed to create config.sh" + if use ocamlopt; then + emake PREFIX=/usr || die "Failed to build native code binaries" + else + emake PREFIX=/usr TARGET=byte || die "Failed to build bytecode binaries" + fi +} + +src_install() { + if use ocamlopt; then + emake DESTDIR="${D}" PREFIX=/usr install || die "Install failed" + else + emake DESTDIR="${D}" PREFIX=/usr TARGET=byte install || die "Install failed" + fi + + dodoc README CHANGES +} + +# If texmf-update is present this means we have a latex install; update it so +# that hevea.sty can be found +# Do not (r)depend on latex though because hevea does not need it itself +# If latex is installed later, it will see hevea.sty + +pkg_postinst() { + if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then + /usr/sbin/texmf-update + fi +} + +pkg_postrm() { + if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then + /usr/sbin/texmf-update + fi +} |