1 |
commit: 0bab672fecdf82cac74c10bd0bda2da93c4c1c7e |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 28 17:40:24 2016 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 28 17:40:24 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/ppc64le.git/commit/?id=0bab672f |
7 |
|
8 |
app-text/opensp: copy from tree |
9 |
|
10 |
app-text/opensp/Manifest | 1 + |
11 |
app-text/opensp/files/opensp-1.5-gcc34.patch | 10 +++ |
12 |
.../opensp/files/opensp-1.5.2-fix-segfault.patch | 23 +++++++ |
13 |
app-text/opensp/metadata.xml | 12 ++++ |
14 |
app-text/opensp/opensp-1.5.2-r3.ebuild | 76 ++++++++++++++++++++++ |
15 |
app-text/opensp/opensp-1.5.2-r4.ebuild | 76 ++++++++++++++++++++++ |
16 |
6 files changed, 198 insertions(+) |
17 |
|
18 |
diff --git a/app-text/opensp/Manifest b/app-text/opensp/Manifest |
19 |
new file mode 100644 |
20 |
index 0000000..1894e20 |
21 |
--- /dev/null |
22 |
+++ b/app-text/opensp/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST OpenSP-1.5.2.tar.gz 1521390 SHA256 57f4898498a368918b0d49c826aa434bb5b703d2c3b169beb348016ab25617ce SHA512 a7dcc246ba7f58969ecd6d107c7b82dede811e65f375b7aa3e683621f2c6ff3e7dccefdd79098fcadad6cca8bb94c2933c63f4701be2c002f9a56f1bbe6b047e WHIRLPOOL 9565425b87d0f68025a2058e8941c5c64519cdb1ab3f22aeec6968473989f39b805dbfa8ca8c74f3968358fac2144756cf50aeab8e6c9ce8112610bd445d5ce2 |
25 |
|
26 |
diff --git a/app-text/opensp/files/opensp-1.5-gcc34.patch b/app-text/opensp/files/opensp-1.5-gcc34.patch |
27 |
new file mode 100644 |
28 |
index 0000000..60ee560 |
29 |
--- /dev/null |
30 |
+++ b/app-text/opensp/files/opensp-1.5-gcc34.patch |
31 |
@@ -0,0 +1,10 @@ |
32 |
+--- include/RangeMap.h~ 2004-04-22 20:34:13.729541096 +0300 |
33 |
++++ include/RangeMap.h 2004-04-22 20:31:48.473049702 +0300 |
34 |
+@@ -8,6 +8,7 @@ |
35 |
+ #include "Boolean.h" |
36 |
+ #include "ISet.h" |
37 |
+ #include "types.h" |
38 |
++#include "constant.h" |
39 |
+ #include <stddef.h> |
40 |
+ |
41 |
+ #ifdef SP_NAMESPACE |
42 |
|
43 |
diff --git a/app-text/opensp/files/opensp-1.5.2-fix-segfault.patch b/app-text/opensp/files/opensp-1.5.2-fix-segfault.patch |
44 |
new file mode 100644 |
45 |
index 0000000..5a9d328 |
46 |
--- /dev/null |
47 |
+++ b/app-text/opensp/files/opensp-1.5.2-fix-segfault.patch |
48 |
@@ -0,0 +1,23 @@ |
49 |
+Resolve segfault in OpenSP::ParsedSystemId::unparse. |
50 |
+Patch taken from Debian. |
51 |
+https://bugs.gentoo.org/show_bug.cgi?id=196230 |
52 |
+--- a/lib/ExtendEntityManager.cxx |
53 |
++++ b/lib/ExtendEntityManager.cxx |
54 |
+@@ -1238,7 +1238,8 @@ |
55 |
+ } |
56 |
+ |
57 |
+ StorageObjectSpec::StorageObjectSpec(const StorageObjectSpec& x) |
58 |
+-: codingSystemName(x.codingSystemName), |
59 |
++: storageManager(x.storageManager), |
60 |
++ codingSystemName(x.codingSystemName), |
61 |
+ codingSystem(x.codingSystem), |
62 |
+ specId(x.specId), |
63 |
+ baseId(x.baseId), |
64 |
+@@ -1253,6 +1254,7 @@ |
65 |
+ StorageObjectSpec& StorageObjectSpec::operator=(const StorageObjectSpec& x) |
66 |
+ { |
67 |
+ if (this != &x) { |
68 |
++ storageManager = x.storageManager; |
69 |
+ codingSystemName = x.codingSystemName; |
70 |
+ codingSystem = x.codingSystem; |
71 |
+ specId = x.specId; |
72 |
|
73 |
diff --git a/app-text/opensp/metadata.xml b/app-text/opensp/metadata.xml |
74 |
new file mode 100644 |
75 |
index 0000000..84b1dda |
76 |
--- /dev/null |
77 |
+++ b/app-text/opensp/metadata.xml |
78 |
@@ -0,0 +1,12 @@ |
79 |
+<?xml version="1.0" encoding="UTF-8"?> |
80 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
81 |
+<pkgmetadata> |
82 |
+ <maintainer type="person"> |
83 |
+ <email>heroxbd@g.o</email> |
84 |
+ <name>Benda Xu</name> |
85 |
+ </maintainer> |
86 |
+ <longdescription>An SGML System Conforming to International Standard ISO 8879.</longdescription> |
87 |
+ <upstream> |
88 |
+ <remote-id type="sourceforge">openjade</remote-id> |
89 |
+ </upstream> |
90 |
+</pkgmetadata> |
91 |
|
92 |
diff --git a/app-text/opensp/opensp-1.5.2-r3.ebuild b/app-text/opensp/opensp-1.5.2-r3.ebuild |
93 |
new file mode 100644 |
94 |
index 0000000..9f97607 |
95 |
--- /dev/null |
96 |
+++ b/app-text/opensp/opensp-1.5.2-r3.ebuild |
97 |
@@ -0,0 +1,76 @@ |
98 |
+# Copyright 1999-2014 Gentoo Foundation |
99 |
+# Distributed under the terms of the GNU General Public License v2 |
100 |
+# $Id$ |
101 |
+ |
102 |
+EAPI=5 |
103 |
+inherit eutils flag-o-matic |
104 |
+ |
105 |
+MY_P=${P/opensp/OpenSP} |
106 |
+ |
107 |
+DESCRIPTION="A free, object-oriented toolkit for SGML parsing and entity management" |
108 |
+HOMEPAGE="http://openjade.sourceforge.net/" |
109 |
+SRC_URI="mirror://sourceforge/openjade/${MY_P}.tar.gz" |
110 |
+ |
111 |
+LICENSE="MIT" |
112 |
+SLOT="0" |
113 |
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
114 |
+IUSE="doc nls static-libs test" |
115 |
+ |
116 |
+DEPEND="nls? ( sys-devel/gettext ) |
117 |
+ doc? ( |
118 |
+ app-text/xmlto |
119 |
+ app-text/docbook-xml-dtd:4.1.2 |
120 |
+ ) |
121 |
+ test? ( |
122 |
+ app-text/docbook-xml-dtd:4.5 |
123 |
+ app-text/openjade |
124 |
+ app-text/sgml-common |
125 |
+ )" |
126 |
+RDEPEND="" |
127 |
+ |
128 |
+S=${WORKDIR}/${MY_P} |
129 |
+ |
130 |
+src_prepare() { |
131 |
+ epatch \ |
132 |
+ "${FILESDIR}"/${PN}-1.5-gcc34.patch \ |
133 |
+ "${FILESDIR}"/${P}-fix-segfault.patch |
134 |
+} |
135 |
+ |
136 |
+src_configure() { |
137 |
+ # The following filters are taken from openjade's ebuild. See bug #100828. |
138 |
+ # Please note! Opts are disabled. If you know what you're doing |
139 |
+ # feel free to remove this line. It may cause problems with |
140 |
+ # docbook-sgml-utils among other things. |
141 |
+ #ALLOWED_FLAGS="-O -O1 -O2 -pipe -g -march" |
142 |
+ strip-flags |
143 |
+ |
144 |
+ econf \ |
145 |
+ --enable-http \ |
146 |
+ --enable-default-catalog="${EPREFIX}"/etc/sgml/catalog \ |
147 |
+ --enable-default-search-path="${EPREFIX}"/usr/share/sgml \ |
148 |
+ --datadir="${EPREFIX}"/usr/share/sgml/${P} \ |
149 |
+ $(use_enable nls) \ |
150 |
+ $(use_enable doc doc-build) \ |
151 |
+ $(use_enable static-libs static) |
152 |
+} |
153 |
+ |
154 |
+src_compile() { |
155 |
+ emake pkgdocdir="${EPREFIX}"/usr/share/doc/${PF} |
156 |
+} |
157 |
+ |
158 |
+src_test() { |
159 |
+ # Skipping tests known not to work |
160 |
+ emake SHOWSTOPPERS= check |
161 |
+ SANDBOX_PREDICT="${SANDBOX_PREDICT%:/}" |
162 |
+} |
163 |
+ |
164 |
+src_install() { |
165 |
+ emake \ |
166 |
+ DESTDIR="${D}" \ |
167 |
+ pkgdocdir="${EPREFIX}"/usr/share/doc/${PF} \ |
168 |
+ install |
169 |
+ |
170 |
+ prune_libtool_files |
171 |
+ |
172 |
+ dodoc AUTHORS BUGS ChangeLog NEWS README |
173 |
+} |
174 |
|
175 |
diff --git a/app-text/opensp/opensp-1.5.2-r4.ebuild b/app-text/opensp/opensp-1.5.2-r4.ebuild |
176 |
new file mode 100644 |
177 |
index 0000000..2abcab3 |
178 |
--- /dev/null |
179 |
+++ b/app-text/opensp/opensp-1.5.2-r4.ebuild |
180 |
@@ -0,0 +1,76 @@ |
181 |
+# Copyright 1999-2015 Gentoo Foundation |
182 |
+# Distributed under the terms of the GNU General Public License v2 |
183 |
+# $Id$ |
184 |
+ |
185 |
+EAPI=5 |
186 |
+WANT_AUTOMAKE='1.13' |
187 |
+inherit eutils flag-o-matic autotools |
188 |
+ |
189 |
+MY_P=${P/opensp/OpenSP} |
190 |
+ |
191 |
+DESCRIPTION="A free, object-oriented toolkit for SGML parsing and entity management" |
192 |
+HOMEPAGE="http://openjade.sourceforge.net/" |
193 |
+SRC_URI="mirror://sourceforge/openjade/${MY_P}.tar.gz" |
194 |
+ |
195 |
+LICENSE="MIT" |
196 |
+SLOT="0" |
197 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
198 |
+IUSE="doc nls static-libs test" |
199 |
+ |
200 |
+DEPEND="nls? ( sys-devel/gettext ) |
201 |
+ doc? ( |
202 |
+ app-text/xmlto |
203 |
+ app-text/docbook-xml-dtd:4.1.2 |
204 |
+ ) |
205 |
+ test? ( |
206 |
+ app-text/docbook-xml-dtd:4.5 |
207 |
+ app-text/openjade |
208 |
+ app-text/sgml-common |
209 |
+ )" |
210 |
+RDEPEND="" |
211 |
+ |
212 |
+S=${WORKDIR}/${MY_P} |
213 |
+ |
214 |
+src_prepare() { |
215 |
+ epatch "${FILESDIR}"/${P}-fix-segfault.patch |
216 |
+ use prefix && eautoreconf |
217 |
+} |
218 |
+ |
219 |
+src_configure() { |
220 |
+ # The following filters are taken from openjade's ebuild. See bug #100828. |
221 |
+ # Please note! Opts are disabled. If you know what you're doing |
222 |
+ # feel free to remove this line. It may cause problems with |
223 |
+ # docbook-sgml-utils among other things. |
224 |
+ #ALLOWED_FLAGS="-O -O1 -O2 -pipe -g -march" |
225 |
+ strip-flags |
226 |
+ |
227 |
+ econf \ |
228 |
+ --enable-http \ |
229 |
+ --enable-default-catalog="${EPREFIX}"/etc/sgml/catalog \ |
230 |
+ --enable-default-search-path="${EPREFIX}"/usr/share/sgml \ |
231 |
+ --datadir="${EPREFIX}"/usr/share/sgml/${P} \ |
232 |
+ $(use_enable nls) \ |
233 |
+ $(use_enable doc doc-build) \ |
234 |
+ $(use_enable static-libs static) |
235 |
+} |
236 |
+ |
237 |
+src_compile() { |
238 |
+ emake pkgdocdir="${EPREFIX}"/usr/share/doc/${PF} |
239 |
+} |
240 |
+ |
241 |
+src_test() { |
242 |
+ # Skipping tests known not to work |
243 |
+ emake SHOWSTOPPERS= check |
244 |
+ SANDBOX_PREDICT="${SANDBOX_PREDICT%:/}" |
245 |
+} |
246 |
+ |
247 |
+src_install() { |
248 |
+ emake \ |
249 |
+ DESTDIR="${D}" \ |
250 |
+ pkgdocdir="${EPREFIX}"/usr/share/doc/${PF} \ |
251 |
+ install |
252 |
+ |
253 |
+ prune_libtool_files |
254 |
+ |
255 |
+ dodoc AUTHORS BUGS ChangeLog NEWS README |
256 |
+} |