/[gentoo-x86]/dev-tex/latex2html/latex2html-2008-r1.ebuild
Gentoo

Contents of /dev-tex/latex2html/latex2html-2008-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Aug 27 20:42:14 2013 UTC (3 years, 1 month ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +3 -3 lines
+  keyword ~amd64-fbsd

(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 160F534A)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-tex/latex2html/latex2html-2008-r1.ebuild,v 1.2 2012/07/25 14:14:24 ottxor Exp $
4
5 EAPI=4
6
7 inherit base eutils multilib
8
9 DESCRIPTION="convertor written in Perl that converts LATEX documents to HTML"
10 SRC_URI="http://saftsack.fs.uni-bayreuth.de/~latex2ht/current/${P}.tar.gz
11 http://dev.gentoo.org/~dilfridge/distfiles/${PN}-match-multiline.patch.bz2"
12 HOMEPAGE="http://www.latex2html.org/"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
17 IUSE="gif png"
18
19 DEPEND="app-text/ghostscript-gpl
20 virtual/latex-base
21 media-libs/netpbm
22 dev-lang/perl
23 gif? ( media-libs/giflib )
24 png? ( media-libs/libpng )"
25 RDEPEND="${DEPEND}"
26
27 PATCHES=( "${FILESDIR}/${PN}"-{convert-length,perl_name,extract-major-version-2,destdir}.patch
28 "${DISTDIR}/${PN}"-match-multiline.patch.bz2 )
29
30 src_prepare() {
31 base_src_prepare
32
33 # Dont install old url.sty and other files
34 # Bug #240980
35 rm -f texinputs/url.sty texinputs/latin9.def || die "failed to remove duplicate latex files"
36
37 sed -ie 's%@PERL@%'"${EPREFIX}"'/usr/bin/perl%g' wrapper/unix.pin || die
38 }
39
40 src_configure() {
41 local myconf
42
43 use gif || use png || myconf="${myconf} --disable-images"
44
45 econf --libdir="${EPREFIX}"/usr/$(get_libdir)/latex2html \
46 --shlibdir="${EPREFIX}"/usr/$(get_libdir)/latex2html \
47 --enable-pk \
48 --enable-eps \
49 --enable-reverse \
50 --enable-pipes \
51 --enable-paths \
52 --enable-wrapper \
53 --with-texpath="${EPREFIX}"/usr/share/texmf-site/tex/latex/html \
54 --without-mktexlsr \
55 $(use_enable gif) \
56 $(use_enable png) \
57 ${myconf} || die "econf failed"
58 }
59
60 src_install() {
61 emake DESTDIR="${D}" install || die "make install failed"
62
63 dodoc BUGS Changes FAQ LICENSE.orig MANIFEST README* TODO
64
65 # make /usr/share/latex2html sticky
66 keepdir /usr/share/latex2html
67
68 # clean the perl scripts up to remove references to the sandbox
69 einfo "fixing sandbox references"
70 # pstoimg isn't built unless gif or png useflags are enabled
71 { use png || use gif ; } && sed -i -e "s:${T}:/tmp:g" "${ED}/usr/$(get_libdir)/latex2html/pstoimg.pl"
72 sed -i -e "s:${S}::g" "${ED}/usr/$(get_libdir)/latex2html/latex2html.pl" || die
73 sed -i -e "s:${T}:/tmp:g" "${ED}/usr/$(get_libdir)/latex2html/cfgcache.pm" || die
74 sed -i -e "s:${T}:/tmp:g" "${ED}/usr/$(get_libdir)/latex2html/l2hconf.pm" || die
75 }
76
77 pkg_postinst() {
78 einfo "Running ${EROOT}usr/bin/mktexlsr to rebuild ls-R database...."
79 "${EROOT}"usr/bin/mktexlsr
80 }
81
82 pkg_postrm() {
83 einfo "Running ${EROOT}usr/bin/mktexlsr to rebuild ls-R database...."
84 "${EROOT}"usr/bin/mktexlsr
85 }

  ViewVC Help
Powered by ViewVC 1.1.20