public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michael Weber" <xmw@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/zathura/files/, app-text/zathura/
Date: Tue, 24 Jan 2017 15:54:28 +0000 (UTC)	[thread overview]
Message-ID: <1485273260.84d9bec0db2d23c6c38489997dcd576d1be7ee9a.xmw@gentoo> (raw)

commit:     84d9bec0db2d23c6c38489997dcd576d1be7ee9a
Author:     Michael Weber <xmw <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 24 15:53:52 2017 +0000
Commit:     Michael Weber <xmw <AT> gentoo <DOT> org>
CommitDate: Tue Jan 24 15:54:20 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84d9bec0

app-text/zathura: Fix test for USE=-sqlite (bug 606870).

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 app-text/zathura/files/zathura-0.3.7-tests.patch | 24 ++++++++++++++++++++++++
 app-text/zathura/zathura-0.3.7.ebuild            |  6 ++++++
 2 files changed, 30 insertions(+)

diff --git a/app-text/zathura/files/zathura-0.3.7-tests.patch b/app-text/zathura/files/zathura-0.3.7-tests.patch
new file mode 100644
index 00000000..7732144
--- /dev/null
+++ b/app-text/zathura/files/zathura-0.3.7-tests.patch
@@ -0,0 +1,24 @@
+--- zathura-0.3.7/tests/Makefile
++++ zathura-0.3.7/tests/Makefile
+@@ -7,7 +7,11 @@
+ include config.mk
+ 
+ PROJECT = tests
+-SOURCE  = tests.c $(wildcard test_*.c)
++ifneq (${WITH_SQLITE},0)
++	SOURCE  = tests.c $(wildcard test_*.c)
++else
++	SOURCE  = $(filter-out database-sqlite.c,tests.c $(wildcard test_*.c))
++endif
+ OBJECTS       = $(addprefix ${BUILDDIR_RELEASE}/,${SOURCE:.c=.o})
+ OBJECTS_DEBUG = $(addprefix ${BUILDDIR_DEBUG}/,${SOURCE:.c=.o})
+ OBJECTS_GCOV  = $(addprefix ${BUILDDIR_GCOV}/,${SOURCE:.c=.o})
+@@ -23,8 +27,6 @@
+ INCS     += $(SQLITE_INC)
+ LIBS     += $(SQLITE_LIB)
+ CPPFLAGS += -DWITH_SQLITE
+-else
+-SOURCE = $(filter-out database-sqlite.c,$(OSOURCE))
+ endif
+ 
+ ifneq ($(WITH_MAGIC),0)

diff --git a/app-text/zathura/zathura-0.3.7.ebuild b/app-text/zathura/zathura-0.3.7.ebuild
index d6a5333..543b3b0 100644
--- a/app-text/zathura/zathura-0.3.7.ebuild
+++ b/app-text/zathura/zathura-0.3.7.ebuild
@@ -36,6 +36,12 @@ DEPEND="${RDEPEND}
 	virtual/pkgconfig
 	test? ( dev-libs/check )"
 
+src_prepare() {
+	epatch "${FILESDIR}"/${P}-tests.patch
+
+	epatch_user
+}
+
 pkg_setup() {
 	myzathuraconf=(
 		WITH_MAGIC=$(usex magic 1 0)


             reply	other threads:[~2017-01-24 15:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-24 15:54 Michael Weber [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-01-21  4:02 [gentoo-commits] repo/gentoo:master commit in: app-text/zathura/files/, app-text/zathura/ Sam James
2024-01-21  4:02 Sam James
2024-01-21  4:02 Sam James
2022-12-30 18:26 Piotr Karbowski
2019-04-28 18:15 Mikle Kolyada
2018-10-08 18:17 Mikle Kolyada
2016-01-28 16:05 Michael Weber
2016-01-12 17:38 Michael Weber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1485273260.84d9bec0db2d23c6c38489997dcd576d1be7ee9a.xmw@gentoo \
    --to=xmw@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox