summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2016-12-29 02:35:05 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2016-12-29 02:42:04 +0100
commita06c43e79621adb834e423ac7ae95ed4095a4562 (patch)
tree03203d205a62f48ffe2ca10a735cb649f60481d4
parentdev-python/sympy: fix a wrong test (diff)
downloadgentoo-a06c43e79621adb834e423ac7ae95ed4095a4562.tar.gz
gentoo-a06c43e79621adb834e423ac7ae95ed4095a4562.tar.bz2
gentoo-a06c43e79621adb834e423ac7ae95ed4095a4562.zip
app-text/libebook: Fix tests
Gentoo-bug: 603098 Thanks to eroen <eroen@occam.eroen.eu> for the patch and taking it upstream. Package-Manager: portage-2.3.0
-rw-r--r--app-text/libebook/files/libebook-0.1.2-tests.patch27
-rw-r--r--app-text/libebook/libebook-0.1.2-r1.ebuild5
2 files changed, 31 insertions, 1 deletions
diff --git a/app-text/libebook/files/libebook-0.1.2-tests.patch b/app-text/libebook/files/libebook-0.1.2-tests.patch
new file mode 100644
index 000000000000..624051a757aa
--- /dev/null
+++ b/app-text/libebook/files/libebook-0.1.2-tests.patch
@@ -0,0 +1,27 @@
+From 263d95ce191421a51d4b2d088297700032a8987b Mon Sep 17 00:00:00 2001
+From: eroen <eroen@occam.eroen.eu>
+Date: Mon, 19 Dec 2016 19:53:15 +0100
+Subject: [PATCH] Check for librevenge-stream if tests are enabled
+
+X-Gentoo-Bug: 603098
+X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=603098
+---
+ configure.ac | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/configure.ac b/configure.ac
+index 6e00ed5..ecbd14b 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -357,6 +357,8 @@ AS_IF([test "x$with_tools" = "xyes"],[
+ PKG_CHECK_MODULES([REVENGE_GENERATORS],[
+ librevenge-generators-0.0
+ ])
++])
++AS_IF([test "x$with_tools" = "xyes" || test "x$enable_tests" = "xyes"],[
+ PKG_CHECK_MODULES([REVENGE_STREAM],[
+ librevenge-stream-0.0
+ ])
+--
+2.11.0
+
diff --git a/app-text/libebook/libebook-0.1.2-r1.ebuild b/app-text/libebook/libebook-0.1.2-r1.ebuild
index 53db1d633613..deaff8a86be0 100644
--- a/app-text/libebook/libebook-0.1.2-r1.ebuild
+++ b/app-text/libebook/libebook-0.1.2-r1.ebuild
@@ -35,7 +35,10 @@ RDEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_P}"
-PATCHES=( "${FILESDIR}/${P}-boost-1.59-makefile.patch" )
+PATCHES=(
+ "${FILESDIR}/${P}-boost-1.59-makefile.patch"
+ "${FILESDIR}/${P}-tests.patch"
+)
src_prepare() {
default