Gentoo Archives: gentoo-commits

From: "Andreas K. Huettel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/dilfridge:master commit in: dev-tex/latex2html/, dev-tex/latex2html/files/
Date: Fri, 25 Feb 2011 09:06:10
Message-Id: e54453fbf6818f7576e6050dad6c8aa0ae9727c6.dilfridge@gentoo
1 commit: e54453fbf6818f7576e6050dad6c8aa0ae9727c6
2 Author: Andreas K. Huettel (dilfridge) <mail <AT> akhuettel <DOT> de>
3 AuthorDate: Fri Feb 25 08:25:46 2011 +0000
4 Commit: Andreas K. Huettel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 25 08:25:46 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/dilfridge.git;a=commit;h=e54453fb
7
8 [dev-tex/latex2html] copied from main tree
9
10 ---
11 dev-tex/latex2html/ChangeLog | 267 ++++++++++++++++++++
12 dev-tex/latex2html/Manifest | 18 ++
13 .../files/latex2html-convert-length.patch | 22 ++
14 dev-tex/latex2html/files/latex2html-destdir.patch | 15 ++
15 .../files/latex2html-extract-major-version.patch | 12 +
16 .../latex2html/files/latex2html-perl_name.patch | 11 +
17 dev-tex/latex2html/latex2html-2008.ebuild | 82 ++++++
18 dev-tex/latex2html/metadata.xml | 5 +
19 8 files changed, 432 insertions(+), 0 deletions(-)
20
21 diff --git a/dev-tex/latex2html/ChangeLog b/dev-tex/latex2html/ChangeLog
22 new file mode 100644
23 index 0000000..b0efd10
24 --- /dev/null
25 +++ b/dev-tex/latex2html/ChangeLog
26 @@ -0,0 +1,267 @@
27 +# ChangeLog for dev-tex/latex2html
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-tex/latex2html/ChangeLog,v 1.52 2010/06/12 12:31:43 aballier Exp $
30 +
31 + 12 Jun 2010; Alexis Ballier <aballier@g.o> latex2html-2008.ebuild:
32 + do not try to sed a file that does not exist when use=-gif -png is used,
33 + bug #298589
34 +
35 + 26 Dec 2009; Peter Volkov <pva@g.o> latex2html-2008.ebuild:
36 + virtual/ghostscript->app-text/ghostscript-gpl: ghostscript-gpl is the only
37 + implementation left in the tree.
38 +
39 + 05 Aug 2009; Alexis Ballier <aballier@g.o> latex2html-2008.ebuild:
40 + assign RDEPEND explicitly
41 +
42 + 05 Aug 2009; Alexis Ballier <aballier@g.o>
43 + -latex2html-2002.2.1_pre20041025-r1.ebuild:
44 + remove old
45 +
46 + 30 Jan 2009; Jeroen Roovers <jer@g.o> latex2html-2008.ebuild:
47 + Stable for HPPA (bug #253990).
48 +
49 + 23 Jan 2009; Raúl Porcel <armin76@g.o> latex2html-2008.ebuild:
50 + arm/ia64/s390/sh stable wrt #253990
51 +
52 + 10 Jan 2009; Markus Meier <maekke@g.o> latex2html-2008.ebuild:
53 + amd64/x86 stable, bug #253990
54 +
55 + 10 Jan 2009; Tobias Klausmann <klausman@g.o>
56 + latex2html-2008.ebuild:
57 + Stable on alpha, bug #253990
58 +
59 + 09 Jan 2009; Joseph Jezak <josejx@g.o> latex2html-2008.ebuild:
60 + Marked ppc/ppc64 stable for bug #253990.
61 +
62 + 09 Jan 2009; Ferris McCormick <fmccor@g.o> latex2html-2008.ebuild:
63 + Sparc stable, Bug #253990.
64 +
65 +*latex2html-2008 (31 Oct 2008)
66 +
67 + 31 Oct 2008; Alexis Ballier <aballier@g.o>
68 + files/latex2html-convert-length.patch, +files/latex2html-destdir.patch,
69 + +latex2html-2008.ebuild:
70 + Version bump. Remove files already provided by our latex installs, bug
71 + #240980. Install latex files to texmf-site. Apply patch from bug #143831
72 + to avoid using obsolete functions.
73 +
74 + 14 Oct 2007; Alexis Ballier <aballier@g.o>
75 + latex2html-2002.2.1_pre20041025-r1.ebuild:
76 + virtual/tetex -> virtual/latex-base
77 +
78 + 14 Oct 2007; Alexis Ballier <aballier@g.o>
79 + latex2html-2002.2.1_pre20041025-r1.ebuild:
80 + variable quoting
81 +
82 + 14 Oct 2007; Alexis Ballier <aballier@g.o>
83 + -latex2html-2002.2.ebuild, -latex2html-2002.2.1_pre20041025.ebuild:
84 + remove old versions
85 +
86 + 11 Apr 2007; Jeroen Roovers <jer@g.o>
87 + latex2html-2002.2.1_pre20041025-r1.ebuild:
88 + Stable for HPPA too.
89 +
90 + 12 Mar 2007; Alexandre Buisse <nattfodd@g.o> metadata.xml:
91 + Replaced text-markup by tex as maintaining herd (text-markup split).
92 +
93 + 04 Mar 2007; Olivier Crête <tester@g.o>
94 + latex2html-2002.2.1_pre20041025-r1.ebuild:
95 + Stable on amd64
96 +
97 + 20 Oct 2006; Bryan Østergaard <kloeri@g.o>
98 + latex2html-2002.2.1_pre20041025-r1.ebuild:
99 + Stable on Alpha.
100 +
101 + 03 Sep 2006; Michael Hanselmann <hansmi@g.o>
102 + latex2html-2002.2.1_pre20041025-r1.ebuild:
103 + Stable on ppc.
104 +
105 + 30 Aug 2006; Gustavo Zacarias <gustavoz@g.o>
106 + latex2html-2002.2.1_pre20041025-r1.ebuild:
107 + Stable on sparc
108 +
109 + 24 Aug 2006; Markus Rothe <corsair@g.o>
110 + latex2html-2002.2.1_pre20041025-r1.ebuild:
111 + Stable on ppc64
112 +
113 + 16 Jul 2006; Tobias Scherbaum <dertobi123@g.o>
114 + latex2html-2002.2.1_pre20041025.ebuild:
115 + hppa stable, bug #139612
116 +
117 + 07 Jul 2006; Diego Pettenò <flameeyes@g.o>
118 + latex2html-2002.2.1_pre20041025-r1.ebuild:
119 + Add ~x86-fbsd keyword.
120 +
121 + 02 Jun 2006; Martin Ehmsen <ehmsen@g.o>
122 + +files/latex2html-extract-major-version.patch,
123 + latex2html-2002.2.1_pre20041025-r1.ebuild:
124 + Fixed the extraction of netpbms major verions number in config/config.pl,
125 + bug #122927.
126 +
127 +*latex2html-2002.2.1_pre20041025-r1 (23 May 2006)
128 +
129 + 23 May 2006; Alexandre Buisse <nattfodd@g.o>
130 + +files/latex2html-perl_name.patch,
131 + +latex2html-2002.2.1_pre20041025-r1.ebuild:
132 + Fix the perl executable name so it can survive perl bumps. Fixes bug #80468.
133 +
134 + 12 May 2006; Tobias Scherbaum <dertobi123@g.o>
135 + latex2html-2002.2.1_pre20041025.ebuild:
136 + Added ~hppa
137 +
138 + 09 Mar 2006; Martin Ehmsen <ehmsen@g.o>
139 + latex2html-2002.2.1_pre20041025.ebuild:
140 + Removed INSTALL from dodoc, found by QA script.
141 +
142 + 21 Feb 2006; Alexandre Buisse <nattfodd@g.o>
143 + +files/latex2html-convert-length.patch, latex2html-2002.2.ebuild,
144 + latex2html-2002.2.1_pre20041025.ebuild:
145 + Corrects a warning (possibly an error with some perl versions) in make check
146 + (bug #122927).
147 +
148 + 02 Oct 2005; Aron Griffis <agriffis@g.o>
149 + latex2html-2002.2.1_pre20041025.ebuild:
150 + Mark 2002.2.1_pre20041025 stable on ia64
151 +
152 + 26 Aug 2005; Aron Griffis <agriffis@g.o>
153 + latex2html-2002.2.1_pre20041025.ebuild:
154 + add ~ia64
155 +
156 + 04 Jun 2005; Mamoru KOMACHI <usata@g.o> latex2html-2002.2.ebuild,
157 + latex2html-2002.2.1_pre20041025.ebuild:
158 + Removed libungif dep; bug #94946.
159 +
160 + 21 Apr 2005; Michael Hanselmann <hansmi@g.o>
161 + latex2html-2002.2.1_pre20041025.ebuild:
162 + Stable on ppc.
163 +
164 + 08 Apr 2005; Markus Rothe <corsair@g.o>
165 + latex2html-2002.2.1_pre20041025.ebuild:
166 + Stable on ppc64
167 +
168 + 01 Apr 2005; Simon Stelling <blubb@g.o>
169 + latex2html-2002.2.1_pre20041025.ebuild:
170 + stable on amd64
171 +
172 + 19 Mar 2005; Bryan Østergaard <kloeri@g.o>
173 + latex2html-2002.2.1_pre20041025.ebuild:
174 + Stable on alpha.
175 +
176 + 24 Feb 2005; Gustavo Zacarias <gustavoz@g.o>
177 + latex2html-2002.2.1_pre20041025.ebuild:
178 + Stable on sparc
179 +
180 + 12 Feb 2005; Mamoru KOMACHI <usata@g.o>
181 + latex2html-2002.2.1_pre20041025.ebuild:
182 + Don't hardcode perl version to /usr/bin/latex2html; bug #80468.
183 +
184 + 10 Feb 2005; Mamoru KOMACHI <usata@g.o>
185 + -latex2html-2002.2.1_pre20040108.ebuild,
186 + latex2html-2002.2.1_pre20041025.ebuild:
187 + Stable on x86.
188 +
189 +*latex2html-2002.2.1_pre20041025 (19 Nov 2004)
190 +
191 + 19 Nov 2004; Mamoru KOMACHI <usata@g.o> -latex2html-2002.1.ebuild,
192 + +latex2html-2002.2.1_pre20041025.ebuild:
193 + Added new snapshot.
194 +
195 + 23 Jul 2004; Tom Gall <tgall@g.o> latex2html-2002.2.ebuild:
196 + stable on ppc64, bug #57657
197 +
198 + 18 May 2004; Ferris McCormick <fmccor@g.o>
199 + latex2html-2002.2.1_pre20040108.ebuild:
200 + Add ~sparc keyword; It's working well for me.
201 +
202 + 25 Apr 2004; Aron Griffis <agriffis@g.o> latex2html-2002.1.ebuild,
203 + latex2html-2002.2.ebuild:
204 + Add die following econf for bug 48950
205 +
206 +*latex2html-2002.2.1_pre20040108 (24 Apr 2004)
207 +
208 + 24 Apr 2004; Mamoru KOMACHI <usata@g.o> latex2html-2002.2.1.ebuild,
209 + latex2html-2002.2.1_pre20040108.ebuild:
210 + Changed ebuild's name to reflect the date of snapshot.
211 + Should fix bug #48682
212 +
213 + 17 Apr 2004; Daniel Ahlberg <aliz@g.o> latex2html-2002.2.1.ebuild:
214 + Added amd64 keyword.
215 +
216 + 09 Feb 2004; Dylan Carlson <absinthe@g.o> latex2html-2002.2.ebuild:
217 + added amd64 keyword.
218 +
219 + 10 Dec 2003; Mamoru KOMACHI <usata@g.o> :
220 + Fixed digest mismatch (Upstream releases different sources with the
221 + same name...)
222 +
223 + 09 Dec 2003; Heinrich Wendel <lanius@g.o> latex2html-2002.1.ebuild,
224 + latex2html-2002.2.1.ebuild, latex2html-2002.2.ebuild:
225 + changed app-text/ghostscript to virtual/ghostscript
226 +
227 +*latex2html-2002.2.1 (08 Dec 2003)
228 +
229 + 08 Dec 2003; Mamoru KOMACHI <usata@g.o> latex2html-2002.1.ebuild,
230 + latex2html-2002.2.1.ebuild:
231 + Version bumped
232 +
233 +*latex2html-2002.2 (08 Nov 2002)
234 +
235 + 16 Oct 2003; Mamoru KOMACHI <usata@g.o> latex2html-2002.1.ebuild,
236 + latex2html-2002.2.ebuild:
237 + Changed app-text/tetex to virtual/tetex.
238 +
239 + 10 Mar 2003; Aron Griffis <agriffis@g.o> latex2html-2002.2.ebuild:
240 + Mark stable on alpha
241 +
242 + 16 Jan 2003; Seemant Kulleen <seemant@g.o> latex2html-2002.2.ebuild :
243 +
244 + Removed dependency on supersed and employed dosed instead (thanks jrray!).
245 + Closes bug #13899 by vapier@g.o (SpanKY)
246 +
247 + 06 Dec 2002; Rodney Rees <manson@g.o> : changed sparc ~sparc keywords
248 +
249 + 08 Nov 2002; Seemant Kulleen <seemant@g.o> latex2html-2002.2.ebuild
250 + files/digest-latex2html-2002.2.ebuild :
251 +
252 + Version bump, and fixed the problem in bug #10446 reported by:
253 + twanger@×××××××××××.de (Markus Bertheau)
254 +
255 +*latex2html-2002.1 (18 Jun 2002)
256 +
257 + 22 Apr 2003; Brandon Low <lostlogic@g.o> latex2html-2002.1.ebuild:
258 + Change supersed dependencies
259 +
260 + 2 Aug 2002; phoen][x <phoenix@g.o> latex2html-2002.ebuild :
261 + Added LICENSE, SLOT.
262 +
263 + 2 Aug 2002; phoen][x <phoenix@g.o> latex2html-2002.1.ebuild :
264 + Added LICENSE, SLOT.
265 +
266 + 15 Jul 2002; Owen Stampflee <owen@g.o> :
267 +
268 + Added KEYWORDS.
269 +
270 + 18 Jun 2002; Dan Armak <danarmak@g.o> ChangeLog :
271 +
272 + New version (2002-1). Also fixes #3437 (fail on missing /usr/share/latex2html
273 + dir). Thanks a lot to Ben Cornett for the submission.
274 +
275 +*latex2html-2002 (27 Apr 2002)
276 +
277 + 27 Apr 2002; Seemant Kulleen <seemant@g.o> latex2html-2002.ebuild
278 + files/digest-latex2html-2002 :
279 +
280 + Version bump.
281 +
282 +*latex2html-2000.1b (1 Feb 2002)
283 +
284 + 2 Aug 2002; phoen][x <phoenix@g.o> latex2html-2000.1b.ebuild :
285 + Added LICENSE, SLOT.
286 +
287 + 1 Feb 2002; G.Bevin <gbevin@g.o> ChangeLog :
288 +
289 + Added initial ChangeLog which should be updated whenever the package is
290 + updated in any way. This changelog is targetted to users. This means that the
291 + comments should well explained and written in clean English. The details about
292 + writing correct changelogs are explained in the skel.ChangeLog file which you
293 + can find in the root directory of the portage repository.
294
295 diff --git a/dev-tex/latex2html/Manifest b/dev-tex/latex2html/Manifest
296 new file mode 100644
297 index 0000000..a15ceb9
298 --- /dev/null
299 +++ b/dev-tex/latex2html/Manifest
300 @@ -0,0 +1,18 @@
301 +-----BEGIN PGP SIGNED MESSAGE-----
302 +Hash: SHA1
303 +
304 +AUX latex2html-convert-length.patch 1148 RMD160 0f73d986180941697e4ee18d85b586247fc2d7e1 SHA1 67436ec0f2b7d3cca6312c00e4808907701ab5ee SHA256 aaf0e7b7ef3e37790da12fac5e92d87323c6f8041d7fd3c205ee3c96df83401e
305 +AUX latex2html-destdir.patch 703 RMD160 2b08bb440c4aacd3b23a05cb34d56597de8fd2a5 SHA1 eae4695aa812c927060004db9fd958c7a0d0d0b8 SHA256 e2dad7784064b12c17ba9530eb54f706d057c5b399538ee1928ca38005f860e1
306 +AUX latex2html-extract-major-version.patch 635 RMD160 5bfc884c149a19f9f3f3608b48e77c9106edd8e0 SHA1 8c3ff25c41f68e1cafe9ba580f3f38d8b1fa28f3 SHA256 265327a28fdbec750a32fc32999625ef254ec80736f170e645e1355d51df5c04
307 +AUX latex2html-perl_name.patch 445 RMD160 6f93bdc394f8c240542cd6a224864c3b4b27420d SHA1 3fd8480e23e3c06b8cb9876cc82a42b61e21386b SHA256 41dcf9d9b46691c34bddbae39faccbfeadf6beb2e19a4ac18af4a186758289c9
308 +DIST latex2html-2008.tar.gz 1133054 RMD160 a95f06253d6fc8808ffedcad7edf8235194d7756 SHA1 5e0aa47572e0c13a4c5da51e963d5496be3f86e7 SHA256 59456815a3984250c295d3d5c46b85646038db8db2735cdc0d3780cf4da337ad
309 +EBUILD latex2html-2008.ebuild 2487 RMD160 ec0f095141a9039a46a47cd68a9dc3462c8ca4ac SHA1 e04e85ca9c485121ff90a3c069f69384fc01cb84 SHA256 0035339821254b0418e9daeb10c38bcedbd1570a5ae355828d747e2adad2c1b3
310 +MISC ChangeLog 9206 RMD160 192628105b51b16f370efe9426c71b823def19bc SHA1 50d50c96fc0f1583c240bfd2c1cd68e991a63f84 SHA256 6b57516b1df4927b538cd65dfb405c59aef8560d14189a1a4cc5a56bcf8546be
311 +MISC metadata.xml 156 RMD160 2bf6b2ed9ff0fcef1e902cf093ccf4ae2dcc70a0 SHA1 e9260cd53905d8569cf3327ded4c6d01653fc389 SHA256 b4971b8472ab3fe4fbfe41b331a79193ca19e86c08d055ad1c20eaf9e04b79b6
312 +-----BEGIN PGP SIGNATURE-----
313 +Version: GnuPG v2.0.15 (GNU/Linux)
314 +
315 +iEYEARECAAYFAkwTfjQACgkQvFcC4BYPU0rU8ACeL6tE4Ra7dZj2j/elnnW9Fnpe
316 +1cAAn1N6jaAkeYV58IeSaLPSQGZGxnta
317 +=8OLF
318 +-----END PGP SIGNATURE-----
319
320 diff --git a/dev-tex/latex2html/files/latex2html-convert-length.patch b/dev-tex/latex2html/files/latex2html-convert-length.patch
321 new file mode 100644
322 index 0000000..4171fd7
323 --- /dev/null
324 +++ b/dev-tex/latex2html/files/latex2html-convert-length.patch
325 @@ -0,0 +1,22 @@
326 +--- latex2html-2002-2-1/versions/html2_2.pl.old 2006-02-21 20:37:50.000000000 +0100
327 ++++ latex2html-2002-2-1/versions/html2_2.pl 2006-02-21 20:38:03.000000000 +0100
328 +@@ -91,7 +91,7 @@
329 + ($pxs,$len);
330 + }
331 + # should no longer be needed, as this is defined in latex2html.pin
332 +-if (undefined &convert_length) { sub convert_length {&convert_length_table(@_)} }
333 ++if (!defined (&convert_length)) { sub convert_length {&convert_length_table(@_)} }
334 +
335 + # Translates LaTeX column specifications to HTML. Again, Netscape
336 + # needs some extra work with its width attributes in the <td> tags.
337 +--- latex2html-2002-2-1/versions/table.pl.old 2006-02-21 20:37:54.000000000 +0100
338 ++++ latex2html-2002-2-1/versions/table.pl 2006-02-21 20:38:11.000000000 +0100
339 +@@ -91,7 +91,7 @@
340 + ($pxs,$len);
341 + }
342 + # should no longer be needed, as this is defined in latex2html.pin
343 +-if (undefined &convert_length) { sub convert_length {&convert_length_table(@_)} }
344 ++if (!defined (&convert_length)) { sub convert_length {&convert_length_table(@_)} }
345 +
346 + # Translates LaTeX column specifications to HTML. Again, Netscape
347 + # needs some extra work with its width attributes in the <td> tags.
348
349 diff --git a/dev-tex/latex2html/files/latex2html-destdir.patch b/dev-tex/latex2html/files/latex2html-destdir.patch
350 new file mode 100644
351 index 0000000..2d07bef
352 --- /dev/null
353 +++ b/dev-tex/latex2html/files/latex2html-destdir.patch
354 @@ -0,0 +1,15 @@
355 +Index: latex2html-2008/config/install.pl
356 +===================================================================
357 +--- latex2html-2008.orig/config/install.pl
358 ++++ latex2html-2008/config/install.pl
359 +@@ -372,7 +372,9 @@ foreach $item (sort keys %Install_items)
360 +
361 + if($cfg{TEXPATH}) {
362 + print "\nNote: trying to install LaTeX2HTML style files in TeX directory tree\n ($cfg{TEXPATH})\n";
363 +- unless(mkpath($cfg{TEXPATH})) {
364 ++ my $destdir = $cfg{TEXPATH};
365 ++ $destdir = $ENV{'DESTDIR'}.$destdir if($ENV{'DESTDIR'});
366 ++ unless(mkpath($destdir)) {
367 + #my $testpath = $cfg{TEXPATH}; # to strip (latex2)html
368 + #$testpath =~ s/[$dd$dd][^$dd$dd]*$//;
369 + #if((-d $cfg{TEXPATH} && !-w _) || (-d $testpath && !-w _)) {
370
371 diff --git a/dev-tex/latex2html/files/latex2html-extract-major-version.patch b/dev-tex/latex2html/files/latex2html-extract-major-version.patch
372 new file mode 100644
373 index 0000000..7340754
374 --- /dev/null
375 +++ b/dev-tex/latex2html/files/latex2html-extract-major-version.patch
376 @@ -0,0 +1,12 @@
377 +diff -urN latex2html-2002-2-1.orig/config/config.pl latex2html-2002-2-1/config/config.pl
378 +--- latex2html-2002-2-1.orig/config/config.pl 2006-06-02 20:41:18.000000000 +0200
379 ++++ latex2html-2002-2-1/config/config.pl 2006-06-02 20:42:07.000000000 +0200
380 +@@ -1275,7 +1275,7 @@
381 + ($stat,$msg,$err) = &get_out_err("$pnmcrop -version");
382 + my $vers = '';
383 + $msg = $msg || $err;
384 +- if ($msg =~ /(^|\s*)Version.*\s([\d\.]+)\s*([\n\r]|$)/is) { $vers = $2; }
385 ++ if ($msg =~ /(^|\s*)Version.*\s(\d+)\..*\s*([\n\r]|$)/is) { $vers = $2; }
386 + if ($vers =~ /^199/) {
387 + # try left crop
388 + &checking('if pnmcrop can crop from one direction');
389
390 diff --git a/dev-tex/latex2html/files/latex2html-perl_name.patch b/dev-tex/latex2html/files/latex2html-perl_name.patch
391 new file mode 100644
392 index 0000000..cc56f91
393 --- /dev/null
394 +++ b/dev-tex/latex2html/files/latex2html-perl_name.patch
395 @@ -0,0 +1,11 @@
396 +--- latex2html-2002-2-1/config/config.pl 2002-11-29 12:49:01.000000000 +0100
397 ++++ latex2html-2002-2-1/config/config.pl.new 2006-05-23 11:29:10.000000000 +0200
398 +@@ -617,7 +617,7 @@
399 +
400 + # only perl gets an absolute pathname
401 + my $abs_path_names = 1;
402 +-$newcfg{'PERL'} = &find_prog($^X); # take the perl internal executable name
403 ++$newcfg{'PERL'} = &find_prog("perl"); # take the perl internal executable name
404 + &checking('perl version');
405 + &result($]);
406 +
407
408 diff --git a/dev-tex/latex2html/latex2html-2008.ebuild b/dev-tex/latex2html/latex2html-2008.ebuild
409 new file mode 100644
410 index 0000000..b040de1
411 --- /dev/null
412 +++ b/dev-tex/latex2html/latex2html-2008.ebuild
413 @@ -0,0 +1,82 @@
414 +# Copyright 1999-2010 Gentoo Foundation
415 +# Distributed under the terms of the GNU General Public License v2
416 +# $Header: /var/cvsroot/gentoo-x86/dev-tex/latex2html/latex2html-2008.ebuild,v 1.10 2010/06/12 12:31:43 aballier Exp $
417 +
418 +inherit eutils multilib
419 +
420 +DESCRIPTION="convertor written in Perl that converts LATEX documents to HTML"
421 +SRC_URI="http://saftsack.fs.uni-bayreuth.de/~latex2ht/current/${P}.tar.gz"
422 +HOMEPAGE="http://www.latex2html.org/"
423 +
424 +LICENSE="GPL-2"
425 +SLOT="0"
426 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
427 +IUSE="gif png"
428 +
429 +DEPEND="app-text/ghostscript-gpl
430 + virtual/latex-base
431 + media-libs/netpbm
432 + dev-lang/perl
433 + gif? ( media-libs/giflib )
434 + png? ( media-libs/libpng )"
435 +RDEPEND="${DEPEND}"
436 +
437 +src_unpack() {
438 + unpack ${A}
439 + cd "${S}"
440 + epatch "${FILESDIR}/${PN}-convert-length.patch"
441 + epatch "${FILESDIR}/${PN}-perl_name.patch"
442 + epatch "${FILESDIR}/${PN}-extract-major-version.patch"
443 + epatch "${FILESDIR}/${PN}-destdir.patch"
444 + # Dont install old url.sty and other files
445 + # Bug #240980
446 + rm -f texinputs/url.sty texinputs/latin9.def || die "failed to remove duplicate latex files"
447 +}
448 +
449 +src_compile() {
450 + local myconf
451 +
452 + use gif || use png || myconf="${myconf} --disable-images"
453 +
454 + econf --libdir=/usr/$(get_libdir)/latex2html \
455 + --shlibdir=/usr/$(get_libdir)/latex2html \
456 + --enable-pk \
457 + --enable-eps \
458 + --enable-reverse \
459 + --enable-pipes \
460 + --enable-paths \
461 + --enable-wrapper \
462 + --with-texpath=/usr/share/texmf-site/tex/latex/html \
463 + --without-mktexlsr \
464 + $(use_enable gif) \
465 + $(use_enable png) \
466 + ${myconf} || die "econf failed"
467 + emake || die "make failed"
468 +}
469 +
470 +src_install() {
471 + emake DESTDIR="${D}" install || die "make install failed"
472 +
473 + dodoc BUGS Changes FAQ LICENSE.orig MANIFEST README* TODO
474 +
475 + # make /usr/share/latex2html sticky
476 + keepdir /usr/share/latex2html
477 +
478 + # clean the perl scripts up to remove references to the sandbox
479 + einfo "fixing sandbox references"
480 + # pstoimg isn't built unless gif or png useflags are enabled
481 + { use png || use gif ; } && dosed "s:${T}:/tmp:g" /usr/$(get_libdir)/latex2html/pstoimg.pl
482 + dosed "s:${S}::g" /usr/$(get_libdir)/latex2html/latex2html.pl
483 + dosed "s:${T}:/tmp:g" /usr/$(get_libdir)/latex2html/cfgcache.pm
484 + dosed "s:${T}:/tmp:g" /usr/$(get_libdir)/latex2html/l2hconf.pm
485 +}
486 +
487 +pkg_postinst() {
488 + einfo "Running ${ROOT}usr/bin/mktexlsr to rebuild ls-R database...."
489 + "${ROOT}"usr/bin/mktexlsr
490 +}
491 +
492 +pkg_postrm() {
493 + einfo "Running ${ROOT}usr/bin/mktexlsr to rebuild ls-R database...."
494 + "${ROOT}"usr/bin/mktexlsr
495 +}
496
497 diff --git a/dev-tex/latex2html/metadata.xml b/dev-tex/latex2html/metadata.xml
498 new file mode 100644
499 index 0000000..ba6a8a8
500 --- /dev/null
501 +++ b/dev-tex/latex2html/metadata.xml
502 @@ -0,0 +1,5 @@
503 +<?xml version="1.0" encoding="UTF-8"?>
504 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
505 +<pkgmetadata>
506 +<herd>tex</herd>
507 +</pkgmetadata>