From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 15C4B1396D9 for ; Wed, 18 Oct 2017 10:06:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A62432BC025; Wed, 18 Oct 2017 10:06:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 774072BC025 for ; Wed, 18 Oct 2017 10:06:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6AA0F33D4A6 for ; Wed, 18 Oct 2017 10:06:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B63F182A for ; Wed, 18 Oct 2017 10:06:49 +0000 (UTC) From: "Alexis Ballier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexis Ballier" Message-ID: <1508321204.a236e647782bed2c575a28da4b9443b4296742b9.aballier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-tex/hevea/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-tex/hevea/Manifest dev-tex/hevea/hevea-2.31.ebuild X-VCS-Directories: dev-tex/hevea/ X-VCS-Committer: aballier X-VCS-Committer-Name: Alexis Ballier X-VCS-Revision: a236e647782bed2c575a28da4b9443b4296742b9 X-VCS-Branch: master Date: Wed, 18 Oct 2017 10:06:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: fd0a87bd-b2aa-41dd-8fb8-e49b815a18b5 X-Archives-Hash: 503b24cfddee9a908d141ec7a90598f3 commit: a236e647782bed2c575a28da4b9443b4296742b9 Author: Alexis Ballier gentoo org> AuthorDate: Wed Oct 18 10:05:52 2017 +0000 Commit: Alexis Ballier gentoo org> CommitDate: Wed Oct 18 10:06:44 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a236e647 dev-tex/hevea: bump to 2.31 Package-Manager: Portage-2.3.11, Repoman-2.3.3 dev-tex/hevea/Manifest | 1 + dev-tex/hevea/hevea-2.31.ebuild | 58 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) diff --git a/dev-tex/hevea/Manifest b/dev-tex/hevea/Manifest index 2eac8bf30db..7eac3c34461 100644 --- a/dev-tex/hevea/Manifest +++ b/dev-tex/hevea/Manifest @@ -1,2 +1,3 @@ DIST hevea-2.29.tar.gz 969599 SHA256 06bf0b01834a25358415c666a0a477effc12eeeb1da4da1eeefaca67b29af8c4 SHA512 4ea2f3d60fd43d183712a868cb3894b38f6d9809ba7905d69123a7672faba0d6dfe73ad1379d7996ede98ceb645bba903e5b7550bdf92e7950ce69ba7f4f3994 WHIRLPOOL e336c088d862442d3b44acaeec19064c69ecf2c6bb1c1e50822e383b03b90201d9eced19f234f3ea07de47c8cdfd0e9447cc276aac4f5a946285552c994a258e DIST hevea-2.30.tar.gz 965635 SHA256 9e93deac8d2cc62a8d9eae2817094cdba81cabef264d009f3d434d85ab9a249c SHA512 75c700e009070bff4845ccc6f984ade8068f90ea78630a2e6ab1d27618a225a4bbbb7c4aa07c08be03094ddad4aac5d0c9e83fa01d41ff501f5c1eed9f4428eb WHIRLPOOL d91e124108b0b10cfe37d342e78d668ce75522b09e2e385119eab9cb0b253cdf04d92b6b207363fdd4c0939dc4ab706ae9bbabdc8e46cda8353a43a0ee856e13 +DIST hevea-2.31.tar.gz 965678 SHA256 fbd7ad20aff45e557f5835f99a53d29a1753657cf2c004f26de83345b1b5b997 SHA512 4b66030f69b8b60750f8e62a9d81240b0ba399af8af69df10b33742e10d23fe7aef3e7782265fac9705f27715e5964debd47b9da7a394f70fda947b5fcd2d6ea WHIRLPOOL 35983a87e6210bab40198bbbafd64d44164daa462de5418b68b6e29e18cbb836b100e78177343c52da6e5df16367343effc9220c13bf855d651ad69c7aa6d350 diff --git a/dev-tex/hevea/hevea-2.31.ebuild b/dev-tex/hevea/hevea-2.31.ebuild new file mode 100644 index 00000000000..a09af4ace2c --- /dev/null +++ b/dev-tex/hevea/hevea-2.31.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" + +DEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]" +RDEPEND="${DEPEND} + dev-texlive/texlive-latexextra" +DEPEND="${DEPEND} dev-ml/ocamlbuild" + +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 +}