blob: 9c5a793080f638829d717249e62a1b32b7253c14 (
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
67
68
69
70
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/xalan-c/xalan-c-1.10.0.ebuild,v 1.13 2008/08/09 09:36:08 dev-zero Exp $
inherit toolchain-funcs eutils flag-o-matic multilib
MY_PV=${PV//./_}
DESCRIPTION="XSLT processor for transforming XML into HTML, text, or other XML types"
HOMEPAGE="http://xml.apache.org/xalan-c/"
SRC_URI="ftp://apache.mirrors.pair.com/xml/xalan-c/Xalan-C_${MY_PV}-src.tar.gz
http://apache.mirrors.hoobly.com/xml/xalan-c/Xalan-C_${MY_PV}-src.tar.gz
http://www.tux.org/pub/net/apache/dist/xml/xalan-c/Xalan-C_${MY_PV}-src.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 ~ppc sparc x86"
IUSE="doc"
RDEPEND=">=dev-libs/xerces-c-2.7.0"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )"
S=${WORKDIR}/xml-xalan/c
src_unpack() {
unpack ${A}
cd "${S}"
# https://issues.apache.org/jira/browse/XALANC-643
epatch "${FILESDIR}/1.10.0-as-needed.patch"
epatch "${FILESDIR}/${P}+gcc-4.3.patch"
chmod a+r $(find . -type f)
chmod a+rx $(find . -type d)
sed -i \
-e 's/^\(CXXFLAGS\)="$compileroptions/\1="${\1}/' \
-e 's/^\(CFLAGS\)="$compileroptions/\1="${\1}/' \
runConfigure || die "sed failed"
}
src_compile() {
export XALANCROOT=${S}
export XERCESCROOT="/usr/include/xercesc"
append-ldflags -pthread
./runConfigure -p linux -c "$(tc-getCC)" -x "$(tc-getCXX)" -P /usr -C --libdir=/usr/$(get_libdir) || die "configure failed"
emake -j1 || die "emake failed"
if use doc ; then
mkdir build
cd "${S}/xdocs"
doxygen DoxyfileXalan
fi
}
src_install() {
export XALANCROOT=${S}
emake DESTDIR="${D}" install || die "emake install failed"
dodoc README version.incl
dohtml readme.html
if use doc ; then
dodir /usr/share/doc/${PF}
cp -r "${S}/samples" "${D}/usr/share/doc/${PF}"
find "${D}/usr/share/doc/${PF}" -type d -name CVS -exec rm -rf '{}' \; >& /dev/null
dohtml -r build/docs/apiDocs
fi
}
|