commit:     7879d7b792884b295c9bff2c4858521e78c20041
Author:     Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Sat Oct 22 09:26:58 2016 +0000
Commit:     Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sat Nov  5 21:00:48 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7879d7b7

app-text/libetonyek: Fix tests

Gentoo-bug: 595022

Package-Manager: portage-2.3.0

 .../files/libetonyek-0.1.6-drop-test.patch         | 36 ++++++++++++++++++++++
 .../files/libetonyek-0.1.6-mdds-1.2.patch          |  6 ++--
 app-text/libetonyek/libetonyek-0.1.6.ebuild        |  5 ++-
 3 files changed, 43 insertions(+), 4 deletions(-)

diff --git a/app-text/libetonyek/files/libetonyek-0.1.6-drop-test.patch 
b/app-text/libetonyek/files/libetonyek-0.1.6-drop-test.patch
new file mode 100644
index 00000000..a868f79
--- /dev/null
+++ b/app-text/libetonyek/files/libetonyek-0.1.6-drop-test.patch
@@ -0,0 +1,36 @@
+From 1a20d8ece2ea3e8aa1d319cd88e8a6aa637982f2 Mon Sep 17 00:00:00 2001
+From: David Tardon <[email protected]>
+Date: Fri, 30 Sep 2016 09:57:15 +0200
+Subject: [PATCH] drop test that violates Unicode tr#35
+
+(and therefore fails with latest liblangtag)
+
+Change-Id: I0e06c6c4e8bcf999cf5559d6287e77ae97e555d8
+---
+ src/test/IWORKLanguageManagerTest.cpp |   10 ----------
+ 1 file changed, 10 deletions(-)
+
+diff --git a/src/test/IWORKLanguageManagerTest.cpp 
b/src/test/IWORKLanguageManagerTest.cpp
+index 8fca0a6..e663bd2 100644
+--- a/src/test/IWORKLanguageManagerTest.cpp
++++ b/src/test/IWORKLanguageManagerTest.cpp
+@@ -104,16 +104,6 @@ void IWORKLanguageManagerTest::testTagToProps()
+   }
+ 
+   {
+-    const string tag(mgr.addTag("ccc"));
+-    CPPUNIT_ASSERT(!tag.empty());
+-    RVNGPropertyList props;
+-    mgr.writeProperties(tag, props);
+-    assertProperty("unknown lang", props, "fo:language", "ccc");
+-    CPPUNIT_ASSERT(!props["fo:country"]);
+-    CPPUNIT_ASSERT(!props["fo:script"]);
+-  }
+-
+-  {
+     // invalid tag
+     const string tag(mgr.addTag("13c"));
+     CPPUNIT_ASSERT(tag.empty());
+-- 
+1.7.9.5
+

diff --git a/app-text/libetonyek/files/libetonyek-0.1.6-mdds-1.2.patch 
b/app-text/libetonyek/files/libetonyek-0.1.6-mdds-1.2.patch
index 0ca085f..7a3f22e 100644
--- a/app-text/libetonyek/files/libetonyek-0.1.6-mdds-1.2.patch
+++ b/app-text/libetonyek/files/libetonyek-0.1.6-mdds-1.2.patch
@@ -16,7 +16,7 @@
  AM_MISSING_PROG([GPERF], [gperf])
  
 -AS_IF([test "$with_mdds" = "1.0"], [AX_CXX_COMPILE_STDCXX_11([noext])])
-+AS_IF([test "$with_mdds" = "1.2"], [AX_CXX_COMPILE_STDCXX_11([noext])])
++AS_IF([test "$with_mdds" != "0.x"], [AX_CXX_COMPILE_STDCXX_11([noext])])
  
  # ===============
  # Find librevenge
@@ -26,8 +26,8 @@
  # =========
 -AS_IF([test "$with_mdds" = "1.0"], [
 -    PKG_CHECK_MODULES([MDDS], [mdds-1.0])
-+AS_IF([test "$with_mdds" = "1.2"], [
-+    PKG_CHECK_MODULES([MDDS], [mdds-1.2])
++AS_IF([test "$with_mdds" != "0.x"], [
++    PKG_CHECK_MODULES([MDDS], [mdds-][$with_mdds])
  ], [
      PKG_CHECK_MODULES([MDDS], [mdds])
      AC_MSG_CHECKING([checking if mdds::flat_segment_tree can store values of 
any type])

diff --git a/app-text/libetonyek/libetonyek-0.1.6.ebuild 
b/app-text/libetonyek/libetonyek-0.1.6.ebuild
index b4a4e5b..5990e49 100644
--- a/app-text/libetonyek/libetonyek-0.1.6.ebuild
+++ b/app-text/libetonyek/libetonyek-0.1.6.ebuild
@@ -34,7 +34,10 @@ DEPEND="${RDEPEND}
        test? ( dev-util/cppunit )
 "
 
-PATCHES=( "${FILESDIR}/${P}-mdds-1.2.patch" ) # patch taken from Debian
+PATCHES=(
+       "${FILESDIR}/${P}-mdds-1.2.patch" # patch taken from Debian
+       "${FILESDIR}/${P}-drop-test.patch" # bug 595022
+)
 
 pkg_pretend() {
        if [[ $(gcc-major-version) -lt 4 ]] || {

Reply via email to