Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-tex/hevea/
Date: Sat, 29 Jul 2017 10:06:09
Message-Id: 1501322738.0286a6e136388ba55f3607e309ff4532e0da94b7.aballier@gentoo
1 commit: 0286a6e136388ba55f3607e309ff4532e0da94b7
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 28 08:41:38 2017 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 29 10:05:38 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0286a6e1
7
8 dev-tex/hevea: bump to 2.30
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.3
11
12 dev-tex/hevea/Manifest | 1 +
13 dev-tex/hevea/hevea-2.30.ebuild | 58 +++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 59 insertions(+)
15
16 diff --git a/dev-tex/hevea/Manifest b/dev-tex/hevea/Manifest
17 index 2208c00f32c..2eac8bf30db 100644
18 --- a/dev-tex/hevea/Manifest
19 +++ b/dev-tex/hevea/Manifest
20 @@ -1 +1,2 @@
21 DIST hevea-2.29.tar.gz 969599 SHA256 06bf0b01834a25358415c666a0a477effc12eeeb1da4da1eeefaca67b29af8c4 SHA512 4ea2f3d60fd43d183712a868cb3894b38f6d9809ba7905d69123a7672faba0d6dfe73ad1379d7996ede98ceb645bba903e5b7550bdf92e7950ce69ba7f4f3994 WHIRLPOOL e336c088d862442d3b44acaeec19064c69ecf2c6bb1c1e50822e383b03b90201d9eced19f234f3ea07de47c8cdfd0e9447cc276aac4f5a946285552c994a258e
22 +DIST hevea-2.30.tar.gz 965635 SHA256 9e93deac8d2cc62a8d9eae2817094cdba81cabef264d009f3d434d85ab9a249c SHA512 75c700e009070bff4845ccc6f984ade8068f90ea78630a2e6ab1d27618a225a4bbbb7c4aa07c08be03094ddad4aac5d0c9e83fa01d41ff501f5c1eed9f4428eb WHIRLPOOL d91e124108b0b10cfe37d342e78d668ce75522b09e2e385119eab9cb0b253cdf04d92b6b207363fdd4c0939dc4ab706ae9bbabdc8e46cda8353a43a0ee856e13
23
24 diff --git a/dev-tex/hevea/hevea-2.30.ebuild b/dev-tex/hevea/hevea-2.30.ebuild
25 new file mode 100644
26 index 00000000000..a09af4ace2c
27 --- /dev/null
28 +++ b/dev-tex/hevea/hevea-2.30.ebuild
29 @@ -0,0 +1,58 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=5
34 +
35 +inherit eutils multilib
36 +
37 +IUSE="+ocamlopt"
38 +
39 +DESCRIPTION="HeVeA is a quite complete and fast LaTeX to HTML translator"
40 +HOMEPAGE="http://hevea.inria.fr/"
41 +SRC_URI="http://hevea.inria.fr/distri/${P}.tar.gz"
42 +
43 +LICENSE="QPL"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
46 +
47 +DEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]"
48 +RDEPEND="${DEPEND}
49 + dev-texlive/texlive-latexextra"
50 +DEPEND="${DEPEND} dev-ml/ocamlbuild"
51 +
52 +src_compile() {
53 + rm -f config.sh
54 + 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"
55 + if use ocamlopt; then
56 + emake PREFIX=/usr || die "Failed to build native code binaries"
57 + else
58 + emake PREFIX=/usr TARGET=byte || die "Failed to build bytecode binaries"
59 + fi
60 +}
61 +
62 +src_install() {
63 + if use ocamlopt; then
64 + emake DESTDIR="${D}" PREFIX=/usr install || die "Install failed"
65 + else
66 + emake DESTDIR="${D}" PREFIX=/usr TARGET=byte install || die "Install failed"
67 + fi
68 +
69 + dodoc README CHANGES
70 +}
71 +
72 +# If texmf-update is present this means we have a latex install; update it so
73 +# that hevea.sty can be found
74 +# Do not (r)depend on latex though because hevea does not need it itself
75 +# If latex is installed later, it will see hevea.sty
76 +
77 +pkg_postinst() {
78 + if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then
79 + /usr/sbin/texmf-update
80 + fi
81 +}
82 +
83 +pkg_postrm() {
84 + if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then
85 + /usr/sbin/texmf-update
86 + fi
87 +}