Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-tex/tex4ht/
Date: Sun, 22 Sep 2019 15:52:21
Message-Id: 1569167517.87b97f3c70087bf5911a987b35f2a4007455f72e.ulm@gentoo
1 commit: 87b97f3c70087bf5911a987b35f2a4007455f72e
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 22 15:51:57 2019 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 22 15:51:57 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87b97f3c
7
8 dev-tex/tex4ht: Remove old.
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.17
11 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
12
13 dev-tex/tex4ht/Manifest | 2 -
14 dev-tex/tex4ht/tex4ht-20090611_p1038-r5.ebuild | 122 -------------------------
15 dev-tex/tex4ht/tex4ht-20090611_p1038-r6.ebuild | 120 ------------------------
16 3 files changed, 244 deletions(-)
17
18 diff --git a/dev-tex/tex4ht/Manifest b/dev-tex/tex4ht/Manifest
19 index ac81787adfc..1043e163ed3 100644
20 --- a/dev-tex/tex4ht/Manifest
21 +++ b/dev-tex/tex4ht/Manifest
22 @@ -1,4 +1,2 @@
23 DIST tex4ht-1.0.2009_06_11_1038.tar.gz 2576719 BLAKE2B d04fd7b5f614414a200b01f11bea9880ea12561873fc08cb2f5f6f62167d6128cc50abbeeee0c7eae5d80046f6d3b504493d66262153c5a534fd1b56bfa1dfcd SHA512 868961c16da63ef20a8af3ec3e56a2b6c518a291cdbc3974f701773dbb55b844f0df06aae4c7b481c96b9e2ba29cb0f1ed1279b6f32340e4708e31bb67170963
24 -DIST tex4ht-texlive-2017-02-05.tar.xz 826816 BLAKE2B 8387c1fc7326cb4eb74ec82d15ed6a6f07bacd08788b00e3e6583bf993e0d0e0d387269650217a2a2f2e1f4b94cc8e154359d258bf3311820772b5fdc9aeec34 SHA512 c5a62a10b956d1108f288490e966e9c225555a74ace7744058a4464e4b166f3906d429ed8557d640ca0e9b4dbcc4278ef20298e869560a906c85c68ff832be52
25 -DIST tex4ht-texlive-2018-05-03.tar.xz 858204 BLAKE2B e302f24ca36ee0f61bad0979a139c25ea44128ba518b2736638ae41735e105b40be23338d93b08f0a9c3f9143486deab6551b344de5f74299d94f9edaa58ab37 SHA512 84ff9cec4d3637477d34475f05efc25e75fcb1ddd9b9cda36fbc77957f6e85b6cb456aa30554ed2c832268d6921949dc2fd4e111755269fb92fc7d231d434ca6
26 DIST tex4ht-texlive-2019-03-22.tar.xz 868992 BLAKE2B 662cc23de1b3b5f4e3d504655b5b3d87740fea045bef7987cbe2d81971e73375bd88d8ab111d48878ce1fe9d1eece4e4003e443ed0bc0f9b643b7e1653a5fc8c SHA512 44d9e2c4f92ae1ea1d7f14432d7fe1a9f11b30ec8602d55c4b8f3f46283671fb75b08641c8170bd46918e16db1bed696a613a0518acd4e195e173fe12e386833
27
28 diff --git a/dev-tex/tex4ht/tex4ht-20090611_p1038-r5.ebuild b/dev-tex/tex4ht/tex4ht-20090611_p1038-r5.ebuild
29 deleted file mode 100644
30 index 6e0a32cdfd1..00000000000
31 --- a/dev-tex/tex4ht/tex4ht-20090611_p1038-r5.ebuild
32 +++ /dev/null
33 @@ -1,122 +0,0 @@
34 -# Copyright 1999-2018 Gentoo Foundation
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=4
38 -
39 -inherit latex-package toolchain-funcs java-pkg-opt-2 flag-o-matic
40 -
41 -TL_TEX4HT_VER=2017-02-05
42 -IUSE=""
43 -
44 -# tex4ht-20050331_p2350 -> tex4ht-1.0.2005_03_31_2350
45 -MY_P="${PN}-1.0.${PV:0:4}_${PV:4:2}_${PV:6:2}_${PV/*_p/}"
46 -
47 -DESCRIPTION="Converts (La)TeX to (X)HTML, XML and OO.org"
48 -HOMEPAGE="http://www.cse.ohio-state.edu/~gurari/TeX4ht/
49 - http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html"
50 -SRC_URI="http://www.cse.ohio-state.edu/~gurari/TeX4ht/fix/${MY_P}.tar.gz
51 - mirror://gentoo/${PN}-texlive-${TL_TEX4HT_VER}.tar.xz"
52 -
53 -LICENSE="LPPL-1.2"
54 -KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
55 -SLOT="0"
56 -
57 -DEPEND=">=sys-apps/sed-4
58 - virtual/pkgconfig
59 - dev-libs/kpathsea
60 - java? ( >=virtual/jdk-1.5 )"
61 -
62 -RDEPEND="app-text/ghostscript-gpl
63 - media-gfx/imagemagick
64 - dev-libs/kpathsea
65 - java? ( >=virtual/jre-1.5 )"
66 -
67 -IUSE="java"
68 -
69 -S="${WORKDIR}/${MY_P}"
70 -
71 -src_prepare() {
72 - cp -a "${WORKDIR}/texmf-dist/"* texmf/ || die
73 - cd "${S}/texmf/tex4ht/base/unix"
74 - sed -i \
75 - -e "s#~/tex4ht.dir#${EPREFIX}/usr/share#" \
76 - -e "s#tpath/tex/texmf/fonts/tfm/!#t${EPREFIX}/usr/share/texmf-dist/fonts/tfm/!\nt${EPREFIX}/usr/local/share/texmf/fonts/tfm/!\nt${EPREFIX}/var/cache/fonts/tfm/!\nt${EPREFIX}${TEXMF}/fonts/tfm/!#" \
77 - -e "s#%%~/texmf-dist#${EPREFIX}${TEXMF}#g" \
78 - -e "s#/usr/share/texmf/#${EPREFIX}${TEXMF}/#" \
79 - tex4ht.env \
80 - || die "sed of tex4ht.env failed"
81 -
82 - einfo "Removing precompiled java stuff"
83 - find "${S}" '(' -name '*.class' -o -name '*.jar' ')' -print -delete
84 -}
85 -
86 -src_compile() {
87 - has_version '>=dev-libs/kpathsea-6.2.1' && append-cppflags "$($(tc-getPKG_CONFIG) --cflags kpathsea)"
88 -
89 - cd "${S}/src/"
90 - einfo "Compiling postprocessor sources..."
91 - for f in tex4ht t4ht htcmd ; do
92 - $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o $f $f.c \
93 - -DENVFILE="\"${EPREFIX}${TEXMF}/tex4ht/base/tex4ht.env\"" \
94 - -DHAVE_DIRENT_H -DKPATHSEA -lkpathsea \
95 - || die "Compiling $f failed"
96 - done
97 - if use java; then
98 - einfo "Compiling java files..."
99 - cd java
100 - ejavac *.java */*.java */*/*.java -d ../../texmf/tex4ht/bin
101 - cd "${S}/texmf/tex4ht/bin"
102 - # Create the jar needed by oolatex
103 - jar -cf "${S}/${PN}.jar" * || die "failed to create jar"
104 - fi
105 -}
106 -
107 -src_install () {
108 - # install the binaries
109 - dobin "${S}/src/tex4ht" "${S}/src/t4ht" "${S}/src/htcmd"
110 - # install the scripts
111 - if ! use java; then
112 - rm -f "${S}"/bin/unix/oo*
113 - rm -f "${S}"/bin/unix/jh*
114 - fi
115 - dobin "${S}"/bin/unix/mk4ht || die
116 -
117 - # install the .4ht scripts
118 - insinto ${TEXMF}/tex/generic/tex4ht
119 - doins "${S}"/texmf/tex/generic/tex4ht/* || die
120 -
121 - # install the special htf fonts
122 - insinto ${TEXMF}/tex4ht
123 - doins -r "${S}/texmf/tex4ht/ht-fonts" || die
124 -
125 - if use java; then
126 - # install the java files
127 - doins -r "${S}/texmf/tex4ht/bin"
128 - java-pkg_jarinto ${TEXMF}/tex4ht/bin
129 - java-pkg_dojar "${S}/${PN}.jar"
130 - fi
131 -
132 - # install the .4xt files
133 - doins -r "${S}/texmf/tex4ht/xtpipes" || die
134 -
135 - # install the env file
136 - insinto ${TEXMF}/tex4ht/base
137 - newins "${S}/texmf/tex4ht/base/unix/tex4ht.env" tex4ht.env || die
138 -
139 - if latex-package_has_tetex_3 ; then
140 - insinto /etc/texmf/texmf.d
141 - doins "${FILESDIR}/50tex4ht.cnf" || die
142 - fi
143 -
144 - insinto ${TEXMF}/tex/generic/${PN}
145 - insopts -m755
146 - doins "${S}"/bin/ht/unix/* || die
147 -}
148 -
149 -pkg_postinst() {
150 - use java || elog 'ODF converters (oolatex & friends) require the java use flag'
151 - latex-package_pkg_postinst
152 - elog "In order to avoid collisions with multiple packages"
153 - elog "We are not installing the scripts in /usr/bin anymore"
154 - elog "If you want to use, say, htlatex, you can use 'mk4ht htlatex file'"
155 -}
156
157 diff --git a/dev-tex/tex4ht/tex4ht-20090611_p1038-r6.ebuild b/dev-tex/tex4ht/tex4ht-20090611_p1038-r6.ebuild
158 deleted file mode 100644
159 index d0cfa850fc8..00000000000
160 --- a/dev-tex/tex4ht/tex4ht-20090611_p1038-r6.ebuild
161 +++ /dev/null
162 @@ -1,120 +0,0 @@
163 -# Copyright 1999-2018 Gentoo Foundation
164 -# Distributed under the terms of the GNU General Public License v2
165 -
166 -EAPI=6
167 -
168 -inherit latex-package toolchain-funcs java-pkg-opt-2 flag-o-matic
169 -
170 -TL_TEX4HT_VER=2018-05-03
171 -
172 -# tex4ht-20050331_p2350 -> tex4ht-1.0.2005_03_31_2350
173 -MY_P="${PN}-1.0.${PV:0:4}_${PV:4:2}_${PV:6:2}_${PV/*_p/}"
174 -
175 -DESCRIPTION="Converts (La)TeX to (X)HTML, XML and OO.org"
176 -HOMEPAGE="http://www.cse.ohio-state.edu/~gurari/TeX4ht/
177 - http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html"
178 -SRC_URI="http://www.cse.ohio-state.edu/~gurari/TeX4ht/fix/${MY_P}.tar.gz
179 - mirror://gentoo/${PN}-texlive-${TL_TEX4HT_VER}.tar.xz"
180 -
181 -LICENSE="LPPL-1.2"
182 -SLOT="0"
183 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
184 -IUSE="java"
185 -
186 -DEPEND=">=sys-apps/sed-4
187 - virtual/pkgconfig
188 - dev-libs/kpathsea
189 - java? ( >=virtual/jdk-1.5 )"
190 -
191 -RDEPEND="app-text/ghostscript-gpl
192 - media-gfx/imagemagick
193 - dev-libs/kpathsea
194 - java? ( >=virtual/jre-1.5 )"
195 -
196 -S="${WORKDIR}/${MY_P}"
197 -
198 -src_prepare() {
199 - cp -a "${WORKDIR}/texmf-dist/"* texmf/ || die
200 - eapply_user
201 - cd "${S}/texmf/tex4ht/base/unix" || die
202 - sed -i \
203 - -e "s#~/tex4ht.dir#${EPREFIX}/usr/share#" \
204 - -e "s#tpath/tex/texmf/fonts/tfm/!#t${EPREFIX}/usr/share/texmf-dist/fonts/tfm/!\nt${EPREFIX}/usr/local/share/texmf/fonts/tfm/!\nt${EPREFIX}/var/cache/fonts/tfm/!\nt${EPREFIX}${TEXMF}/fonts/tfm/!#" \
205 - -e "s#%%~/texmf-dist#${EPREFIX}${TEXMF}#g" \
206 - -e "s#/usr/share/texmf/#${EPREFIX}${TEXMF}/#" \
207 - tex4ht.env \
208 - || die "sed of tex4ht.env failed"
209 -
210 - einfo "Removing precompiled java stuff"
211 - find "${S}" '(' -name '*.class' -o -name '*.jar' ')' -print -delete || die
212 -}
213 -
214 -src_compile() {
215 - has_version '>=dev-libs/kpathsea-6.2.1' \
216 - && append-cppflags "$($(tc-getPKG_CONFIG) --cflags kpathsea)"
217 -
218 - cd "${S}/src" || die
219 - einfo "Compiling postprocessor sources..."
220 - for f in tex4ht t4ht htcmd ; do
221 - $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o $f $f.c \
222 - -DENVFILE="\"${EPREFIX}${TEXMF}/tex4ht/base/tex4ht.env\"" \
223 - -DHAVE_DIRENT_H -DKPATHSEA -lkpathsea \
224 - || die "Compiling $f failed"
225 - done
226 - if use java; then
227 - einfo "Compiling java files..."
228 - cd java || die
229 - ejavac *.java */*.java */*/*.java -d ../../texmf/tex4ht/bin
230 - cd "${S}/texmf/tex4ht/bin" || die
231 - # Create the jar needed by oolatex
232 - jar -cf "${S}/${PN}.jar" * || die "failed to create jar"
233 - fi
234 -}
235 -
236 -src_install () {
237 - # install the binaries
238 - dobin "${S}/src/tex4ht" "${S}/src/t4ht" "${S}/src/htcmd"
239 - # install the scripts
240 - if ! use java; then
241 - rm -f "${S}"/bin/unix/oo*
242 - rm -f "${S}"/bin/unix/jh*
243 - fi
244 - dobin "${S}"/bin/unix/mk4ht
245 -
246 - # install the .4ht scripts
247 - insinto ${TEXMF}/tex/generic/tex4ht
248 - doins "${S}"/texmf/tex/generic/tex4ht/*
249 -
250 - # install the special htf fonts
251 - insinto ${TEXMF}/tex4ht
252 - doins -r "${S}/texmf/tex4ht/ht-fonts"
253 -
254 - if use java; then
255 - # install the java files
256 - doins -r "${S}/texmf/tex4ht/bin"
257 - java-pkg_jarinto ${TEXMF}/tex4ht/bin
258 - java-pkg_dojar "${S}/${PN}.jar"
259 - fi
260 -
261 - # install the .4xt files
262 - doins -r "${S}/texmf/tex4ht/xtpipes"
263 -
264 - # install the env file
265 - insinto ${TEXMF}/tex4ht/base
266 - newins "${S}/texmf/tex4ht/base/unix/tex4ht.env" tex4ht.env
267 -
268 - insinto /etc/texmf/texmf.d
269 - doins "${FILESDIR}/50tex4ht.cnf"
270 -
271 - insinto ${TEXMF}/tex/generic/${PN}
272 - insopts -m755
273 - doins "${S}"/bin/ht/unix/*
274 -}
275 -
276 -pkg_postinst() {
277 - use java || elog 'ODF converters (oolatex & friends) require the java use flag'
278 - latex-package_pkg_postinst
279 - elog "In order to avoid collisions with multiple packages"
280 - elog "We are not installing the scripts in /usr/bin anymore"
281 - elog "If you want to use, say, htlatex, you can use 'mk4ht htlatex file'"
282 -}