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, 25 Apr 2021 20:37:05
Message-Id: 1619383015.63a764c1ee946e3368e6111deaa99c0437edb950.ulm@gentoo
1 commit: 63a764c1ee946e3368e6111deaa99c0437edb950
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 25 20:36:30 2021 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 25 20:36:55 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63a764c1
7
8 dev-tex/tex4ht: Remove old
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.3
11 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
12
13 dev-tex/tex4ht/Manifest | 1 -
14 dev-tex/tex4ht/tex4ht-20090611_p1038-r8.ebuild | 121 -------------------------
15 2 files changed, 122 deletions(-)
16
17 diff --git a/dev-tex/tex4ht/Manifest b/dev-tex/tex4ht/Manifest
18 index 41fc36feea4..340a1e5473e 100644
19 --- a/dev-tex/tex4ht/Manifest
20 +++ b/dev-tex/tex4ht/Manifest
21 @@ -1,4 +1,3 @@
22 DIST tex4ht-1.0.2009_06_11_1038.tar.gz 2576719 BLAKE2B d04fd7b5f614414a200b01f11bea9880ea12561873fc08cb2f5f6f62167d6128cc50abbeeee0c7eae5d80046f6d3b504493d66262153c5a534fd1b56bfa1dfcd SHA512 868961c16da63ef20a8af3ec3e56a2b6c518a291cdbc3974f701773dbb55b844f0df06aae4c7b481c96b9e2ba29cb0f1ed1279b6f32340e4708e31bb67170963
23 -DIST tex4ht-texlive-2019-03-22.tar.xz 868992 BLAKE2B 662cc23de1b3b5f4e3d504655b5b3d87740fea045bef7987cbe2d81971e73375bd88d8ab111d48878ce1fe9d1eece4e4003e443ed0bc0f9b643b7e1653a5fc8c SHA512 44d9e2c4f92ae1ea1d7f14432d7fe1a9f11b30ec8602d55c4b8f3f46283671fb75b08641c8170bd46918e16db1bed696a613a0518acd4e195e173fe12e386833
24 DIST tex4ht-texlive-2020-06-24.tar.xz 880952 BLAKE2B d021efca48571711d06d7ed6ecefce068339a49fa83efeaa476329d892a77f73b27273a711dad2cb7ce212ece87ef8a776a10127cec5dc2e0096ce36adbc42a4 SHA512 b6109d27fd38eb0f2f9aab8b96adee2e69081c7317de3c9f527e47053d1520b93c0499e23fdc66f38f04c50633f72930e4fdf5d07612894427ae31dcbc1f66d4
25 DIST tex4ht-texlive-20210423.tar.xz 906180 BLAKE2B 7592380e798385471f3b9675deb557a100650749a58a2724d366cfe8ad9fb4b2d2a678265b5d2166905c4cc9f52e92ef722085cc39df167c7c23f4926a619b49 SHA512 7131a62f9ecbeeb3afbc97f465b20b5bc5c57bdade9d07772661607f5f43fb0ef67f42630fceee8d5988872b158efe1dd99bb220c1e7cd9e936f71feab036888
26
27 diff --git a/dev-tex/tex4ht/tex4ht-20090611_p1038-r8.ebuild b/dev-tex/tex4ht/tex4ht-20090611_p1038-r8.ebuild
28 deleted file mode 100644
29 index 095c26e4d8a..00000000000
30 --- a/dev-tex/tex4ht/tex4ht-20090611_p1038-r8.ebuild
31 +++ /dev/null
32 @@ -1,121 +0,0 @@
33 -# Copyright 1999-2020 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=7
37 -
38 -inherit latex-package toolchain-funcs java-pkg-opt-2 flag-o-matic
39 -
40 -# from ftp://ftp.cstug.cz/pub/tex/local/tlpretest/archive/tex4ht.tar.xz
41 -TL_TEX4HT_VER="2019-03-22"
42 -
43 -# tex4ht-20050331_p2350 -> tex4ht-1.0.2005_03_31_2350
44 -MY_P="${PN}-1.0.${PV:0:4}_${PV:4:2}_${PV:6:2}_${PV/*_p/}"
45 -
46 -DESCRIPTION="Converts (La)TeX to (X)HTML, XML and OO.org"
47 -HOMEPAGE="http://www.cse.ohio-state.edu/~gurari/TeX4ht/
48 - http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html"
49 -SRC_URI="http://www.cse.ohio-state.edu/~gurari/TeX4ht/fix/${MY_P}.tar.gz
50 - mirror://gentoo/${PN}-texlive-${TL_TEX4HT_VER}.tar.xz"
51 -
52 -LICENSE="LPPL-1.2"
53 -SLOT="0"
54 -KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
55 -IUSE="java"
56 -
57 -RDEPEND="app-text/ghostscript-gpl
58 - media-gfx/imagemagick
59 - dev-libs/kpathsea
60 - java? ( >=virtual/jre-1.5 )"
61 -
62 -DEPEND="dev-libs/kpathsea"
63 -
64 -BDEPEND="virtual/pkgconfig
65 - java? ( >=virtual/jdk-1.5 )"
66 -
67 -S="${WORKDIR}/${MY_P}"
68 -
69 -src_prepare() {
70 - cp -a "${WORKDIR}/texmf-dist/"* texmf/ || die
71 - eapply_user
72 - cd "${S}/texmf/tex4ht/base/unix" || die
73 - sed -i \
74 - -e "s#~/tex4ht.dir#${EPREFIX}/usr/share#" \
75 - -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/!#" \
76 - -e "s#%%~#${EPREFIX}${TEXMF}#g" \
77 - -e "s#/usr/share/texmf/#${EPREFIX}${TEXMF}/#" \
78 - tex4ht.env \
79 - || die "sed of tex4ht.env failed"
80 -
81 - einfo "Removing precompiled java stuff"
82 - find "${S}" '(' -name '*.class' -o -name '*.jar' ')' -print -delete || die
83 -}
84 -
85 -src_compile() {
86 - has_version '>=dev-libs/kpathsea-6.2.1' \
87 - && append-cppflags "$($(tc-getPKG_CONFIG) --cflags kpathsea)"
88 -
89 - cd "${S}/src" || die
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 || die
100 - ejavac *.java */*.java */*/*.java -d ../../texmf/tex4ht/bin
101 - cd "${S}/texmf/tex4ht/bin" || die
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
116 -
117 - # install the .4ht scripts
118 - insinto ${TEXMF}/tex/generic/tex4ht
119 - doins "${S}"/texmf/tex/generic/tex4ht/*
120 -
121 - # install the special htf fonts
122 - insinto ${TEXMF}/tex4ht
123 - doins -r "${S}/texmf/tex4ht/ht-fonts"
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"
134 -
135 - # install the env file
136 - insinto ${TEXMF}/tex4ht/base
137 - newins "${S}/texmf/tex4ht/base/unix/tex4ht.env" tex4ht.env
138 -
139 - insinto /etc/texmf/texmf.d
140 - doins "${FILESDIR}/50tex4ht.cnf"
141 -
142 - insinto ${TEXMF}/tex/generic/${PN}
143 - insopts -m755
144 - doins "${S}"/bin/ht/unix/*
145 -}
146 -
147 -pkg_postinst() {
148 - use java || elog 'ODF converters (oolatex & friends) require the java use flag'
149 - latex-package_pkg_postinst
150 - elog "In order to avoid collisions with multiple packages"
151 - elog "We are not installing the scripts in /usr/bin anymore"
152 - elog "If you want to use, say, htlatex, you can use 'mk4ht htlatex file'"
153 -}