Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/calibre/
Date: Fri, 29 Oct 2021 05:57:56
Message-Id: 1635487067.5df9f0d616ca5a7cc98e8813b3bcb8276ae25fd5.zmedico@gentoo
1 commit: 5df9f0d616ca5a7cc98e8813b3bcb8276ae25fd5
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 29 05:55:25 2021 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 29 05:57:47 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5df9f0d6
7
8 app-text/calibre: Respect CFLAGS and LDFLAGS
9
10 Closes: https://bugs.gentoo.org/814308
11 Closes: https://bugs.gentoo.org/814311
12 Package-Manager: Portage-3.0.28, Repoman-3.0.3
13 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
14
15 app-text/calibre/calibre-5.30.0.ebuild | 7 +++----
16 1 file changed, 3 insertions(+), 4 deletions(-)
17
18 diff --git a/app-text/calibre/calibre-5.30.0.ebuild b/app-text/calibre/calibre-5.30.0.ebuild
19 index 40fa50fcc40..b01b4920f27 100644
20 --- a/app-text/calibre/calibre-5.30.0.ebuild
21 +++ b/app-text/calibre/calibre-5.30.0.ebuild
22 @@ -149,13 +149,12 @@ src_prepare() {
23 # Disable unnecessary privilege dropping for bug #287067.
24 sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \
25 -i setup/install.py || die "sed failed to patch install.py"
26 -
27 - sed -e "/^ self.check_call(\\[QMAKE\\] + qmc + \\[proname\\])$/a\
28 -\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \
29 + sed -e "/^ os.chdir(os.path.join(src_dir, 'build'))$/a\
30 +\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \
31 '-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \
32 '-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \
33 '-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \
34 -'-i', 'Makefile'])" \
35 +'-i', os.path.join(os.path.basename(src_dir), 'Makefile')])" \
36 -e "s|open(self.j(bdir, '.qmake.conf'), 'wb').close()|open(self.j(bdir, '.qmake.conf'), 'wb').write(b'QMAKE_LFLAGS += ${LDFLAGS}')|" \
37 -i setup/build.py || die "sed failed to patch build.py"
38 }