1 |
commit: fea8f09137649f007ea78fa031c187382e1633ef |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 3 01:52:26 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 3 03:07:29 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fea8f091 |
7 |
|
8 |
dev-tex/latex2html: add 2021.2 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-tex/latex2html/Manifest | 1 + |
13 |
.../files/latex2html-2021.2-respect-DESTDIR.patch | 24 +++++++ |
14 |
dev-tex/latex2html/latex2html-2021.2.ebuild | 81 ++++++++++++++++++++++ |
15 |
3 files changed, 106 insertions(+) |
16 |
|
17 |
diff --git a/dev-tex/latex2html/Manifest b/dev-tex/latex2html/Manifest |
18 |
index 99f8970b933..8a5311dffa9 100644 |
19 |
--- a/dev-tex/latex2html/Manifest |
20 |
+++ b/dev-tex/latex2html/Manifest |
21 |
@@ -1,3 +1,4 @@ |
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.2.tar.gz 1139791 BLAKE2B 4fa9b45a33dbfb5c9e3bb45ebab19edb5d7a1d9c882ab30e75afbda7ad902cf519403b685f1f30b69b3d6ec976aa72b3065851b6d24b00c2e626e496ea8afd79 SHA512 b8d742b427e833f732457194cc60c043f750d202c46fb0d1d4e46df8e6d4dabacb5b474084aec46aa4eed68ee0249f3c0b053b5446401d09034e7f59148ad18a |
25 |
DIST latex2html-2021.tar.gz 1130224 BLAKE2B c3775b2546a866834c0ed94362a428f2cfe48e8fe7337261993fe1f473350ddb778c50cc4393fe33c9f3829e5dc6f5c0ef43ae6a4c21481746023ef5939308da SHA512 f1f087a58911410b3ca9f4b60149b66d17608a9a56d0e8f74f08e6d6595e3e9c4f5378a7ab5cfc7488cd182a0dc3d4c151283b57636a70271c7f734e69ed0608 |
26 |
|
27 |
diff --git a/dev-tex/latex2html/files/latex2html-2021.2-respect-DESTDIR.patch b/dev-tex/latex2html/files/latex2html-2021.2-respect-DESTDIR.patch |
28 |
new file mode 100644 |
29 |
index 00000000000..8ddd83d594d |
30 |
--- /dev/null |
31 |
+++ b/dev-tex/latex2html/files/latex2html-2021.2-respect-DESTDIR.patch |
32 |
@@ -0,0 +1,24 @@ |
33 |
+From 263eb47193ff9b0bd987b7f72eb7b331b96f9f96 Mon Sep 17 00:00:00 2001 |
34 |
+From: Sam James <sam@g.o> |
35 |
+Date: Sat, 3 Jul 2021 02:50:53 +0100 |
36 |
+Subject: [PATCH] Respect DESTDIR |
37 |
+ |
38 |
+--- |
39 |
+ config/install.pl | 1 + |
40 |
+ 1 file changed, 1 insertion(+) |
41 |
+ |
42 |
+diff --git a/config/install.pl b/config/install.pl |
43 |
+index d732176..678eaa6 100755 |
44 |
+--- a/config/install.pl |
45 |
++++ b/config/install.pl |
46 |
+@@ -376,6 +376,7 @@ if($cfg{TEXPATH}) { |
47 |
+ print "\nNote: trying to install LaTeX2HTML style files in TeX directory tree\n ($cfg{TEXPATH})\n"; |
48 |
+ my $dir = 'texinputs'; |
49 |
+ my $dest = $cfg{TEXPATH}; |
50 |
++ $dest = $ENV{'DESTDIR'}.$dest if($ENV{'DESTDIR'}); |
51 |
+ unless(opendir(DIR,$dir)) { |
52 |
+ print STDERR qq{Error: Could not read directory "$dir": $!\n}; |
53 |
+ } else { |
54 |
+-- |
55 |
+2.32.0 |
56 |
+ |
57 |
|
58 |
diff --git a/dev-tex/latex2html/latex2html-2021.2.ebuild b/dev-tex/latex2html/latex2html-2021.2.ebuild |
59 |
new file mode 100644 |
60 |
index 00000000000..61f530befb7 |
61 |
--- /dev/null |
62 |
+++ b/dev-tex/latex2html/latex2html-2021.2.ebuild |
63 |
@@ -0,0 +1,81 @@ |
64 |
+# Copyright 1999-2021 Gentoo Authors |
65 |
+# Distributed under the terms of the GNU General Public License v2 |
66 |
+ |
67 |
+EAPI=7 |
68 |
+ |
69 |
+DESCRIPTION="Convertor written in Perl that converts LATEX documents to HTML" |
70 |
+HOMEPAGE="https://www.latex2html.org/" |
71 |
+SRC_URI="https://github.com/latex2html/latex2html/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
72 |
+ |
73 |
+LICENSE="GPL-2" |
74 |
+SLOT="0" |
75 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
76 |
+IUSE="gif png" |
77 |
+ |
78 |
+DEPEND=" |
79 |
+ app-text/ghostscript-gpl |
80 |
+ virtual/latex-base |
81 |
+ media-libs/netpbm |
82 |
+ dev-lang/perl |
83 |
+ gif? ( media-libs/giflib ) |
84 |
+ png? ( media-libs/libpng:0 )" |
85 |
+RDEPEND="${DEPEND}" |
86 |
+ |
87 |
+PATCHES=( |
88 |
+ "${FILESDIR}"/${PN}-2021.2-respect-DESTDIR.patch |
89 |
+) |
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+=" --disable-images" |
101 |
+ |
102 |
+ econf \ |
103 |
+ --libdir="${EPREFIX}"/usr/$(get_libdir)/latex2html \ |
104 |
+ --shlibdir="${EPREFIX}"/usr/$(get_libdir)/latex2html \ |
105 |
+ --enable-pk \ |
106 |
+ --enable-eps \ |
107 |
+ --enable-reverse \ |
108 |
+ --enable-pipes \ |
109 |
+ --enable-paths \ |
110 |
+ --enable-wrapper \ |
111 |
+ --with-texpath="${EPREFIX}"/usr/share/texmf-site/tex/latex/html \ |
112 |
+ --without-mktexlsr \ |
113 |
+ $(use_enable gif) \ |
114 |
+ $(use_enable png) \ |
115 |
+ ${myconf} |
116 |
+} |
117 |
+ |
118 |
+src_install() { |
119 |
+ emake DESTDIR="${D}" install |
120 |
+ |
121 |
+ # make /usr/share/latex2html sticky |
122 |
+ keepdir /usr/share/latex2html |
123 |
+ |
124 |
+ # clean the perl scripts up to remove references to the sandbox |
125 |
+ local dir="${ED}/usr/$(get_libdir)/latex2html" |
126 |
+ if use png || use gif; then |
127 |
+ # pstoimg isn't built unless gif or png useflags are enabled |
128 |
+ sed -i -e "s:${T}:/tmp:g" "${dir}"/pstoimg.pl || die |
129 |
+ fi |
130 |
+ |
131 |
+ sed -i -e "s:${S}::g" "${dir}"/latex2html.pl || die |
132 |
+ sed -i -e "s:${T}:/tmp:g" "${dir}"/cfgcache.pm || die |
133 |
+ sed -i -e "s:${T}:/tmp:g" "${dir}"/l2hconf.pm || die |
134 |
+ |
135 |
+ dodoc BUGS Changes FAQ MANIFEST README.md TODO |
136 |
+} |
137 |
+ |
138 |
+pkg_postinst() { |
139 |
+ "${EROOT}"/usr/bin/mktexlsr |
140 |
+} |
141 |
+ |
142 |
+pkg_postrm() { |
143 |
+ "${EROOT}"/usr/bin/mktexlsr |
144 |
+} |