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-20071024_p0140.ebuild
Date: Tue, 30 Oct 2007 17:51:34
Message-Id: E1ImvFM-00071U-4z@stork.gentoo.org
1 aballier 07/10/30 17:51:24
2
3 Modified: ChangeLog
4 Added: tex4ht-20071024_p0140.ebuild
5 Log:
6 version bump, bug #153028, thanks to Gerard Vermeulen for the ebuild and wltjr for the help with java
7 (Portage version: 2.1.3.16)
8
9 Revision Changes Path
10 1.12 dev-tex/tex4ht/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-tex/tex4ht/ChangeLog?rev=1.12&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-tex/tex4ht/ChangeLog?rev=1.12&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-tex/tex4ht/ChangeLog?r1=1.11&r2=1.12
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-tex/tex4ht/ChangeLog,v
19 retrieving revision 1.11
20 retrieving revision 1.12
21 diff -u -r1.11 -r1.12
22 --- ChangeLog 13 Mar 2007 08:00:20 -0000 1.11
23 +++ ChangeLog 30 Oct 2007 17:51:23 -0000 1.12
24 @@ -1,6 +1,13 @@
25 # ChangeLog for dev-tex/tex4ht
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-tex/tex4ht/ChangeLog,v 1.11 2007/03/13 08:00:20 nattfodd Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-tex/tex4ht/ChangeLog,v 1.12 2007/10/30 17:51:23 aballier Exp $
29 +
30 +*tex4ht-20071024_p0140 (30 Oct 2007)
31 +
32 + 30 Oct 2007; Alexis Ballier <aballier@g.o>
33 + +tex4ht-20071024_p0140.ebuild:
34 + version bump, bug #153028, thanks to Gerard Vermeulen for the ebuild and
35 + wltjr for the help with java
36
37 13 Mar 2007; Alexandre Buisse <nattfodd@g.o> metadata.xml:
38 Replaced text-markup by tex as maintaining herd (text-markup split).
39
40
41
42 1.1 dev-tex/tex4ht/tex4ht-20071024_p0140.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-tex/tex4ht/tex4ht-20071024_p0140.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-tex/tex4ht/tex4ht-20071024_p0140.ebuild?rev=1.1&content-type=text/plain
46
47 Index: tex4ht-20071024_p0140.ebuild
48 ===================================================================
49 # Copyright 1999-2007 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-tex/tex4ht/tex4ht-20071024_p0140.ebuild,v 1.1 2007/10/30 17:51:23 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="~x86 ~sparc ~ppc ~amd64"
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/unix/ht" "${S}/bin/unix/ht.tex4ht"
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/unix/*
126
127 # install the .4ht scripts
128 insinto /usr/share/texmf/tex/generic/tex4ht
129 doins "${S}"/texmf/tex/generic/tex4ht/*
130
131 # install the special htf fonts
132 insinto /usr/share/texmf/tex4ht
133 doins -r "${S}/texmf/tex4ht/ht-fonts"
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"
144 doins -r "${S}/texmf/tex4ht/xttl"
145
146 # install the env file
147 insinto /usr/share/texmf/tex4ht/base
148 newins "${S}/texmf/tex4ht/base/unix/tex4ht.env" tex4ht.env
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 }
162
163
164
165 --
166 gentoo-commits@g.o mailing list