1 |
commit: f402bd3bee8ca39820d9908c93ad54b8197b4c5b |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 7 23:11:24 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 7 23:11:24 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f402bd3b |
7 |
|
8 |
dev-tex/latex2html: fix netpbm dependency |
9 |
|
10 |
Bug: https://bugs.gentoo.org/822360 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
dev-tex/latex2html/latex2html-2021.2-r1.ebuild | 81 ++++++++++++++++++++++++++ |
14 |
1 file changed, 81 insertions(+) |
15 |
|
16 |
diff --git a/dev-tex/latex2html/latex2html-2021.2-r1.ebuild b/dev-tex/latex2html/latex2html-2021.2-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..878ee71d34e |
19 |
--- /dev/null |
20 |
+++ b/dev-tex/latex2html/latex2html-2021.2-r1.ebuild |
21 |
@@ -0,0 +1,81 @@ |
22 |
+# Copyright 1999-2021 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+DESCRIPTION="Convertor written in Perl that converts LaTeX documents to HTML" |
28 |
+HOMEPAGE="https://www.latex2html.org/" |
29 |
+SRC_URI="https://github.com/latex2html/latex2html/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
30 |
+ |
31 |
+LICENSE="GPL-2" |
32 |
+SLOT="0" |
33 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
34 |
+IUSE="gif png" |
35 |
+ |
36 |
+DEPEND=" |
37 |
+ app-text/ghostscript-gpl |
38 |
+ virtual/latex-base |
39 |
+ >=media-libs/netpbm-10.86.24 |
40 |
+ dev-lang/perl |
41 |
+ gif? ( media-libs/giflib ) |
42 |
+ png? ( media-libs/libpng:0 )" |
43 |
+RDEPEND="${DEPEND}" |
44 |
+ |
45 |
+PATCHES=( |
46 |
+ "${FILESDIR}"/${PN}-2021.2-respect-DESTDIR.patch |
47 |
+) |
48 |
+ |
49 |
+src_prepare() { |
50 |
+ default |
51 |
+ |
52 |
+ sed -i -e 's%@PERL@%'"${EPREFIX}"'/usr/bin/perl%g' wrapper/unix.pin || die |
53 |
+} |
54 |
+ |
55 |
+src_configure() { |
56 |
+ local myconf |
57 |
+ |
58 |
+ use gif || use png || myconf+=" --disable-images" |
59 |
+ |
60 |
+ econf \ |
61 |
+ --libdir="${EPREFIX}"/usr/$(get_libdir)/latex2html \ |
62 |
+ --shlibdir="${EPREFIX}"/usr/$(get_libdir)/latex2html \ |
63 |
+ --enable-pk \ |
64 |
+ --enable-eps \ |
65 |
+ --enable-reverse \ |
66 |
+ --enable-pipes \ |
67 |
+ --enable-paths \ |
68 |
+ --enable-wrapper \ |
69 |
+ --with-texpath="${EPREFIX}"/usr/share/texmf-site/tex/latex/html \ |
70 |
+ --without-mktexlsr \ |
71 |
+ $(use_enable gif) \ |
72 |
+ $(use_enable png) \ |
73 |
+ ${myconf} |
74 |
+} |
75 |
+ |
76 |
+src_install() { |
77 |
+ emake DESTDIR="${D}" install |
78 |
+ |
79 |
+ # make /usr/share/latex2html sticky |
80 |
+ keepdir /usr/share/latex2html |
81 |
+ |
82 |
+ # clean the perl scripts up to remove references to the sandbox |
83 |
+ local dir="${ED}/usr/$(get_libdir)/latex2html" |
84 |
+ if use png || use gif; then |
85 |
+ # pstoimg isn't built unless gif or png useflags are enabled |
86 |
+ sed -i -e "s:${T}:/tmp:g" "${dir}"/pstoimg.pl || die |
87 |
+ fi |
88 |
+ |
89 |
+ sed -i -e "s:${S}::g" "${dir}"/latex2html.pl || die |
90 |
+ sed -i -e "s:${T}:/tmp:g" "${dir}"/cfgcache.pm || die |
91 |
+ sed -i -e "s:${T}:/tmp:g" "${dir}"/l2hconf.pm || die |
92 |
+ |
93 |
+ dodoc BUGS Changes FAQ MANIFEST README.md TODO |
94 |
+} |
95 |
+ |
96 |
+pkg_postinst() { |
97 |
+ "${EROOT}"/usr/bin/mktexlsr |
98 |
+} |
99 |
+ |
100 |
+pkg_postrm() { |
101 |
+ "${EROOT}"/usr/bin/mktexlsr |
102 |
+} |