Gentoo Archives: gentoo-commits

From: "Andreas HAttel (dilfridge)" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-tex/latex2html: ChangeLog latex2html-2008-r1.ebuild
Date: Fri, 25 Feb 2011 13:56:57
Message-Id: 20110225135647.01FAD20057@flycatcher.gentoo.org
1 dilfridge 11/02/25 13:56:46
2
3 Modified: ChangeLog
4 Added: latex2html-2008-r1.ebuild
5 Log:
6 Add match-multiline patch from Debian (author: Roland Stigge <stigge@××××××.de>) to support newer perl versions; fix Netpbm version detection
7
8 (Portage version: 2.1.9.41/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.53 dev-tex/latex2html/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tex/latex2html/ChangeLog?rev=1.53&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tex/latex2html/ChangeLog?rev=1.53&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tex/latex2html/ChangeLog?r1=1.52&r2=1.53
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-tex/latex2html/ChangeLog,v
20 retrieving revision 1.52
21 retrieving revision 1.53
22 diff -u -r1.52 -r1.53
23 --- ChangeLog 12 Jun 2010 12:31:43 -0000 1.52
24 +++ ChangeLog 25 Feb 2011 13:56:46 -0000 1.53
25 @@ -1,6 +1,15 @@
26 # ChangeLog for dev-tex/latex2html
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-tex/latex2html/ChangeLog,v 1.52 2010/06/12 12:31:43 aballier Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-tex/latex2html/ChangeLog,v 1.53 2011/02/25 13:56:46 dilfridge Exp $
31 +
32 +*latex2html-2008-r1 (25 Feb 2011)
33 +
34 + 25 Feb 2011; Andreas K. Huettel <dilfridge@g.o>
35 + +files/latex2html-extract-major-version-2.patch,
36 + +latex2html-2008-r1.ebuild:
37 + Add match-multiline patch from Debian (author: Roland Stigge
38 + <stigge@××××××.de>) to support newer perl versions; fix Netpbm version
39 + detection
40
41 12 Jun 2010; Alexis Ballier <aballier@g.o> latex2html-2008.ebuild:
42 do not try to sed a file that does not exist when use=-gif -png is used,
43
44
45
46 1.1 dev-tex/latex2html/latex2html-2008-r1.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tex/latex2html/latex2html-2008-r1.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tex/latex2html/latex2html-2008-r1.ebuild?rev=1.1&content-type=text/plain
50
51 Index: latex2html-2008-r1.ebuild
52 ===================================================================
53 # Copyright 1999-2011 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/dev-tex/latex2html/latex2html-2008-r1.ebuild,v 1.1 2011/02/25 13:56:46 dilfridge Exp $
56
57 EAPI=4
58
59 inherit base eutils multilib
60
61 DESCRIPTION="convertor written in Perl that converts LATEX documents to HTML"
62 SRC_URI="http://saftsack.fs.uni-bayreuth.de/~latex2ht/current/${P}.tar.gz
63 http://dev.gentoo.org/~dilfridge/distfiles/${PN}-match-multiline.patch.bz2"
64 HOMEPAGE="http://www.latex2html.org/"
65
66 LICENSE="GPL-2"
67 SLOT="0"
68 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
69 IUSE="gif png"
70
71 DEPEND="app-text/ghostscript-gpl
72 virtual/latex-base
73 media-libs/netpbm
74 dev-lang/perl
75 gif? ( media-libs/giflib )
76 png? ( media-libs/libpng )"
77 RDEPEND="${DEPEND}"
78
79 PATCHES=( "${FILESDIR}/${PN}"-{convert-length,perl_name,extract-major-version-2,destdir}.patch
80 "${DISTDIR}/${PN}"-match-multiline.patch.bz2 )
81
82 src_prepare() {
83 base_src_prepare
84
85 # Dont install old url.sty and other files
86 # Bug #240980
87 rm -f texinputs/url.sty texinputs/latin9.def || die "failed to remove duplicate latex files"
88 }
89
90 src_configure() {
91 local myconf
92
93 use gif || use png || myconf="${myconf} --disable-images"
94
95 econf --libdir=/usr/$(get_libdir)/latex2html \
96 --shlibdir=/usr/$(get_libdir)/latex2html \
97 --enable-pk \
98 --enable-eps \
99 --enable-reverse \
100 --enable-pipes \
101 --enable-paths \
102 --enable-wrapper \
103 --with-texpath=/usr/share/texmf-site/tex/latex/html \
104 --without-mktexlsr \
105 $(use_enable gif) \
106 $(use_enable png) \
107 ${myconf} || die "econf failed"
108 }
109
110 src_install() {
111 emake DESTDIR="${D}" install || die "make install failed"
112
113 dodoc BUGS Changes FAQ LICENSE.orig MANIFEST README* TODO
114
115 # make /usr/share/latex2html sticky
116 keepdir /usr/share/latex2html
117
118 # clean the perl scripts up to remove references to the sandbox
119 einfo "fixing sandbox references"
120 # pstoimg isn't built unless gif or png useflags are enabled
121 { use png || use gif ; } && sed -i -e "s:${T}:/tmp:g" "${D}/usr/$(get_libdir)/latex2html/pstoimg.pl"
122 sed -i -e "s:${S}::g" "${D}/usr/$(get_libdir)/latex2html/latex2html.pl" || die
123 sed -i -e "s:${T}:/tmp:g" "${D}/usr/$(get_libdir)/latex2html/cfgcache.pm" || die
124 sed -i -e "s:${T}:/tmp:g" "${D}/usr/$(get_libdir)/latex2html/l2hconf.pm" || die
125 }
126
127 pkg_postinst() {
128 einfo "Running ${ROOT}usr/bin/mktexlsr to rebuild ls-R database...."
129 "${ROOT}"usr/bin/mktexlsr
130 }
131
132 pkg_postrm() {
133 einfo "Running ${ROOT}usr/bin/mktexlsr to rebuild ls-R database...."
134 "${ROOT}"usr/bin/mktexlsr
135 }