Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-tex/latex2html: ChangeLog latex2html-2008.ebuild
Date: Fri, 31 Oct 2008 22:02:49
Message-Id: E1Kw24s-00009W-Db@stork.gentoo.org
1 aballier 08/10/31 22:02:46
2
3 Modified: ChangeLog
4 Added: latex2html-2008.ebuild
5 Log:
6 Version bump. Remove files already provided by our latex installs, bug #240980. Install latex files to texmf-site. Apply patch from bug #143831 to avoid using obsolete functions.
7 (Portage version: 2.2_rc12/cvs/Linux 2.6.27.4 x86_64)
8
9 Revision Changes Path
10 1.42 dev-tex/latex2html/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-tex/latex2html/ChangeLog?rev=1.42&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-tex/latex2html/ChangeLog?rev=1.42&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-tex/latex2html/ChangeLog?r1=1.41&r2=1.42
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-tex/latex2html/ChangeLog,v
19 retrieving revision 1.41
20 retrieving revision 1.42
21 diff -u -r1.41 -r1.42
22 --- ChangeLog 14 Oct 2007 21:43:06 -0000 1.41
23 +++ ChangeLog 31 Oct 2008 22:02:46 -0000 1.42
24 @@ -1,6 +1,15 @@
25 # ChangeLog for dev-tex/latex2html
26 -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-tex/latex2html/ChangeLog,v 1.41 2007/10/14 21:43:06 aballier Exp $
28 +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-tex/latex2html/ChangeLog,v 1.42 2008/10/31 22:02:46 aballier Exp $
30 +
31 +*latex2html-2008 (31 Oct 2008)
32 +
33 + 31 Oct 2008; Alexis Ballier <aballier@g.o>
34 + files/latex2html-convert-length.patch, +files/latex2html-destdir.patch,
35 + +latex2html-2008.ebuild:
36 + Version bump. Remove files already provided by our latex installs, bug
37 + #240980. Install latex files to texmf-site. Apply patch from bug #143831
38 + to avoid using obsolete functions.
39
40 14 Oct 2007; Alexis Ballier <aballier@g.o>
41 latex2html-2002.2.1_pre20041025-r1.ebuild:
42
43
44
45 1.1 dev-tex/latex2html/latex2html-2008.ebuild
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-tex/latex2html/latex2html-2008.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-tex/latex2html/latex2html-2008.ebuild?rev=1.1&content-type=text/plain
49
50 Index: latex2html-2008.ebuild
51 ===================================================================
52 # Copyright 1999-2008 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/dev-tex/latex2html/latex2html-2008.ebuild,v 1.1 2008/10/31 22:02:46 aballier Exp $
55
56 inherit eutils multilib
57
58 DESCRIPTION="convertor written in Perl that converts LATEX documents to HTML"
59 SRC_URI="http://saftsack.fs.uni-bayreuth.de/~latex2ht/current/${P}.tar.gz"
60 HOMEPAGE="http://www.latex2html.org/"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
65 IUSE="gif png"
66
67 DEPEND="virtual/ghostscript
68 virtual/latex-base
69 media-libs/netpbm
70 dev-lang/perl
71 gif? ( media-libs/giflib )
72 png? ( media-libs/libpng )"
73
74 src_unpack() {
75 unpack ${A}
76 cd "${S}"
77 epatch "${FILESDIR}/${PN}-convert-length.patch"
78 epatch "${FILESDIR}/${PN}-perl_name.patch"
79 epatch "${FILESDIR}/${PN}-extract-major-version.patch"
80 epatch "${FILESDIR}/${PN}-destdir.patch"
81 # Dont install old url.sty and other files
82 # Bug #240980
83 rm -f texinputs/url.sty texinputs/latin9.def || die "failed to remove duplicate latex files"
84 }
85
86 src_compile() {
87 local myconf
88
89 use gif || use png || myconf="${myconf} --disable-images"
90
91 econf --libdir=/usr/$(get_libdir)/latex2html \
92 --shlibdir=/usr/$(get_libdir)/latex2html \
93 --enable-pk \
94 --enable-eps \
95 --enable-reverse \
96 --enable-pipes \
97 --enable-paths \
98 --enable-wrapper \
99 --with-texpath=/usr/share/texmf-site/tex/latex/html \
100 --without-mktexlsr \
101 $(use_enable gif) \
102 $(use_enable png) \
103 ${myconf} || die "econf failed"
104 emake || die "make failed"
105 }
106
107 src_install() {
108 emake DESTDIR="${D}" install || die "make install failed"
109
110 dodoc BUGS Changes FAQ LICENSE.orig MANIFEST README* TODO
111
112 # make /usr/share/latex2html sticky
113 keepdir /usr/share/latex2html
114
115 # clean the perl scripts up to remove references to the sandbox
116 einfo "fixing sandbox references"
117 dosed "s:${T}:/tmp:g" /usr/$(get_libdir)/latex2html/pstoimg.pl
118 dosed "s:${S}::g" /usr/$(get_libdir)/latex2html/latex2html.pl
119 dosed "s:${T}:/tmp:g" /usr/$(get_libdir)/latex2html/cfgcache.pm
120 dosed "s:${T}:/tmp:g" /usr/$(get_libdir)/latex2html/l2hconf.pm
121 }
122
123 pkg_postinst() {
124 einfo "Running ${ROOT}usr/bin/mktexlsr to rebuild ls-R database...."
125 "${ROOT}"usr/bin/mktexlsr
126 }
127
128 pkg_postrm() {
129 einfo "Running ${ROOT}usr/bin/mktexlsr to rebuild ls-R database...."
130 "${ROOT}"usr/bin/mktexlsr
131 }