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