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/latex2html/files/, dev-tex/latex2html/
Date: Tue, 31 Jan 2017 08:56:49
Message-Id: 1485852993.ed9c9d43b7be518240c7749007b8a3393542d686.aballier@gentoo
1 commit: ed9c9d43b7be518240c7749007b8a3393542d686
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 31 08:56:21 2017 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 31 08:56:33 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed9c9d43
7
8 dev-tex/latex2html: Bump to 2017.2.
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 dev-tex/latex2html/Manifest | 1 +
13 dev-tex/latex2html/files/latex2html-tests.patch | 26 +++++++++
14 dev-tex/latex2html/latex2html-2017.2.ebuild | 77 +++++++++++++++++++++++++
15 3 files changed, 104 insertions(+)
16
17 diff --git a/dev-tex/latex2html/Manifest b/dev-tex/latex2html/Manifest
18 index 8166f3e..b81d86c 100644
19 --- a/dev-tex/latex2html/Manifest
20 +++ b/dev-tex/latex2html/Manifest
21 @@ -1,3 +1,4 @@
22 DIST latex2html-2008.tar.gz 1133054 SHA256 59456815a3984250c295d3d5c46b85646038db8db2735cdc0d3780cf4da337ad SHA512 e5a9d1700fcc45e6fcb7bae79e25acd52b7a84b70a75b3c7f1e746f65adbd48219a828420f6a7c437613d5c74dfb0405c91df01ac9c1535e9850f3a3e5c47f60 WHIRLPOOL 3d4dba64a2ce1b548749f5a5d489afba8694b2b6214dc5b7030820898d13a33dd708c751d2dc625a3d93930bcc0e483fa3e6736a2812c3baf395f70bb77404dc
23 DIST latex2html-2015.tar.gz 1217699 SHA256 248cf84c70dd31221ddc69ef7ce0e720aadd26b572ee412827eae62f0eefb8dd SHA512 dd031944250efd28691edeba5e83b4c5c0deec3a2e7c2ab2a9bd285a911f6ab21a02cd0ef697bebc2c7c7c0ebd285493c1d6b01b0db9355fc7f3316a2af65e2c WHIRLPOOL 27e086e44ace2cae80d0b29390d3ba63f426c3facd8ac5e4573b580260a3e859c29bd0496ed0f864c0e2644ff0105e9b0cfeb45d9812c54b97f6386c5844b0c9
24 +DIST latex2html-2017.2.tar.gz 1131438 SHA256 4b8c21ef292817c85ba553f560129723bcae4ee9a6ec7a22ce2289329db7c1ef SHA512 0e1ab1b2005dc71988b1500884d7a13bfbdce73a62ef7f6cc6e83e29d776c98eb09cff3f8d0c162493586094c9ca6f07d47e98d2137f223f27044d03e9bb3473 WHIRLPOOL a0d6145cc104e70ec43097e0af527e18df98fe9f7c668f994c219d1548920d74347dc9de59728d702f207bebc42b267f8a18faa6f912363000d3807f23ab1560
25 DIST latex2html-match-multiline.patch.bz2 8147 SHA256 fa4c74b1e6ef3fc337485b7940922aaa1aed0c33a533e75f4a97503547f4570e SHA512 01ec0dd1705f030736432a7fa8bf99c83c9e4f01c9755319d36e65e18737361d23073277692a8c44af529a1c37caabcc9e720a4be57e64300f945060e88f6641 WHIRLPOOL d0f69d16060d9829cafdc266acdb50e2071cf742841e7fcce524d69268c51036665670c0e3111e83dea8271cb0032f2362686c976a8b2c9032b50125ab3a9b2c
26
27 diff --git a/dev-tex/latex2html/files/latex2html-tests.patch b/dev-tex/latex2html/files/latex2html-tests.patch
28 new file mode 100644
29 index 00000000..1ada1a3
30 --- /dev/null
31 +++ b/dev-tex/latex2html/files/latex2html-tests.patch
32 @@ -0,0 +1,26 @@
33 +Index: latex2html-2017.2/styles/frames.perl
34 +===================================================================
35 +--- latex2html-2017.2.orig/styles/frames.perl
36 ++++ latex2html-2017.2/styles/frames.perl
37 +@@ -295,7 +295,7 @@ sub check_frame_colorset {
38 + elsif ($reverse == 1) {$colorset="${which}_colorset_star"}
39 + elsif ($reverse == 2) {$colorset="${which}_colorset_star_star"}
40 + else {$colorset="${which}_colorset"}
41 +- if (!(defined @$colorset))
42 ++ if (!(@$colorset))
43 + { print STDERR "\nframes for $which are not supported\n"; return($rest);}
44 + local($frame_tmp)=$frame_data;
45 + local($key, @values);
46 +Index: latex2html-2017.2/styles/natbib.perl
47 +===================================================================
48 +--- latex2html-2017.2.orig/styles/natbib.perl
49 ++++ latex2html-2017.2/styles/natbib.perl
50 +@@ -1451,7 +1451,7 @@ sub do_cmd_citestyle {
51 + local($_) = @_;
52 + s/$next_pair_pr_rx//o;
53 + local($style)="citestyle_$2";
54 +- if (defined @$style) {
55 ++ if (@$style) {
56 + ($CITE_OPEN_DELIM,
57 + $CITE_CLOSE_DELIM,
58 + $CITE_ENUM,
59
60 diff --git a/dev-tex/latex2html/latex2html-2017.2.ebuild b/dev-tex/latex2html/latex2html-2017.2.ebuild
61 new file mode 100644
62 index 00000000..4ec817e
63 --- /dev/null
64 +++ b/dev-tex/latex2html/latex2html-2017.2.ebuild
65 @@ -0,0 +1,77 @@
66 +# Copyright 1999-2017 Gentoo Foundation
67 +# Distributed under the terms of the GNU General Public License v2
68 +# $Id$
69 +
70 +EAPI=6
71 +
72 +DESCRIPTION="Convertor written in Perl that converts LATEX documents to HTML"
73 +HOMEPAGE="http://www.latex2html.org/"
74 +SRC_URI="http://mirrors.ctan.org/support/latex2html/${P}.tar.gz"
75 +
76 +LICENSE="GPL-2"
77 +SLOT="0"
78 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
79 +IUSE="gif png"
80 +
81 +DEPEND="app-text/ghostscript-gpl
82 + virtual/latex-base
83 + media-libs/netpbm
84 + dev-lang/perl
85 + gif? ( media-libs/giflib )
86 + png? ( media-libs/libpng:0 )"
87 +RDEPEND="${DEPEND}"
88 +
89 +PATCHES=( "${FILESDIR}/${PN}"-{destdir,tests}.patch )
90 +
91 +src_prepare() {
92 + default
93 +
94 + sed -i -e 's%@PERL@%'"${EPREFIX}"'/usr/bin/perl%g' wrapper/unix.pin || die
95 +}
96 +
97 +src_configure() {
98 + local myconf
99 +
100 + use gif || use png || myconf="${myconf} --disable-images"
101 +
102 + econf --libdir="${EPREFIX}"/usr/$(get_libdir)/latex2html \
103 + --shlibdir="${EPREFIX}"/usr/$(get_libdir)/latex2html \
104 + --enable-pk \
105 + --enable-eps \
106 + --enable-reverse \
107 + --enable-pipes \
108 + --enable-paths \
109 + --enable-wrapper \
110 + --with-texpath="${EPREFIX}"/usr/share/texmf-site/tex/latex/html \
111 + --without-mktexlsr \
112 + $(use_enable gif) \
113 + $(use_enable png) \
114 + ${myconf}
115 +}
116 +
117 +src_install() {
118 + emake DESTDIR="${D}" install
119 +
120 + # make /usr/share/latex2html sticky
121 + keepdir /usr/share/latex2html
122 +
123 + # clean the perl scripts up to remove references to the sandbox
124 + local dir="${ED}/usr/$(get_libdir)/latex2html"
125 + if use png || use gif; then
126 + # pstoimg isn't built unless gif or png useflags are enabled
127 + sed -i -e "s:${T}:/tmp:g" "${dir}"/pstoimg.pl || die
128 + fi
129 + sed -i -e "s:${S}::g" "${dir}"/latex2html.pl || die
130 + sed -i -e "s:${T}:/tmp:g" "${dir}"/cfgcache.pm || die
131 + sed -i -e "s:${T}:/tmp:g" "${dir}"/l2hconf.pm || die
132 +
133 + dodoc BUGS Changes FAQ MANIFEST README.md TODO
134 +}
135 +
136 +pkg_postinst() {
137 + "${EROOT}"/usr/bin/mktexlsr
138 +}
139 +
140 +pkg_postrm() {
141 + "${EROOT}"/usr/bin/mktexlsr
142 +}