summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-libs/xerces-c
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-libs/xerces-c')
-rw-r--r--dev-libs/xerces-c/Manifest1
-rw-r--r--dev-libs/xerces-c/files/3.1.1-disable-thread-tests.patch74
-rw-r--r--dev-libs/xerces-c/files/50xerces-c1
-rw-r--r--dev-libs/xerces-c/metadata.xml15
-rw-r--r--dev-libs/xerces-c/xerces-c-3.1.2.ebuild99
5 files changed, 190 insertions, 0 deletions
diff --git a/dev-libs/xerces-c/Manifest b/dev-libs/xerces-c/Manifest
new file mode 100644
index 000000000000..f27ac77044ba
--- /dev/null
+++ b/dev-libs/xerces-c/Manifest
@@ -0,0 +1 @@
+DIST xerces-c-3.1.2.tar.gz 6959894 SHA256 743bd0a029bf8de56a587c270d97031e0099fe2b7142cef03e0da16e282655a0 SHA512 89b61c336b270e124f7773534606706787da02437cf0b9d0374481027eb235692990b99e8ead383cb2d6da52dab2ae5f14fafcf30aba748900e1a0c32957fdc8 WHIRLPOOL 768e6f653345ed30de2b3840f437bd22df381e8c341ddfdaedd08ed48d2331937e2431cdbc503c9d1a9180848cbc6a13f0a0fe359b6d8b7e846f0b49e9e2a43b
diff --git a/dev-libs/xerces-c/files/3.1.1-disable-thread-tests.patch b/dev-libs/xerces-c/files/3.1.1-disable-thread-tests.patch
new file mode 100644
index 000000000000..bb94299af238
--- /dev/null
+++ b/dev-libs/xerces-c/files/3.1.1-disable-thread-tests.patch
@@ -0,0 +1,74 @@
+diff --git a/scripts/sanityTest_ExpectedResult.log b/scripts/sanityTest_ExpectedResult.log
+index 3588d84..9a45457 100644
+--- a/scripts/sanityTest_ExpectedResult.log
++++ b/scripts/sanityTest_ExpectedResult.log
+@@ -1146,42 +1146,7 @@ Options:
+ 1Test Run Successfully
+ 2Test Run Successfully
+ 3Test Run Successfully
+-No input XML file specified on command line.
+-usage: ThreadTest [-v] [-threads nnn] [-time nnn] [-quiet] [-verbose] xmlfile...
+- -v=xxx Validation scheme [always | never | auto]. Default is AUTO.
+- -n Enable namespace processing. Defaults to off.
+- -s Enable schema processing. Defaults to off.
+- -f Enable full schema constraint checking. Defaults to off.
+- -parser=xxx Parser Type [dom | sax | sax2]. Default is SAX (SAX1).
+- -p Enable namespace prefixes. Defaults to off.
+- (Only used with -parser=sax2, ignored otherwise.)
+- -quiet Suppress periodic status display.
+- -verbose Display extra messages.
+- -reuse Retain and reuse parser. Default creates new for each parse.
+- -threads nnn Number of threads. Default is 2.
+- -time nnn Total time to run, in seconds. Default is forever.
+- -parses nnn Run for nnn parses instead of time. Default is to use time
+- -dump Dump DOM tree on error.
+- -mem Read files into memory once only, and parse them from there.
+- -gc Enable grammar caching (i.e. grammar cached and used in subsequent parses). Defaults to off.
+- -init Perform an initial parse of the file(s) before starting up the individual threads.
+-
+-1Test Run Successfully
+-2Test Run Successfully
+-3Test Run Successfully
+-4Test Run Successfully
+-5Test Run Successfully
+-6Test Run Successfully
+-7Test Run Successfully
+-8Test Run Successfully
+-9Test Run Successfully
+-10Test Run Successfully
+-11Test Run Successfully
+-12Test Run Successfully
+-13Test Run Successfully
+-14Test Run Successfully
+-15Test Run Successfully
+-
++123456789101112131415
+ Usage:
+ MemHandlerTest [options] <XML file | List file>
+
+diff --git a/tests/Makefile.am b/tests/Makefile.am
+index 177c1c8..f333700 100644
+--- a/tests/Makefile.am
++++ b/tests/Makefile.am
+@@ -84,8 +84,6 @@ NetAccessorTest_SOURCES = src/NetAccessorTest/NetAccessorT
+ # src/ParserTest/ParserTest_Parser.cpp \
+ # src/ParserTest/ParserTest_Parser.hpp
+
+-testprogs += ThreadTest
+-ThreadTest_SOURCES = src/ThreadTest/ThreadTest.cpp
+
+ # Fails to compile under gcc 4 (ambiguous calls to NullPointerException)
+ # dcargill says this is obsolete and we can delete it.
+diff --git a/tests/Makefile.in b/tests/Makefile.in
+index d1df240..c4749fd 100644
+--- a/tests/Makefile.in
++++ b/tests/Makefile.in
+@@ -92,7 +92,7 @@ am__EXEEXT_1 = DOMTest$(EXEEXT) DOMMemTest$(EXEEXT) \
+ DOMTraversalTest$(EXEEXT) DOMTypeInfoTest$(EXEEXT) \
+ EncodingTest$(EXEEXT) InitTermTest$(EXEEXT) \
+ MemHandlerTest$(EXEEXT) NetAccessorTest$(EXEEXT) \
+- ThreadTest$(EXEEXT) XSerializerTest$(EXEEXT) \
++ XSerializerTest$(EXEEXT) \
+ XSTSHarness$(EXEEXT) XSValueTest$(EXEEXT)
+ am__dirstamp = $(am__leading_dot)dirstamp
+ am_DOMMemTest_OBJECTS = src/DOM/DOMMemTest/DOMMemTest.$(OBJEXT)
diff --git a/dev-libs/xerces-c/files/50xerces-c b/dev-libs/xerces-c/files/50xerces-c
new file mode 100644
index 000000000000..6fdb7ffbdee9
--- /dev/null
+++ b/dev-libs/xerces-c/files/50xerces-c
@@ -0,0 +1 @@
+XERCESC_NLS_HOME="/usr/share/xerces-c/msg"
diff --git a/dev-libs/xerces-c/metadata.xml b/dev-libs/xerces-c/metadata.xml
new file mode 100644
index 000000000000..4ae03a969480
--- /dev/null
+++ b/dev-libs/xerces-c/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cpp</herd>
+<longdescription>xerces-c is a C++ library specializing in XML parsing. It is released by the Apache Foundation</longdescription>
+<use>
+ <flag name='iconv'>Use iconv (<pkg>virtual/libiconv</pkg>) as message loader
+ and transcoder (in general it would be possible to use iconv only as
+ message loader and something else like icu or the native method as
+ transcoder and vice-versa, but this is a less common case and hard to
+ handle)</flag>
+ <flag name='threads'>Enable threading support through pthread (or other
+ libraries on AIX, IRIX, HPUX, Solars). Highly recommended</flag>
+</use>
+</pkgmetadata>
diff --git a/dev-libs/xerces-c/xerces-c-3.1.2.ebuild b/dev-libs/xerces-c/xerces-c-3.1.2.ebuild
new file mode 100644
index 000000000000..2f55f905f94e
--- /dev/null
+++ b/dev-libs/xerces-c/xerces-c-3.1.2.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+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 ~arm hppa ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+
+IUSE="cpu_flags_x86_sse2 curl doc elibc_Darwin elibc_FreeBSD iconv icu static-libs threads"
+
+RDEPEND="icu? ( dev-libs/icu:0= )
+ curl? ( net-misc/curl )
+ virtual/libiconv"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+DOCS=( CREDITS KEYS NOTICE README version.incl )
+
+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() {
+ use threads || epatch "${FILESDIR}/3.1.1-disable-thread-tests.patch"
+
+ sed -i \
+ -e 's|$(prefix)/msg|$(DESTDIR)/$(prefix)/share/xerces-c/msg|' \
+ -e 's/@mkdir_p@/@MKDIR_P@/' \
+ src/xercesc/util/MsgLoaders/MsgCatalog/Makefile.in || die
+
+ epatch_user
+}
+
+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"
+ # for interix maybe: transcoder="windows"
+
+ # '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 curl && netaccessor="curl"
+
+ econf \
+ --disable-pretty-make \
+ $(use_enable static-libs static) \
+ $(use_enable threads) \
+ --enable-msgloader-${mloader} \
+ --enable-netaccessor-${netaccessor} \
+ --enable-transcoder-${transcoder} \
+ $(use_enable cpu_flags_x86_sse2 sse2)
+}
+
+src_compile() {
+ default
+
+ if use doc ; then
+ cd "${S}/doc"
+ doxygen || die "making docs failed"
+ fi
+}
+
+src_install () {
+ default
+ prune_libtool_files
+
+ # To make sure an appropriate NLS msg file is around when using the iconv msgloader
+ # ICU has the messages compiled in.
+ if use iconv && ! use icu ; then
+ doenvd "${FILESDIR}/50xerces-c"
+ fi
+
+ 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
+}