summaryrefslogtreecommitdiff
blob: 798aa76567ad0bf423b9f2ca72ab6c2162554031 (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
51
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

ECM_QTHELP="false"
PVCUT=$(ver_cut 1-2)
inherit ecm frameworks.kde.org

DESCRIPTION="Tools to generate documentation in various formats from DocBook files"

LICENSE="MIT"
KEYWORDS="amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv x86"
IUSE="nls"

DEPEND="
	app-text/docbook-xml-dtd:4.5
	app-text/docbook-xsl-stylesheets
	app-text/sgml-common
	dev-libs/libxml2:2
	dev-libs/libxslt
	=kde-frameworks/karchive-${PVCUT}*:5
"
RDEPEND="${DEPEND}"
BDEPEND="
	dev-lang/perl
	dev-perl/URI
	nls? ( >=kde-frameworks/ki18n-${PVCUT}:5 )
"

PATCHES=(
	"${FILESDIR}/${PN}-5.54.0-gentoo-docbundledir.patch"
	"${FILESDIR}/${P}-libxml2-2.12.patch" # in 5.113; bug 917527
)

src_configure() {
	local mycmakeargs=(
		$(cmake_use_find_package nls KF5I18n)
	)

	ecm_src_configure
}

src_test() {
	# bug 665622
	local myctestargs=(
		-E "(kdoctools_install)"
	)

	ecm_src_test
}