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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sun Feb 10 12:09:00 2008 UTC (6 years, 2 months ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
remove old
(Portage version: 2.1.4.2)

1 # Copyright 1999-2007 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-r1.ebuild,v 1.7 2007/10/30 17:57:36 aballier Exp $
4
5 inherit latex-package 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 sparc ~ppc ~amd64"
18 SLOT="0"
19
20 DEPEND=">=sys-apps/sed-4"
21
22 RDEPEND="virtual/ghostscript
23 media-gfx/imagemagick"
24
25 S="${WORKDIR}/${MY_P}"
26
27 src_unpack() {
28
29 unpack ${A}
30 cd "${S}/texmf/tex4ht/base/unix"
31 sed -i -e \
32 's#~/tex4ht.dir#/usr/share#' tex4ht.env || die
33 sed -i -e \
34 '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
35
36 }
37
38 src_compile() {
39
40 cd "${S}/src/"
41 einfo "Compiling postprocessor sources..."
42 for f in tex4ht t4ht htcmd ; do
43 $(tc-getCC) -o $f $f.c \
44 -DENVFILE='"/usr/share/texmf/tex4ht/base/tex4ht.env"' \
45 -DHAVE_DIRENT_H -DKPATHSEA -lkpathsea \
46 || die "Compiling $f failed"
47 done
48
49 }
50
51 src_install () {
52
53 # install the binaries
54 dobin "${S}/src/tex4ht" "${S}/src/t4ht" "${S}/src/htcmd"
55 dobin "${S}"/bin/unix/*
56
57 # install the .4ht scripts
58 insinto /usr/share/texmf/tex/generic/tex4ht
59 doins "${S}"/texmf/tex/generic/tex4ht/*
60
61 # install the special htf fonts
62 dodir /usr/share/texmf/tex4ht
63 cp -pPR "${S}/texmf/tex4ht/ht-fonts" "${D}/usr/share/texmf/tex4ht"
64
65 # install the env file
66 insinto /usr/share/texmf/tex4ht/base
67 newins "${S}/texmf/tex4ht/base/unix/tex4ht.env" tex4ht.env
68
69 # this dir is 700 in the zip
70 fperms 755 /usr/share/texmf/tex4ht/ht-fonts
71
72 if has_tetex_3 ; then
73 insinto /etc/texmf/texmf.d
74 doins "${FILESDIR}/50tex4ht.cnf"
75 fi
76 }

  ViewVC Help
Powered by ViewVC 1.1.20