# ChangeLog for dev-libs/xalan-c
# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/xalan-c/ChangeLog,v 1.2 2004/06/24 23:37:58 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/xalan-c/ChangeLog,v 1.3 2004/11/11 01:17:27 vapier Exp $
+
+*xalan-c-1.8.0 (10 Nov 2004)
+
+ 10 Nov 2004; Mike Frysinger <vapier@gentoo.org> +files/1.8.0-gcc34.patch,
+ xalan-c-1.7.0.ebuild, +xalan-c-1.8.0.ebuild:
+ Version bump #62196 by Sebastian Roth.
*xalan-c-1.7.0 (21 Feb 2004)
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 a9a056a317dae080c1f9ff97256eddac ChangeLog 347
-MD5 66e06db2ec66a406e37f8bf62f4f60ef xalan-c-1.7.0.ebuild 1241
+MD5 86eb61a504a0002e10fcb12f01fb1e8d ChangeLog 540
+MD5 c0f00804c3cf45769d096b898b392ede xalan-c-1.8.0.ebuild 1374
+MD5 809f07ff2d6a5e389e0d112d43d5e917 xalan-c-1.7.0.ebuild 1240
MD5 a33c1f42e271ebd8c220bb0f3e2700a4 files/digest-xalan-c-1.7.0 70
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.9.10 (GNU/Linux)
-
-iD8DBQFBPooMHTu7gpaalycRAosYAKDfnJBRiiVQWQVZTSy1UAWoAChlQgCgi+aY
-o/yrZ4RW/RoAGo+0cYZItJk=
-=xZdb
------END PGP SIGNATURE-----
+MD5 881240fb22a76f3154c27afb3777c5c7 files/digest-xalan-c-1.8.0 70
+MD5 e131b9c9f4b7f273cb215160b6ab95da files/1.8.0-gcc34.patch 583
--- /dev/null
+--- xml-xalan/c/src/xalanc/PlatformSupport/XalanArrayAllocator.hpp.orig 2004-11-10 19:46:56.846893553 -0500
++++ xml-xalan/c/src/xalanc/PlatformSupport/XalanArrayAllocator.hpp 2004-11-10 19:47:12.901962732 -0500
+@@ -170,7 +170,7 @@
+ ListEntryType& theNewEntry = m_list.back();
+
+ // Resize the vector to the appropriate size...
+- theNewEntry.second.resize(theBlockSize, VectorType::value_type(0));
++ theNewEntry.second.resize(theBlockSize, typename VectorType::value_type(0));
+
+ // Set the number of free spaces accordingly...
+ theNewEntry.first = theBlockSize - theCount;
--- /dev/null
+MD5 fca5101f56608311f8121591f022bc2c Xalan-C_1_8_0-src.tar.gz 1351965
# Copyright 1999-2004 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.7.0.ebuild,v 1.5 2004/09/08 04:26:42 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/xalan-c/xalan-c-1.7.0.ebuild,v 1.6 2004/11/11 01:17:27 vapier Exp $
inherit gcc
LICENSE="Apache-1.1"
SLOT="0"
-KEYWORDS="~x86"
+KEYWORDS="x86"
IUSE="doc"
DEPEND=">=dev-libs/xerces-c-2.4.0"
--- /dev/null
+# Copyright 1999-2004 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.8.0.ebuild,v 1.1 2004/11/11 01:17:27 vapier 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
+ 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-1.1"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="doc"
+
+DEPEND=">=dev-libs/xerces-c-2.4.0"
+
+S=${WORKDIR}/xml-xalan/c
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PV}-gcc34.patch
+}
+
+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
+}
+
+src_install() {
+ export XALANCROOT=${S}
+ make DESTDIR=${D} install || die
+
+ 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
+ fi
+}