summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Loeser <halcy0n@gentoo.org>2008-11-12 01:15:16 +0000
committerMark Loeser <halcy0n@gentoo.org>2008-11-12 01:15:16 +0000
commit2ec363c7161ce1806896a6aa18f9d3025d9c764a (patch)
tree3ebcd83829ab3f3de9817402f17eb1efe1e2d054 /dev-libs/xalan-c
parentReverting to ~sparc based on apparent problems with dependencies. (diff)
downloadgentoo-2-2ec363c7161ce1806896a6aa18f9d3025d9c764a.tar.gz
gentoo-2-2ec363c7161ce1806896a6aa18f9d3025d9c764a.tar.bz2
gentoo-2-2ec363c7161ce1806896a6aa18f9d3025d9c764a.zip
Bump to a snapshot to fix compilation against xerces-c-3. Thanks a lot to Martin von Gagern <Martin DOT vGagern AT gmx DOT net> for the analysis of this issue; bug #242218
(Portage version: 2.2_rc13/cvs/Linux 2.6.27.1 x86_64)
Diffstat (limited to 'dev-libs/xalan-c')
-rw-r--r--dev-libs/xalan-c/ChangeLog10
-rw-r--r--dev-libs/xalan-c/xalan-c-1.11.0_pre705082.ebuild61
2 files changed, 70 insertions, 1 deletions
diff --git a/dev-libs/xalan-c/ChangeLog b/dev-libs/xalan-c/ChangeLog
index 071392f89fea..1d0d2fce7a5a 100644
--- a/dev-libs/xalan-c/ChangeLog
+++ b/dev-libs/xalan-c/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for dev-libs/xalan-c
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/xalan-c/ChangeLog,v 1.18 2008/08/09 09:36:08 dev-zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/xalan-c/ChangeLog,v 1.19 2008/11/12 01:15:16 halcy0n Exp $
+
+*xalan-c-1.11.0_pre705082 (12 Nov 2008)
+
+ 12 Nov 2008; Mark Loeser <halcy0n@gentoo.org>
+ +xalan-c-1.11.0_pre705082.ebuild:
+ Bump to a snapshot to fix compilation against xerces-c-3. Thanks a lot to
+ Martin von Gagern <Martin DOT vGagern AT gmx DOT net> for the analysis of
+ this issue; bug #242218
09 Aug 2008; Tiziano Müller <dev-zero@gentoo.org> xalan-c-1.10.0.ebuild:
Updated xerces-c dependency
diff --git a/dev-libs/xalan-c/xalan-c-1.11.0_pre705082.ebuild b/dev-libs/xalan-c/xalan-c-1.11.0_pre705082.ebuild
new file mode 100644
index 000000000000..9aa9dc6e01a1
--- /dev/null
+++ b/dev-libs/xalan-c/xalan-c-1.11.0_pre705082.ebuild
@@ -0,0 +1,61 @@
+# 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.11.0_pre705082.ebuild,v 1.1 2008/11/12 01:15:16 halcy0n Exp $
+
+inherit toolchain-funcs eutils flag-o-matic multilib
+
+DESCRIPTION="XSLT processor for transforming XML into HTML, text, or other XML types"
+HOMEPAGE="http://xml.apache.org/xalan-c/"
+SRC_URI="mirror://gentoo/Xalan-C_r${PV#*_pre}-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}"
+
+ sed -i \
+ -e 's/\(debugflag\)="-O.\? /\1="/' \
+ -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
+}