summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2009-03-02 08:58:57 +0000
committerTiziano Müller <dev-zero@gentoo.org>2009-03-02 08:58:57 +0000
commit6506dffb7863326aefb6fc28efeaeb0a842587b7 (patch)
tree41be5840b8774e0b61c0b7fd551bdd1eaaf50e02 /dev-libs/xerces-c
parentfix patch reference #260819 (diff)
downloadgentoo-2-6506dffb7863326aefb6fc28efeaeb0a842587b7.tar.gz
gentoo-2-6506dffb7863326aefb6fc28efeaeb0a842587b7.tar.bz2
gentoo-2-6506dffb7863326aefb6fc28efeaeb0a842587b7.zip
Version bump (fixes bug #253742 as well).
(Portage version: 2.1.6.7/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/xerces-c')
-rw-r--r--dev-libs/xerces-c/ChangeLog7
-rw-r--r--dev-libs/xerces-c/xerces-c-3.0.1.ebuild87
2 files changed, 93 insertions, 1 deletions
diff --git a/dev-libs/xerces-c/ChangeLog b/dev-libs/xerces-c/ChangeLog
index bf77e2f1b57e..2818f44c75af 100644
--- a/dev-libs/xerces-c/ChangeLog
+++ b/dev-libs/xerces-c/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-libs/xerces-c
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/xerces-c/ChangeLog,v 1.78 2009/01/05 21:43:57 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/xerces-c/ChangeLog,v 1.79 2009/03/02 08:58:57 dev-zero Exp $
+
+*xerces-c-3.0.1 (02 Mar 2009)
+
+ 02 Mar 2009; Tiziano Müller <dev-zero@gentoo.org> +xerces-c-3.0.1.ebuild:
+ Version bump (fixes bug #253742 as well).
05 Jan 2009; Markus Meier <maekke@gentoo.org> metadata.xml:
drop local icu USE-flag description, as it's global now
diff --git a/dev-libs/xerces-c/xerces-c-3.0.1.ebuild b/dev-libs/xerces-c/xerces-c-3.0.1.ebuild
new file mode 100644
index 000000000000..329e49bcd7f1
--- /dev/null
+++ b/dev-libs/xerces-c/xerces-c-3.0.1.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/xerces-c/xerces-c-3.0.1.ebuild,v 1.1 2009/03/02 08:58:57 dev-zero Exp $
+
+EAPI="2"
+
+inherit eutils
+
+DESCRIPTION="A validating XML parser written in a portable subset of C++."
+HOMEPAGE="http://xerces.apache.org/xerces-c/"
+SRC_URI="mirror://apache/xerces/c/3/sources/${P}.tar.gz"
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="curl debug doc iconv icu libwww threads elibc_Darwin elibc_FreeBSD"
+
+RDEPEND="icu? ( dev-libs/icu )
+ curl? ( net-misc/curl )
+ libwww? ( net-libs/libwww )
+ virtual/libiconv"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+pkg_setup() {
+ export ICUROOT="/usr"
+
+ if use iconv && use icu ; then
+ ewarn "This package can use iconv or icu for loading messages"
+ ewarn "and transcoding, but not both. ICU will precede."
+ fi
+}
+
+src_prepare() {
+ sed -i \
+ -e 's|$(prefix)/msg|$(DESTDIR)/$(prefix)/share/xerces-c/msg|' \
+ src/xercesc/util/MsgLoaders/MsgCatalog/Makefile.in || die "sed failed"
+}
+
+src_configure() {
+ local mloader="inmemory"
+ use iconv && mloader="iconv"
+ use icu && mloader="icu"
+
+ local transcoder="gnuiconv"
+ use elibc_FreeBSD && transcoder="iconv"
+ use elibc_Darwin && transcoder="macosunicodeconverter"
+ use icu && transcoder="icu"
+
+ # 'cfurl' is only available on OSX and 'socket' isn't supposed to work.
+ # But the docs aren't clear about it, so we would need some testing...
+ local netaccessor="socket"
+ use elibc_Darwin && netaccessor="cfurl"
+ use libwww && netaccessor="libwww"
+ use curl && netaccessor="curl"
+
+ econf \
+ $(use_enable debug) \
+ $(use_enable threads) \
+ --enable-msgloader-${mloader} \
+ --enable-netaccessor-${netaccessor} \
+ --enable-transcoder-${transcoder}
+}
+
+src_compile() {
+ default
+
+ if use doc ; then
+ cd "${S}/doc"
+ doxygen || die "making docs failed"
+ fi
+}
+
+src_install () {
+ emake DESTDIR="${D}" install || die "emake failed"
+
+ cd "${S}"
+ doenvd "${FILESDIR}/50xerces-c"
+
+ if use doc; then
+ insinto /usr/share/doc/${PF}
+ rm -rf samples/Makefile* samples/runConfigure samples/src/*/Makefile* samples/.libs
+ doins -r samples
+ dohtml -r doc/html/*
+ fi
+
+ dodoc CREDITS KEYS NOTICE README version.incl
+}