# ChangeLog for dev-libs/xalan-c
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/xalan-c/ChangeLog,v 1.8 2006/11/07 00:26:58 dang Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/xalan-c/ChangeLog,v 1.9 2006/12/04 17:49:19 dev-zero Exp $
+
+ 04 Dec 2006; Tiziano Müller <dev-zero@gentoo.org>
+ -files/1.8.0-gcc34.patch, -xalan-c-1.7.0.ebuild, -xalan-c-1.8.0.ebuild,
+ xalan-c-1.10.0.ebuild:
+ Dropping old versions. Added API-doc generation (bug #157046) using doxygen.
+ Updated ebuild to make the package use our CXXFLAGS.
07 Nov 2006; Daniel Gryniewicz <dang@gentoo.org> xalan-c-1.10.0.ebuild:
Marked stable on amd64 for bug #152042
# Copyright 1999-2006 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.4 2006/11/07 00:26:58 dang Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/xalan-c/xalan-c-1.10.0.ebuild,v 1.5 2006/12/04 17:49:19 dev-zero Exp $
inherit toolchain-funcs eutils flag-o-matic
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
KEYWORDS="amd64 sparc x86"
IUSE="doc"
-DEPEND=">=dev-libs/xerces-c-2.4.0"
+RDEPEND=">=dev-libs/xerces-c-2.4.0"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
S=${WORKDIR}/xml-xalan/c
cd "${S}"
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 || die
- emake -j1 || die
+
+ ./runConfigure -p linux -c "$(tc-getCC)" -x "$(tc-getCXX)" -P /usr || 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}
- make DESTDIR="${D}" install || die
+ 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 doc/html
+ 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
}