Diff tth-4.08 with a tth-4.16

/usr/portage/dev-tex/tth/tth-4.16.ebuild 2023-10-09 14:52:30.912368386 +0300
1
# Copyright 1999-2021 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6
inherit toolchain-funcs
6
inherit flag-o-matic
7 7

  
8 8
DESCRIPTION="Translate TEX into HTML"
9 9
HOMEPAGE="http://hutchinson.belmont.ma.us/tth/"
10
SRC_URI="mirror://sourceforge/${PN}/${PN}${PV}.tar.gz"
10
# mirror://sourceforge/${PN}/${PN}${PV}.tar.gz
11
SRC_URI="http://hutchinson.belmont.ma.us/tth/tth-noncom/${PN}_${PV}.tgz"
12
S="${WORKDIR}"/${PN}_C
11 13

  
12
SLOT="0"
13 14
LICENSE="GPL-2"
15
SLOT="0"
14 16
KEYWORDS="amd64 arm arm64 ~hppa ppc ppc64 ~riscv x86"
15 17

  
16
DEPEND=""
17 18
RDEPEND="
18 19
	app-text/ghostscript-gpl
19
	media-libs/netpbm"
20
	media-libs/netpbm
21
"
20 22

  
21
S="${WORKDIR}/${PN}"
23
PATCHES=(
24
	"${FILESDIR}"/${PN}-4.16-Fix-build-with-Clang-16.patch
25
)
22 26

  
23 27
src_compile() {
24
	emake GCC="$(tc-getCC) -O" tth
25
	cd tools || die
26
	tc-export CC
27
	echo 'all: tthsplit' > makefile
28
	emake
28
	# Upstream support a wide variety of obsolete platforms and
29
	# are still active, so no point in patching these, bug #874744.
30
	# http://hutchinson.belmont.ma.us/tth/platform.html
31
	append-flags -std=gnu89 -Wno-strict-prototypes
32

  
33
	emake tth tthsplit
29 34
}
30 35

  
31 36
src_install() {
32
	dobin tth latex2gif ps2gif tools/ps2png tools/tthsplit
37
	dobin tth latex2gif ps2gif ps2png tthsplit
33 38
	dodoc CHANGES
34 39
	doman tth.1
35 40
}
Thank you!