1 |
commit: 18b0a0f7971c90a2d463ecad249a27b69243137a |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 28 11:55:17 2016 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 28 12:07:58 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18b0a0f7 |
7 |
|
8 |
dev-libs/xerces-c: Version bump |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
|
12 |
dev-libs/xerces-c/Manifest | 1 + |
13 |
dev-libs/xerces-c/xerces-c-3.1.3.ebuild | 99 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 100 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/xerces-c/Manifest b/dev-libs/xerces-c/Manifest |
17 |
index f27ac77..4641232 100644 |
18 |
--- a/dev-libs/xerces-c/Manifest |
19 |
+++ b/dev-libs/xerces-c/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST xerces-c-3.1.2.tar.gz 6959894 SHA256 743bd0a029bf8de56a587c270d97031e0099fe2b7142cef03e0da16e282655a0 SHA512 89b61c336b270e124f7773534606706787da02437cf0b9d0374481027eb235692990b99e8ead383cb2d6da52dab2ae5f14fafcf30aba748900e1a0c32957fdc8 WHIRLPOOL 768e6f653345ed30de2b3840f437bd22df381e8c341ddfdaedd08ed48d2331937e2431cdbc503c9d1a9180848cbc6a13f0a0fe359b6d8b7e846f0b49e9e2a43b |
22 |
+DIST xerces-c-3.1.3.tar.gz 9009575 SHA256 f3d4f73db7c981e16db2b16d9424b0c75d9fbd30ad81747cac047bc6170b5b49 SHA512 587f74360265d148fede240b04b75aaeb17d67d7da007084bcab95af893f6512503ea487766dbf318aaa750c8463bfe1b9b6593925b7181c341dd06ca0113183 WHIRLPOOL 4f0277052f9cc8428f8976ec0d1305439882f67ebc592946e7f8d0905a06e157801413d51d644afca1042d8341dab7261374a8c678c6f78a3d11dbfa96f9a4e2 |
23 |
|
24 |
diff --git a/dev-libs/xerces-c/xerces-c-3.1.3.ebuild b/dev-libs/xerces-c/xerces-c-3.1.3.ebuild |
25 |
new file mode 100644 |
26 |
index 0000000..d8e0f94 |
27 |
--- /dev/null |
28 |
+++ b/dev-libs/xerces-c/xerces-c-3.1.3.ebuild |
29 |
@@ -0,0 +1,99 @@ |
30 |
+# Copyright 1999-2016 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=5 |
35 |
+ |
36 |
+inherit eutils |
37 |
+ |
38 |
+DESCRIPTION="A validating XML parser written in a portable subset of C++" |
39 |
+HOMEPAGE="http://xerces.apache.org/xerces-c/" |
40 |
+SRC_URI="mirror://apache/xerces/c/3/sources/${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="Apache-2.0" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
45 |
+ |
46 |
+IUSE="cpu_flags_x86_sse2 curl doc elibc_Darwin elibc_FreeBSD iconv icu static-libs threads" |
47 |
+ |
48 |
+RDEPEND="icu? ( dev-libs/icu:0= ) |
49 |
+ curl? ( net-misc/curl ) |
50 |
+ virtual/libiconv" |
51 |
+DEPEND="${RDEPEND} |
52 |
+ doc? ( app-doc/doxygen )" |
53 |
+ |
54 |
+DOCS=( CREDITS KEYS NOTICE README version.incl ) |
55 |
+ |
56 |
+pkg_setup() { |
57 |
+ export ICUROOT="/usr" |
58 |
+ |
59 |
+ if use iconv && use icu ; then |
60 |
+ ewarn "This package can use iconv or icu for loading messages" |
61 |
+ ewarn "and transcoding, but not both. ICU will precede." |
62 |
+ fi |
63 |
+} |
64 |
+ |
65 |
+src_prepare() { |
66 |
+ use threads || epatch "${FILESDIR}/3.1.1-disable-thread-tests.patch" |
67 |
+ |
68 |
+ sed -i \ |
69 |
+ -e 's|$(prefix)/msg|$(DESTDIR)/$(prefix)/share/xerces-c/msg|' \ |
70 |
+ -e 's/@mkdir_p@/@MKDIR_P@/' \ |
71 |
+ src/xercesc/util/MsgLoaders/MsgCatalog/Makefile.in || die |
72 |
+ |
73 |
+ epatch_user |
74 |
+} |
75 |
+ |
76 |
+src_configure() { |
77 |
+ local mloader="inmemory" |
78 |
+ use iconv && mloader="iconv" |
79 |
+ use icu && mloader="icu" |
80 |
+ |
81 |
+ local transcoder="gnuiconv" |
82 |
+ use elibc_FreeBSD && transcoder="iconv" |
83 |
+ use elibc_Darwin && transcoder="macosunicodeconverter" |
84 |
+ use icu && transcoder="icu" |
85 |
+ # for interix maybe: transcoder="windows" |
86 |
+ |
87 |
+ # 'cfurl' is only available on OSX and 'socket' isn't supposed to work. |
88 |
+ # But the docs aren't clear about it, so we would need some testing... |
89 |
+ local netaccessor="socket" |
90 |
+ use elibc_Darwin && netaccessor="cfurl" |
91 |
+ use curl && netaccessor="curl" |
92 |
+ |
93 |
+ econf \ |
94 |
+ --disable-pretty-make \ |
95 |
+ $(use_enable static-libs static) \ |
96 |
+ $(use_enable threads) \ |
97 |
+ --enable-msgloader-${mloader} \ |
98 |
+ --enable-netaccessor-${netaccessor} \ |
99 |
+ --enable-transcoder-${transcoder} \ |
100 |
+ $(use_enable cpu_flags_x86_sse2 sse2) |
101 |
+} |
102 |
+ |
103 |
+src_compile() { |
104 |
+ default |
105 |
+ |
106 |
+ if use doc ; then |
107 |
+ cd "${S}/doc" |
108 |
+ doxygen || die "making docs failed" |
109 |
+ fi |
110 |
+} |
111 |
+ |
112 |
+src_install () { |
113 |
+ default |
114 |
+ prune_libtool_files |
115 |
+ |
116 |
+ # To make sure an appropriate NLS msg file is around when using the iconv msgloader |
117 |
+ # ICU has the messages compiled in. |
118 |
+ if use iconv && ! use icu ; then |
119 |
+ doenvd "${FILESDIR}/50xerces-c" |
120 |
+ fi |
121 |
+ |
122 |
+ if use doc; then |
123 |
+ insinto /usr/share/doc/${PF} |
124 |
+ rm -rf samples/Makefile* samples/runConfigure samples/src/*/Makefile* samples/.libs |
125 |
+ doins -r samples |
126 |
+ dohtml -r doc/html/* |
127 |
+ fi |
128 |
+} |