Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/libqalculate/, sci-libs/libqalculate/files/
Date: Sun, 27 Nov 2016 12:44:01
Message-Id: 1480250632.cd79dabf886263db093aa9a15ef98a2d6e954ee5.pacho@gentoo
1 commit: cd79dabf886263db093aa9a15ef98a2d6e954ee5
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 27 12:42:58 2016 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 27 12:43:52 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd79dabf
7
8 sci-libs/libqalculate: Fix compilation with -readline USE (#590490 by Ryoto Yayame)
9
10 Package-Manager: portage-2.3.2
11
12 .../libqalculate/files/libqalculate-0.9.9-readline.patch | 13 +++++++++++++
13 sci-libs/libqalculate/libqalculate-0.9.9.ebuild | 5 +++++
14 2 files changed, 18 insertions(+)
15
16 diff --git a/sci-libs/libqalculate/files/libqalculate-0.9.9-readline.patch b/sci-libs/libqalculate/files/libqalculate-0.9.9-readline.patch
17 new file mode 100644
18 index 00000000..ab2a5a0
19 --- /dev/null
20 +++ b/sci-libs/libqalculate/files/libqalculate-0.9.9-readline.patch
21 @@ -0,0 +1,13 @@
22 +diff -ru libqalculate-0.9.9.orig/src/qalc.cc libqalculate-0.9.9/src/qalc.cc
23 +--- libqalculate-0.9.9.orig/src/qalc.cc 2016-07-26 14:41:40.000000000 +0200
24 ++++ libqalculate-0.9.9/src/qalc.cc 2016-08-04 18:27:36.553906707 +0200
25 +@@ -3179,7 +3179,9 @@
26 + if(!file) {
27 + g_free(gstr_file);
28 + g_free(gstr_oldfile);
29 ++#ifdef HAVE_LIBREADLINE
30 + g_free(historyfile);
31 ++#endif
32 + first_time = true;
33 + set_saved_mode();
34 + return;
35
36 diff --git a/sci-libs/libqalculate/libqalculate-0.9.9.ebuild b/sci-libs/libqalculate/libqalculate-0.9.9.ebuild
37 index 513479b..6d6541c 100644
38 --- a/sci-libs/libqalculate/libqalculate-0.9.9.ebuild
39 +++ b/sci-libs/libqalculate/libqalculate-0.9.9.ebuild
40 @@ -27,6 +27,11 @@ RDEPEND="${COMMON_DEPEND}
41 net-misc/wget
42 gnuplot? ( >=sci-visualization/gnuplot-3.7 )"
43
44 +PATCHES=(
45 + # https://github.com/Qalculate/libqalculate/issues/6
46 + "${FILESDIR}"/${P}-readline.patch
47 +)
48 +
49 src_prepare() {
50 default