summaryrefslogtreecommitdiff
blob: 956c04c359bf7705d4cdc8a0b004980a2d3adbeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit flag-o-matic

DESCRIPTION="Translate TEX into HTML"
HOMEPAGE="http://hutchinson.belmont.ma.us/tth/"
# https://downloads.sourceforge.net/${PN}/${PN}${PV}.tar.gz
SRC_URI="http://hutchinson.belmont.ma.us/tth/tth-noncom/${PN}_${PV}.tgz"
S="${WORKDIR}"/${PN}_C

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 arm arm64 ~hppa ppc ppc64 ~riscv x86"

RDEPEND="
	app-text/ghostscript-gpl
	media-libs/netpbm
"

PATCHES=(
	"${FILESDIR}"/${PN}-4.16-Fix-build-with-Clang-16.patch
)

src_compile() {
	# Upstream support a wide variety of obsolete platforms and
	# are still active, so no point in patching these, bug #874744.
	# http://hutchinson.belmont.ma.us/tth/platform.html
	append-flags -std=gnu89 -Wno-strict-prototypes

	emake tth tthsplit
}

src_install() {
	dobin tth latex2gif ps2gif ps2png tthsplit
	dodoc CHANGES
	doman tth.1
}