blob: 6dd7a88b09f04d69a85158374ff1def332cad508 (
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
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
DESCRIPTION="Tool to convert simple XML to a variety of formats (pdf, html, txt, manpage)"
HOMEPAGE="http://xml2doc.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~hppa ia64 ~mips ppc ppc64 sparc x86"
DEPEND="dev-libs/libxml2:2"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${PN}"
PATCHES=(
# Fix pointer-related bug detected by a QA notice
"${FILESDIR}"/${PN}-pointer_fix.patch
# Don't strip symbols from binary (bug #152266)
"${FILESDIR}"/${P}-makefile.patch
# fix GCC 10 -fno-common change
"${FILESDIR}"/${P}-gcc10-no-common.patch
)
src_configure() {
tc-export CC
econf --disable-pdf
}
src_compile() {
default
cd doc || die
"${S}"/src/xml2doc -oM manpage.xml xml2doc.1 || die
}
src_install() {
dobin src/xml2doc
einstalldocs
docinto examples
dodoc examples/*.{xml,png}
doman doc/xml2doc.1
}
|