blob: ce92a2b0e6c6839c03e3af9f05b801cf1ab38e87 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
MY_PN=${PN/-/_}
DESCRIPTION="XSLT processor for transforming XML into HTML, text, or other XML types"
HOMEPAGE="https://apache.github.io/xalan-c/"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/apache/xalan-c.git"
SLOT="0"
else
inherit verify-sig
SRC_URI="
https://dlcdn.apache.org/xalan/xalan-c/sources/${MY_PN}-${PV}.tar.gz
verify-sig? ( https://dlcdn.apache.org/xalan/xalan-c/sources/${MY_PN}-${PV}.tar.gz.asc )
"
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/apache-xalan-c.asc
SLOT="0/$(ver_cut 1-2)"
KEYWORDS="amd64 ~ppc x86"
S="${WORKDIR}/${MY_PN}-${PV}"
BDEPEND="
verify-sig? ( sec-keys/openpgp-keys-apache-xalan-c )
"
fi
LICENSE="Apache-2.0"
IUSE="doc"
RDEPEND="
dev-libs/icu:=
dev-libs/xerces-c[icu]
"
DEPEND="${RDEPEND}"
BDEPEND+="
doc? ( app-text/doxygen[dot] )
"
PATCHES=(
"${FILESDIR}"/${P}-fix-lto.patch
"${FILESDIR}"/${P}-fix-threads.patch
"${FILESDIR}"/${P}-icu-75.patch
"${FILESDIR}"/${P}-gcc-15.patch
)
src_configure() {
local mycmakeargs=(
-Ddoxygen=$(usex doc)
)
cmake_src_configure
}
src_install() {
cmake_src_install
if use doc; then
docinto examples
dodoc -r samples/*/
fi
}
|