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

Contents of /dev-tex/tex4ht/tex4ht-20050701_p1825.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Feb 10 12:09:00 2008 UTC (6 years, 9 months ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +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-20050701_p1825.ebuild,v 1.5 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 http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html"
15 SRC_URI="http://www.cse.ohio-state.edu/~gurari/TeX4ht/fix/${MY_P}.tar.gz"
16
17 LICENSE="LPPL-1.2"
18 KEYWORDS="~x86 ~sparc ~ppc ~amd64"
19 SLOT="0"
20
21 DEPEND=">=sys-apps/sed-4"
22
23 RDEPEND="virtual/ghostscript
24 media-gfx/imagemagick"
25
26 S="${WORKDIR}/${MY_P}"
27
28 src_unpack() {
29
30 unpack ${A}
31 cd "${S}/texmf/tex4ht/base/unix"
32 sed -i -e \
33 's#~/tex4ht.dir#/usr/share#' tex4ht.env || die
34 sed -i -e \
35 '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
36
37 }
38
39 src_compile() {
40
41 cd "${S}/src/"
42 einfo "Compiling postprocessor sources..."
43 for f in tex4ht t4ht htcmd ; do
44 $(tc-getCC) -o $f $f.c \
45 -DENVFILE='"/usr/share/texmf/tex4ht/base/tex4ht.env"' \
46 -DHAVE_DIRENT_H -DKPATHSEA -lkpathsea \
47 || die "Compiling $f failed"
48 done
49
50 }
51
52 src_install () {
53
54 # install the binaries
55 dobin "${S}/src/tex4ht" "${S}/src/t4ht" "${S}/src/htcmd"
56 dobin "${S}"/bin/unix/*
57
58 # install the .4ht scripts
59 insinto /usr/share/texmf/tex/generic/tex4ht
60 doins "${S}"/texmf/tex/generic/tex4ht/*
61
62 # install the special htf fonts
63 dodir /usr/share/texmf/tex4ht
64 cp -pPR "${S}/texmf/tex4ht/ht-fonts" "${D}/usr/share/texmf/tex4ht"
65
66 # install the env file
67 insinto /usr/share/texmf/tex4ht/base
68 newins "${S}/texmf/tex4ht/base/unix/tex4ht.env" tex4ht.env
69
70 if has_tetex_3 ; then
71 insinto /etc/texmf/texmf.d
72 doins "${FILESDIR}/50tex4ht.cnf" || die
73 fi
74 }

  ViewVC Help
Powered by ViewVC 1.1.20