Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libvisio/files/, media-libs/libvisio/
Date: Sun, 11 Oct 2015 10:58:11
Message-Id: 1444519397.8fcd35dbc3da4a84384486f1012f165e2b68750b.dilfridge@gentoo
1 commit: 8fcd35dbc3da4a84384486f1012f165e2b68750b
2 Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
3 AuthorDate: Sat Oct 10 23:23:17 2015 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 10 23:23:17 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fcd35db
7
8 media-libs/libvisio: Revision bump fixes tests and build w/ boost-1.59
9
10 See also https://bugs.gentoo.org/show_bug.cgi?id=556922
11
12 Package-Manager: portage-2.2.20.1
13
14 .../libvisio/files/libvisio-0.1.3-boost-1.59.patch | 22 +++++++++
15 .../libvisio/files/libvisio-0.1.3-fix-tests.patch | 49 +++++++++++++++++++
16 media-libs/libvisio/libvisio-0.1.3-r1.ebuild | 57 ++++++++++++++++++++++
17 3 files changed, 128 insertions(+)
18
19 diff --git a/media-libs/libvisio/files/libvisio-0.1.3-boost-1.59.patch b/media-libs/libvisio/files/libvisio-0.1.3-boost-1.59.patch
20 new file mode 100644
21 index 0000000..a0102e8
22 --- /dev/null
23 +++ b/media-libs/libvisio/files/libvisio-0.1.3-boost-1.59.patch
24 @@ -0,0 +1,22 @@
25 +From: David Tardon <dtardon@××××××.com>
26 +Date: Sun, 30 Aug 2015 11:59:23 +0000 (+0200)
27 +Subject: fix build with boost 1.59
28 +X-Git-Url: https://gerrit.libreoffice.org/gitweb?p=libvisio.git;a=commitdiff_plain;h=2968c3dff8572b4734cb42c7bd5b00222f7fb288;hp=4b03893826bcc5f859b0ac3bea6a98269499d99f
29 +
30 +fix build with boost 1.59
31 +
32 +Change-Id: I21eebdfa99d379e57949bfe4bf7eb83aec16f916
33 +---
34 +
35 +diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
36 +index dc0f8fd..6946b0a 100644
37 +--- a/src/lib/Makefile.am
38 ++++ b/src/lib/Makefile.am
39 +@@ -22,6 +22,7 @@ generated_files = \
40 + $(top_builddir)/src/lib/tokens.h \
41 + $(top_builddir)/src/lib/tokenhash.h
42 +
43 ++libvisio_@VSD_MAJOR_VERSION@_@VSD_MINOR_VERSION@_la_CPPFLAGS = -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED
44 + libvisio_@VSD_MAJOR_VERSION@_@VSD_MINOR_VERSION@_la_LIBADD = $(LIBVISIO_LIBS) @LIBVISIO_WIN32_RESOURCE@
45 + libvisio_@VSD_MAJOR_VERSION@_@VSD_MINOR_VERSION@_la_DEPENDENCIES = @LIBVISIO_WIN32_RESOURCE@
46 + libvisio_@VSD_MAJOR_VERSION@_@VSD_MINOR_VERSION@_la_LDFLAGS = $(version_info) -export-dynamic -no-undefined
47
48 diff --git a/media-libs/libvisio/files/libvisio-0.1.3-fix-tests.patch b/media-libs/libvisio/files/libvisio-0.1.3-fix-tests.patch
49 new file mode 100644
50 index 0000000..19104a1
51 --- /dev/null
52 +++ b/media-libs/libvisio/files/libvisio-0.1.3-fix-tests.patch
53 @@ -0,0 +1,49 @@
54 +From 75a02c586f6ec49d4316f79004834250ef42b0e0 Mon Sep 17 00:00:00 2001
55 +From: David Tardon <dtardon@××××××.com>
56 +Date: Sat, 25 Jul 2015 15:11:19 +0200
57 +Subject: [PATCH] fix test
58 +
59 +The previous version only worked with libxml2 < 2.9.2, because of a bug
60 +in handling nested elements of the same name.
61 +
62 +Change-Id: I1368cedf5845895154806d4ecf427bfbed19165f
63 +---
64 + configure.ac | 4 ++++
65 + src/test/importtest.cpp | 6 +++---
66 + 2 files changed, 7 insertions(+), 3 deletions(-)
67 +
68 +diff --git a/configure.ac b/configure.ac
69 +index 1611dcb..a075e73 100644
70 +--- a/configure.ac
71 ++++ b/configure.ac
72 +@@ -128,6 +128,10 @@ AS_IF([test "x$enable_tools" = "xyes"], [
73 + PKG_CHECK_MODULES([REVENGE_STREAM],[
74 + librevenge-stream-0.0
75 + ])
76 ++ PKG_CHECK_EXISTS([libxml-2.0 >= 2.9.2],
77 ++ [],
78 ++ [AC_MSG_ERROR([libxml2 >= 2.9.2 is needed to run tests])]
79 ++ )
80 + ])
81 + AC_SUBST([REVENGE_GENERATORS_CFLAGS])
82 + AC_SUBST([REVENGE_GENERATORS_LIBS])
83 +diff --git a/src/test/importtest.cpp b/src/test/importtest.cpp
84 +index 8554309..0296380 100644
85 +--- a/src/test/importtest.cpp
86 ++++ b/src/test/importtest.cpp
87 +@@ -272,9 +272,9 @@ void ImportTest::testVsdxImportBgColorFromTheme()
88 + void ImportTest::testVsdxCharBgColor()
89 + {
90 + m_doc = parse("bgcolor.vsdx", m_buffer);
91 +- assertXPathNoAttribute(m_doc, "/document/page/layer/textObject/paragraph/span", "background-color");
92 +- assertXPath(m_doc, "/document/page/layer/layer[2]/textObject/paragraph/span", "background-color", "#9dbb61");
93 +- assertXPath(m_doc, "/document/page/layer/layer[2]/layer[2]/textObject/paragraph/span", "background-color", "#9dbb61");
94 ++ assertXPathNoAttribute(m_doc, "/document/page/layer[1]/textObject/paragraph/span", "background-color");
95 ++ assertXPath(m_doc, "/document/page/layer[2]/textObject/paragraph/span", "background-color", "#9dbb61");
96 ++ assertXPath(m_doc, "/document/page/layer[3]/textObject/paragraph/span", "background-color", "#9dbb61");
97 + }
98 +
99 + CPPUNIT_TEST_SUITE_REGISTRATION(ImportTest);
100 +--
101 +1.7.9.5
102 +
103
104 diff --git a/media-libs/libvisio/libvisio-0.1.3-r1.ebuild b/media-libs/libvisio/libvisio-0.1.3-r1.ebuild
105 new file mode 100644
106 index 0000000..0770f0f
107 --- /dev/null
108 +++ b/media-libs/libvisio/libvisio-0.1.3-r1.ebuild
109 @@ -0,0 +1,57 @@
110 +# Copyright 1999-2015 Gentoo Foundation
111 +# Distributed under the terms of the GNU General Public License v2
112 +# $Id$
113 +
114 +EAPI=5
115 +
116 +EGIT_REPO_URI="git://anongit.freedesktop.org/git/libreoffice/libvisio/"
117 +inherit base eutils
118 +[[ ${PV} == 9999 ]] && inherit autotools git-r3
119 +
120 +DESCRIPTION="Library parsing the visio documents"
121 +HOMEPAGE="https://wiki.documentfoundation.org/DLP/Libraries/libvisio"
122 +[[ ${PV} == 9999 ]] || SRC_URI="http://dev-www.libreoffice.org/src/${PN}/${P}.tar.xz"
123 +
124 +LICENSE="|| ( GPL-2+ LGPL-2.1 MPL-1.1 )"
125 +SLOT="0"
126 +[[ ${PV} == 9999 ]] || \
127 +KEYWORDS="~amd64 ~arm ~hppa ~ppc64 ~x86"
128 +IUSE="doc static-libs test tools"
129 +
130 +RDEPEND="
131 + dev-libs/icu:=
132 + dev-libs/librevenge
133 + dev-libs/libxml2
134 + sys-libs/zlib
135 +"
136 +DEPEND="${RDEPEND}
137 + >=dev-libs/boost-1.46
138 + dev-util/gperf
139 + sys-devel/libtool
140 + virtual/pkgconfig
141 + doc? ( app-doc/doxygen )
142 + test? ( dev-util/cppunit )
143 +"
144 +
145 +src_prepare() {
146 + epatch "${FILESDIR}/${P}-fix-tests.patch" \
147 + "${FILESDIR}/${P}-boost-1.59.patch"
148 + [[ -d m4 ]] || mkdir "m4"
149 + base_src_prepare
150 + [[ ${PV} == 9999 ]] && eautoreconf
151 +}
152 +
153 +src_configure() {
154 + econf \
155 + --docdir="${EPREFIX}/usr/share/doc/${PF}" \
156 + $(use_enable static-libs static) \
157 + --disable-werror \
158 + $(use_with doc docs) \
159 + $(use_enable test tests) \
160 + $(use_enable tools)
161 +}
162 +
163 +src_install() {
164 + default
165 + prune_libtool_files --all
166 +}