Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-tex/tex4ht: ChangeLog tex4ht-20080829_p0203.ebuild
Date: Mon, 01 Sep 2008 06:54:57
Message-Id: E1Ka3JO-000602-OK@stork.gentoo.org
1 aballier 08/09/01 06:54:54
2
3 Modified: ChangeLog
4 Added: tex4ht-20080829_p0203.ebuild
5 Log:
6 version bump
7 (Portage version: 2.2_rc8/cvs/Linux 2.6.26.3 x86_64)
8
9 Revision Changes Path
10 1.31 dev-tex/tex4ht/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-tex/tex4ht/ChangeLog?rev=1.31&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-tex/tex4ht/ChangeLog?rev=1.31&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-tex/tex4ht/ChangeLog?r1=1.30&r2=1.31
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-tex/tex4ht/ChangeLog,v
19 retrieving revision 1.30
20 retrieving revision 1.31
21 diff -u -r1.30 -r1.31
22 --- ChangeLog 12 Aug 2008 18:05:03 -0000 1.30
23 +++ ChangeLog 1 Sep 2008 06:54:54 -0000 1.31
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-tex/tex4ht
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-tex/tex4ht/ChangeLog,v 1.30 2008/08/12 18:05:03 aballier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-tex/tex4ht/ChangeLog,v 1.31 2008/09/01 06:54:54 aballier Exp $
29 +
30 +*tex4ht-20080829_p0203 (01 Sep 2008)
31 +
32 + 01 Sep 2008; Alexis Ballier <aballier@g.o>
33 + +tex4ht-20080829_p0203.ebuild:
34 + version bump
35
36 12 Aug 2008; Alexis Ballier <aballier@g.o>
37 -tex4ht-20080711_p0635.ebuild:
38
39
40
41 1.1 dev-tex/tex4ht/tex4ht-20080829_p0203.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-tex/tex4ht/tex4ht-20080829_p0203.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-tex/tex4ht/tex4ht-20080829_p0203.ebuild?rev=1.1&content-type=text/plain
45
46 Index: tex4ht-20080829_p0203.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-tex/tex4ht/tex4ht-20080829_p0203.ebuild,v 1.1 2008/09/01 06:54:54 aballier Exp $
51
52 inherit latex-package toolchain-funcs java-pkg-opt-2
53
54 IUSE=""
55
56 # tex4ht-20050331_p2350 -> tex4ht-1.0.2005_03_31_2350
57 MY_P="${PN}-1.0.${PV:0:4}_${PV:4:2}_${PV:6:2}_${PV/*_p/}"
58
59 DESCRIPTION="Converts (La)TeX to (X)HTML, XML and OO.org"
60 HOMEPAGE="http://www.cse.ohio-state.edu/~gurari/TeX4ht/
61 http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html"
62 SRC_URI="http://www.cse.ohio-state.edu/~gurari/TeX4ht/fix/${MY_P}.tar.gz"
63
64 LICENSE="LPPL-1.2"
65 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
66 SLOT="0"
67
68 DEPEND=">=sys-apps/sed-4
69 java? ( >=virtual/jdk-1.5 )"
70
71 RDEPEND="virtual/ghostscript
72 media-gfx/imagemagick
73 java? ( >=virtual/jre-1.5 )"
74
75 IUSE="java"
76
77 S="${WORKDIR}/${MY_P}"
78
79 src_unpack() {
80 unpack ${A}
81 cd "${S}/texmf/tex4ht/base/unix"
82 sed -i -e \
83 's#~/tex4ht.dir#/usr/share#' tex4ht.env || die
84 sed -i -e \
85 '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
86 sed -i -e \
87 's#%%~/texmf-dist#/usr/share/texmf#g' tex4ht.env || die
88
89 einfo "Removing precompiled java stuff"
90 find "${S}" '(' -name '*.class' -o -name '*.jar' ')' -print -delete
91
92 # Rename ht script to avoid collisions with app-editors/hteditor
93 # Bug #197213
94 mv "${S}/bin/ht/unix/ht" "${S}/bin/ht/unix/ht.tex4ht" || die
95 }
96
97 src_compile() {
98 cd "${S}/src/"
99 einfo "Compiling postprocessor sources..."
100 for f in tex4ht t4ht htcmd ; do
101 $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o $f $f.c \
102 -DENVFILE='"/usr/share/texmf/tex4ht/base/tex4ht.env"' \
103 -DHAVE_DIRENT_H -DKPATHSEA -lkpathsea \
104 || die "Compiling $f failed"
105 done
106 if use java; then
107 einfo "Compiling java files..."
108 cd java
109 ejavac *.java */*.java */*/*.java -d ../../texmf/tex4ht/bin
110 cd "${S}/texmf/tex4ht/bin"
111 # Create the jar needed by oolatex
112 jar -cf "${S}/${PN}.jar" * || die "failed to create jar"
113 fi
114 }
115
116 src_install () {
117 # install the binaries
118 dobin "${S}/src/tex4ht" "${S}/src/t4ht" "${S}/src/htcmd"
119 # install the scripts
120 if ! use java; then
121 rm -f "${S}"/bin/unix/oo*
122 rm -f "${S}"/bin/unix/jh*
123 fi
124 dobin "${S}"/bin/ht/unix/* || die
125 dobin "${S}"/bin/unix/mk4ht || die
126
127 # install the .4ht scripts
128 insinto /usr/share/texmf/tex/generic/tex4ht
129 doins "${S}"/texmf/tex/generic/tex4ht/* || die
130
131 # install the special htf fonts
132 insinto /usr/share/texmf/tex4ht
133 doins -r "${S}/texmf/tex4ht/ht-fonts" || die
134
135 if use java; then
136 # install the java files
137 doins -r "${S}/texmf/tex4ht/bin"
138 java-pkg_jarinto /usr/share/texmf/tex4ht/bin
139 java-pkg_dojar "${S}/${PN}.jar"
140 fi
141
142 # install the .4xt files
143 doins -r "${S}/texmf/tex4ht/xtpipes" || die
144
145 # install the env file
146 insinto /usr/share/texmf/tex4ht/base
147 newins "${S}/texmf/tex4ht/base/unix/tex4ht.env" tex4ht.env || die
148
149 if latex-package_has_tetex_3 ; then
150 insinto /etc/texmf/texmf.d
151 doins "${FILESDIR}/50tex4ht.cnf" || die
152 fi
153 }
154
155 pkg_postinst() {
156 use java || elog 'ODF converters (oolatex & friends) require the java use flag'
157 latex-package_pkg_postinst
158 elog "In order to avoid collisions with app-editors/hteditor"
159 elog "The helper script 'ht' has been renamed to 'ht.tex4ht'"
160 }