summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2016-11-27 13:42:58 +0100
committerPacho Ramos <pacho@gentoo.org>2016-11-27 13:43:52 +0100
commitcd79dabf886263db093aa9a15ef98a2d6e954ee5 (patch)
treead70f9e9517bb7a554e1691beeeb232c3c7a212b /sci-libs/libqalculate
parentsci-biology/gmap: Drop old (#597984) (diff)
downloadgentoo-cd79dabf886263db093aa9a15ef98a2d6e954ee5.tar.gz
gentoo-cd79dabf886263db093aa9a15ef98a2d6e954ee5.tar.bz2
gentoo-cd79dabf886263db093aa9a15ef98a2d6e954ee5.zip
sci-libs/libqalculate: Fix compilation with -readline USE (#590490 by Ryoto Yayame)
Package-Manager: portage-2.3.2
Diffstat (limited to 'sci-libs/libqalculate')
-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