/[gentoo-x86]/dev-tex/tex4ht/tex4ht-20040212.ebuild
Gentoo

Contents of /dev-tex/tex4ht/tex4ht-20040212.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Aug 24 04:08:41 2005 UTC (9 years, 10 months ago) by leonardop
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Modified 'cp -a' (bug #103487)
(Portage version: 2.0.51.22-r2)

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-tex/tex4ht/tex4ht-20040212.ebuild,v 1.3 2004/11/21 06:12:53 kingtaco Exp $
4
5 IUSE=""
6
7 DESCRIPTION="Converts (La)TeX to (X)HTML, XML and OO.org"
8 HOMEPAGE="http://www.cse.ohio-state.edu/~gurari/TeX4ht/"
9 SRC_URI="http://www.cse.ohio-state.edu/~gurari/TeX4ht/${P}.zip"
10
11 LICENSE="LPPL-1.2"
12 KEYWORDS="~x86 ~ppc ~amd64"
13 SLOT="0"
14
15 DEPEND="virtual/tetex
16 app-arch/unzip
17 >=sys-apps/sed-4"
18
19 RDEPEND="virtual/tetex
20 virtual/ghostscript
21 media-gfx/imagemagick"
22
23 S="${WORKDIR}"
24
25 src_unpack() {
26
27 unpack ${P}.zip > /dev/null
28 cd ${WORKDIR}/texmf/tex4ht/base/unix
29 sed -i -e \
30 's#~/tex4ht.dir#/usr/share#' tex4ht.env || die
31 sed -i -e \
32 's#tpath/tex/texmf/fonts/tfm/!#t/usr/share/texmf/fonts/tfm/!\nt/usr/local/share/texmf/fonts/tfm/!\nt/var/cache/fonts/tfm/!#' tex4ht.env || die
33
34 }
35
36 src_compile() {
37
38 cd ${WORKDIR}/temp/
39 einfo "Compiling postprocessor sources..."
40 gcc -o tex4ht tex4ht.c -DENVFILE='"/usr/share/texmf/tex4ht/base/tex4ht.env"' -DHAVE_DIRENT_H \
41 -DKPATHSEA -lkpathsea || die "Compiling tex4ht failed"
42 gcc -o t4ht t4ht.c -DENVFILE='"/usr/share/texmf/tex4ht/base/tex4ht.env"' \
43 -DKPATHSEA -lkpathsea || die "Compiling t4ht failed"
44
45 }
46
47 src_install () {
48
49 # install the binaries
50 exeinto /usr/bin
51 doexe ${WORKDIR}/temp/tex4ht ${WORKDIR}/temp/t4ht
52 doexe ${WORKDIR}/bin/unix/*
53
54 # install the .4ht scripts
55 insinto /usr/share/texmf/tex/generic/tex4ht
56 doins ${WORKDIR}/texmf/tex/generic/tex4ht/*
57
58 # install the special htf fonts
59 dodir /usr/share/texmf/tex4ht
60 cp -a ${WORKDIR}/texmf/tex4ht/ht-fonts ${D}/usr/share/texmf/tex4ht
61
62 # install the env file
63 insinto /usr/share/texmf/tex4ht/base
64 newins ${WORKDIR}/texmf/tex4ht/base/unix/tex4ht.env tex4ht.env
65
66 # this dir is 700 in the zip
67 fperms 755 /usr/share/texmf/tex4ht/ht-fonts
68
69 }
70
71 pkg_postinst () {
72
73 einfo "Running mktexlsr to rebuild file databases..."
74 mktexlsr
75
76 }
77
78 pkg_postrm () {
79
80 einfo "Running mktexlsr to rebuild file databases..."
81 mktexlsr
82
83 }

  ViewVC Help
Powered by ViewVC 1.1.20