[gentoo-commits] repo/proj/ppc64le:master commit in: app-text/opensp/files/, app-text/opensp/

2016-06-28 Thread Anthony G. Basile
commit: 0bab672fecdf82cac74c10bd0bda2da93c4c1c7e
Author: Anthony G. Basile  gentoo  org>
AuthorDate: Tue Jun 28 17:40:24 2016 +
Commit: Anthony G. Basile  gentoo  org>
CommitDate: Tue Jun 28 17:40:24 2016 +
URL:https://gitweb.gentoo.org/repo/proj/ppc64le.git/commit/?id=0bab672f

app-text/opensp: copy from tree

 app-text/opensp/Manifest   |  1 +
 app-text/opensp/files/opensp-1.5-gcc34.patch   | 10 +++
 .../opensp/files/opensp-1.5.2-fix-segfault.patch   | 23 +++
 app-text/opensp/metadata.xml   | 12 
 app-text/opensp/opensp-1.5.2-r3.ebuild | 76 ++
 app-text/opensp/opensp-1.5.2-r4.ebuild | 76 ++
 6 files changed, 198 insertions(+)

diff --git a/app-text/opensp/Manifest b/app-text/opensp/Manifest
new file mode 100644
index 000..1894e20
--- /dev/null
+++ b/app-text/opensp/Manifest
@@ -0,0 +1 @@
+DIST OpenSP-1.5.2.tar.gz 1521390 SHA256 
57f4898498a368918b0d49c826aa434bb5b703d2c3b169beb348016ab25617ce SHA512 
a7dcc246ba7f58969ecd6d107c7b82dede811e65f375b7aa3e683621f2c6ff3e7dccefdd79098fcadad6cca8bb94c2933c63f4701be2c002f9a56f1bbe6b047e
 WHIRLPOOL 
9565425b87d0f68025a2058e8941c5c64519cdb1ab3f22aeec6968473989f39b805dbfa8ca8c74f3968358fac2144756cf50aeab8e6c9ce8112610bd445d5ce2

diff --git a/app-text/opensp/files/opensp-1.5-gcc34.patch 
b/app-text/opensp/files/opensp-1.5-gcc34.patch
new file mode 100644
index 000..60ee560
--- /dev/null
+++ b/app-text/opensp/files/opensp-1.5-gcc34.patch
@@ -0,0 +1,10 @@
+--- include/RangeMap.h~2004-04-22 20:34:13.729541096 +0300
 include/RangeMap.h 2004-04-22 20:31:48.473049702 +0300
+@@ -8,6 +8,7 @@
+ #include "Boolean.h"
+ #include "ISet.h"
+ #include "types.h"
++#include "constant.h"
+ #include 
+ 
+ #ifdef SP_NAMESPACE

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
new file mode 100644
index 000..5a9d328
--- /dev/null
+++ b/app-text/opensp/files/opensp-1.5.2-fix-segfault.patch
@@ -0,0 +1,23 @@
+Resolve segfault in OpenSP::ParsedSystemId::unparse.
+Patch taken from Debian.
+https://bugs.gentoo.org/show_bug.cgi?id=196230
+--- a/lib/ExtendEntityManager.cxx
 b/lib/ExtendEntityManager.cxx
+@@ -1238,7 +1238,8 @@
+ }
+ 
+ StorageObjectSpec::StorageObjectSpec(const StorageObjectSpec& x)
+-: codingSystemName(x.codingSystemName),
++: storageManager(x.storageManager),
++  codingSystemName(x.codingSystemName),
+   codingSystem(x.codingSystem),
+   specId(x.specId),
+   baseId(x.baseId),
+@@ -1253,6 +1254,7 @@
+ StorageObjectSpec& StorageObjectSpec::operator=(const StorageObjectSpec& x)
+ {
+   if (this != ) {
++storageManager = x.storageManager;
+ codingSystemName = x.codingSystemName;
+ codingSystem = x.codingSystem;
+ specId = x.specId;

diff --git a/app-text/opensp/metadata.xml b/app-text/opensp/metadata.xml
new file mode 100644
index 000..84b1dda
--- /dev/null
+++ b/app-text/opensp/metadata.xml
@@ -0,0 +1,12 @@
+
+http://www.gentoo.org/dtd/metadata.dtd;>
+
+   
+   hero...@gentoo.org
+   Benda Xu
+   
+   An SGML System Conforming to International Standard 
ISO 8879.
+   
+   openjade
+   
+

diff --git a/app-text/opensp/opensp-1.5.2-r3.ebuild 
b/app-text/opensp/opensp-1.5.2-r3.ebuild
new file mode 100644
index 000..9f97607
--- /dev/null
+++ b/app-text/opensp/opensp-1.5.2-r3.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils flag-o-matic
+
+MY_P=${P/opensp/OpenSP}
+
+DESCRIPTION="A free, object-oriented toolkit for SGML parsing and entity 
management"
+HOMEPAGE="http://openjade.sourceforge.net/;
+SRC_URI="mirror://sourceforge/openjade/${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+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"
+IUSE="doc nls static-libs test"
+
+DEPEND="nls? ( sys-devel/gettext )
+   doc? (
+   app-text/xmlto
+   app-text/docbook-xml-dtd:4.1.2
+   )
+   test? (
+   app-text/docbook-xml-dtd:4.5
+   app-text/openjade
+   app-text/sgml-common
+   )"
+RDEPEND=""
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+   epatch \
+   "${FILESDIR}"/${PN}-1.5-gcc34.patch \
+   "${FILESDIR}"/${P}-fix-segfault.patch
+}
+
+src_configure() {
+   # The following filters are taken from openjade's ebuild. See bug 
#100828.
+   # Please note!  Opts are disabled.  If you know what you're doing
+   # feel free to remove this line.  It may cause problems with
+   # docbook-sgml-utils among other things.
+   #ALLOWED_FLAGS="-O -O1 -O2 -pipe -g -march"
+   strip-flags
+
+  

[gentoo-commits] repo/proj/ppc64le:master commit in: app-text/opensp/

2016-06-28 Thread Anthony G. Basile
commit: 2cb8285b100d8391ef08f69063e4ec3f1f60b6dd
Author: Leno Hou  gmail  com>
AuthorDate: Tue Jun 28 14:31:26 2016 +
Commit: Anthony G. Basile  gentoo  org>
CommitDate: Tue Jun 28 17:40:32 2016 +
URL:https://gitweb.gentoo.org/repo/proj/ppc64le.git/commit/?id=2cb8285b

app-text/opensp: autoreconf to build opensp for ppc64le #580792

This is needed to support newer platforms (like ppc64le).
Signed-off-by: Leno Hou  gmail.com>
Signed-off-by: Anthony G. Basile  gentoo.org>

 app-text/opensp/opensp-1.5.2-r3.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/app-text/opensp/opensp-1.5.2-r3.ebuild 
b/app-text/opensp/opensp-1.5.2-r3.ebuild
index 9f97607..d60c8f6 100644
--- a/app-text/opensp/opensp-1.5.2-r3.ebuild
+++ b/app-text/opensp/opensp-1.5.2-r3.ebuild
@@ -3,7 +3,7 @@
 # $Id$
 
 EAPI=5
-inherit eutils flag-o-matic
+inherit eutils flag-o-matic autotools
 
 MY_P=${P/opensp/OpenSP}
 
@@ -34,6 +34,7 @@ src_prepare() {
epatch \
"${FILESDIR}"/${PN}-1.5-gcc34.patch \
"${FILESDIR}"/${P}-fix-segfault.patch
+   eautoreconf #580792
 }
 
 src_configure() {