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