summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/libqalculate/files/libqalculate-0.9.9-readline.patch13
-rw-r--r--sci-libs/libqalculate/libqalculate-0.9.9.ebuild5
2 files changed, 18 insertions, 0 deletions
diff --git a/sci-libs/libqalculate/files/libqalculate-0.9.9-readline.patch b/sci-libs/libqalculate/files/libqalculate-0.9.9-readline.patch
new file mode 100644
index 000000000000..ab2a5a0eb3ff
--- /dev/null
+++ b/sci-libs/libqalculate/files/libqalculate-0.9.9-readline.patch
@@ -0,0 +1,13 @@
+diff -ru libqalculate-0.9.9.orig/src/qalc.cc libqalculate-0.9.9/src/qalc.cc
+--- libqalculate-0.9.9.orig/src/qalc.cc 2016-07-26 14:41:40.000000000 +0200
++++ libqalculate-0.9.9/src/qalc.cc 2016-08-04 18:27:36.553906707 +0200
+@@ -3179,7 +3179,9 @@
+ if(!file) {
+ g_free(gstr_file);
+ g_free(gstr_oldfile);
++#ifdef HAVE_LIBREADLINE
+ g_free(historyfile);
++#endif
+ first_time = true;
+ set_saved_mode();
+ return;
diff --git a/sci-libs/libqalculate/libqalculate-0.9.9.ebuild b/sci-libs/libqalculate/libqalculate-0.9.9.ebuild
index 513479bf33da..6d6541cd4b7e 100644
--- a/sci-libs/libqalculate/libqalculate-0.9.9.ebuild
+++ b/sci-libs/libqalculate/libqalculate-0.9.9.ebuild
@@ -27,6 +27,11 @@ RDEPEND="${COMMON_DEPEND}
net-misc/wget
gnuplot? ( >=sci-visualization/gnuplot-3.7 )"
+PATCHES=(
+ # https://github.com/Qalculate/libqalculate/issues/6
+ "${FILESDIR}"/${P}-readline.patch
+)
+
src_prepare() {
default