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

Contents of /dev-tex/tex4ht/tex4ht-20050406_p1623.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Jul 2 08:33:36 2005 UTC (9 years, 4 months ago) by usata
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bumped. This closes bug #97099.
(Portage version: 2.0.51.22-r1)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-tex/tex4ht/tex4ht-20050406_p1623.ebuild,v 1.1 2005/04/07 05:28:11 usata Exp $
4
5 inherit toolchain-funcs
6
7 IUSE=""
8
9 # tex4ht-20050331_p2350 -> tex4ht-1.0.2005_03_31_2350
10 MY_P="${PN}-1.0.${PV:0:4}_${PV:4:2}_${PV:6:2}_${PV/*_p/}"
11
12 DESCRIPTION="Converts (La)TeX to (X)HTML, XML and OO.org"
13 HOMEPAGE="http://www.cse.ohio-state.edu/~gurari/TeX4ht/"
14 SRC_URI="http://www.cse.ohio-state.edu/~gurari/TeX4ht/fix/${MY_P}.tar.gz"
15
16 LICENSE="LPPL-1.2"
17 KEYWORDS="~x86 ~ppc ~amd64"
18 SLOT="0"
19
20 DEPEND="virtual/tetex
21 >=sys-apps/sed-4"
22
23 RDEPEND="virtual/tetex
24 virtual/ghostscript
25 media-gfx/imagemagick"
26
27 S="${WORKDIR}/${MY_P}"
28
29 src_unpack() {
30
31 unpack ${A}
32 cd ${S}/texmf/tex4ht/base/unix
33 sed -i -e \
34 's#~/tex4ht.dir#/usr/share#' tex4ht.env || die
35 sed -i -e \
36 '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
37
38 }
39
40 src_compile() {
41
42 cd ${S}/src/
43 einfo "Compiling postprocessor sources..."
44 for f in tex4ht t4ht htcmd ; do
45 $(tc-getCC) -o $f $f.c \
46 -DENVFILE='"/usr/share/texmf/tex4ht/base/tex4ht.env"' \
47 -DHAVE_DIRENT_H -DKPATHSEA -lkpathsea \
48 || die "Compiling $f failed"
49 done
50
51 }
52
53 src_install () {
54
55 # install the binaries
56 dobin ${S}/src/tex4ht ${S}/src/t4ht ${S}/src/htcmd
57 dobin ${S}/bin/unix/*
58
59 # install the .4ht scripts
60 insinto /usr/share/texmf/tex/generic/tex4ht
61 doins ${S}/texmf/tex/generic/tex4ht/*
62
63 # install the special htf fonts
64 dodir /usr/share/texmf/tex4ht
65 cp -a ${S}/texmf/tex4ht/ht-fonts ${D}/usr/share/texmf/tex4ht
66
67 # install the env file
68 insinto /usr/share/texmf/tex4ht/base
69 newins ${S}/texmf/tex4ht/base/unix/tex4ht.env tex4ht.env
70
71 # this dir is 700 in the zip
72 fperms 755 /usr/share/texmf/tex4ht/ht-fonts
73
74 }
75
76 pkg_postinst () {
77
78 einfo "Running mktexlsr to rebuild file databases..."
79 mktexlsr
80
81 }
82
83 pkg_postrm () {
84
85 einfo "Running mktexlsr to rebuild file databases..."
86 mktexlsr
87
88 }

  ViewVC Help
Powered by ViewVC 1.1.20