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: Sat, 26 Jun 2021 18:08:55
Message-Id: 1624730912.97f4cd55084315fed97088578d762faec9ccf211.ulm@gentoo
1 commit: 97f4cd55084315fed97088578d762faec9ccf211
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 26 18:08:32 2021 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 26 18:08:32 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97f4cd55
7
8 dev-tex/tex4ht: Remove old
9
10 Package-Manager: Portage-3.0.20, 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-r11.ebuild | 126 ------------------------
15 2 files changed, 127 deletions(-)
16
17 diff --git a/dev-tex/tex4ht/Manifest b/dev-tex/tex4ht/Manifest
18 index d5012f46efc..43d3ada1b59 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-2020-06-24.tar.xz 880952 BLAKE2B d021efca48571711d06d7ed6ecefce068339a49fa83efeaa476329d892a77f73b27273a711dad2cb7ce212ece87ef8a776a10127cec5dc2e0096ce36adbc42a4 SHA512 b6109d27fd38eb0f2f9aab8b96adee2e69081c7317de3c9f527e47053d1520b93c0499e23fdc66f38f04c50633f72930e4fdf5d07612894427ae31dcbc1f66d4
24 DIST tex4ht-texlive-20210603.doc.tar.xz 136388 BLAKE2B d379e35b8fcd37243e2e1e9b4c378b78004774c530031ecbc0f10b99041a9f785d2317054d2f41181f41d29718d3dbbd7e9632541013eaeea6d54fcdb3568f3f SHA512 de7c2fb855010f62d8dc7dda39826a549aa38daf5acb9e89abf19cf26724db5ac25f362a490058a1456a056ee9954eaa52985b9a05dcb89d6a947474593a77cb
25 DIST tex4ht-texlive-20210603.tar.xz 908004 BLAKE2B bbc5ce16c10314120b998b5d2b527cf918c0991f47e6c7abe322dba62c1371a38f80ba971a971d756df548aa91d8c5b1f1f0ce3128a6dd33ac052ee465e0be99 SHA512 5a51db0b4cfacba33f9cd83b757d45f83c8470bb451a0376f328a1e78ffe39e5f22dcf2be6f9bed5724eed373ff020c8fa4aa38d9bf34bb45a05186e224e144e
26
27 diff --git a/dev-tex/tex4ht/tex4ht-20090611_p1038-r11.ebuild b/dev-tex/tex4ht/tex4ht-20090611_p1038-r11.ebuild
28 deleted file mode 100644
29 index 7e3751dc6f4..00000000000
30 --- a/dev-tex/tex4ht/tex4ht-20090611_p1038-r11.ebuild
31 +++ /dev/null
32 @@ -1,126 +0,0 @@
33 -# Copyright 1999-2021 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 readme.gentoo-r1
39 -
40 -# from http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex4ht.tar.xz
41 -TL_TEX4HT_VER="2020-06-24"
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 - https://dev.gentoo.org/~ulm/distfiles/${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="!>=dev-texlive/texlive-latex-2021
58 - app-text/ghostscript-gpl
59 - media-gfx/imagemagick
60 - dev-libs/kpathsea
61 - java? ( >=virtual/jre-1.8:* )"
62 -
63 -DEPEND="dev-libs/kpathsea
64 - java? ( >=virtual/jdk-1.8:* )"
65 -
66 -BDEPEND="virtual/pkgconfig"
67 -
68 -S="${WORKDIR}/${MY_P}"
69 -
70 -src_prepare() {
71 - cp -a "${WORKDIR}/texmf-dist/"* texmf/ || die
72 - default
73 - cd "${S}/texmf/tex4ht/base/unix" || die
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#%%~#${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 || die
84 -}
85 -
86 -src_compile() {
87 - has_version '>=dev-libs/kpathsea-6.2.1' \
88 - && append-cppflags "$($(tc-getPKG_CONFIG) --cflags kpathsea)"
89 -
90 - cd "${S}/src" || die
91 - einfo "Compiling postprocessor sources..."
92 - for f in tex4ht t4ht; do
93 - $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o $f $f.c \
94 - -DENVFILE="\"${EPREFIX}${TEXMF}/tex4ht/base/tex4ht.env\"" \
95 - -DHAVE_DIRENT_H -DKPATHSEA -lkpathsea \
96 - || die "Compiling $f failed"
97 - done
98 - if use java; then
99 - einfo "Compiling java files..."
100 - cd java || die
101 - ejavac *.java */*.java */*/*.java -d ../../texmf/tex4ht/bin
102 - cd "${S}/texmf/tex4ht/bin" || die
103 - # Create the jar needed by oolatex
104 - jar -cf "${S}/${PN}.jar" * || die "failed to create jar"
105 - fi
106 -}
107 -
108 -src_install() {
109 - # install the binaries
110 - dobin "${S}/src/tex4ht" "${S}/src/t4ht"
111 - # install the scripts
112 - if ! use java; then
113 - rm -f "${S}"/bin/unix/oo*
114 - rm -f "${S}"/bin/unix/jh*
115 - fi
116 - dobin "${S}"/bin/unix/mk4ht
117 -
118 - # install the .4ht scripts
119 - insinto ${TEXMF}/tex/generic/tex4ht
120 - doins "${S}"/texmf/tex/generic/tex4ht/*
121 -
122 - # install the special htf fonts
123 - insinto ${TEXMF}/tex4ht
124 - doins -r "${S}/texmf/tex4ht/ht-fonts"
125 -
126 - if use java; then
127 - # install the java files
128 - doins -r "${S}/texmf/tex4ht/bin"
129 - java-pkg_jarinto ${TEXMF}/tex4ht/bin
130 - java-pkg_dojar "${S}/${PN}.jar"
131 - fi
132 -
133 - # install the .4xt files
134 - doins -r "${S}/texmf/tex4ht/xtpipes"
135 -
136 - # install the env file
137 - insinto ${TEXMF}/tex4ht/base
138 - newins "${S}/texmf/tex4ht/base/unix/tex4ht.env" tex4ht.env
139 -
140 - insinto /etc/texmf/texmf.d
141 - doins "${FILESDIR}/50tex4ht.cnf"
142 -
143 - insinto ${TEXMF}/tex/generic/${PN}
144 - insopts -m755
145 - doins "${S}"/bin/ht/unix/*
146 -
147 - local DOC_CONTENTS="In order to avoid collisions with multiple packages,
148 - we are not installing the scripts in /usr/bin any more.
149 - If you want to use, say, htlatex, you can use 'mk4ht htlatex file'."
150 - use java || DOC_CONTENTS+="\n\nODF converters (oolatex & friends)
151 - require the java use flag."
152 - readme.gentoo_create_doc
153 -}
154 -
155 -pkg_postinst() {
156 - latex-package_pkg_postinst
157 - readme.gentoo_print_elog
158 -}