commit:     0ff7c193d080f1bb6c633e2fbc6ee417e4ade2c4
Author:     Christopher Fore <csfore <AT> posteo <DOT> net>
AuthorDate: Wed Oct 16 12:52:07 2024 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Thu Oct 17 07:44:19 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ff7c193

sci-calculators/qalculate-gtk: Add optfeature for sci-libs/libqalculate[gnuplot]

Closes: https://bugs.gentoo.org/939748
Signed-off-by: Christopher Fore <csfore <AT> posteo.net>
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 sci-calculators/qalculate-gtk/qalculate-gtk-5.3.0.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/sci-calculators/qalculate-gtk/qalculate-gtk-5.3.0.ebuild 
b/sci-calculators/qalculate-gtk/qalculate-gtk-5.3.0.ebuild
index ac030f7c5630..7eee1ce3eb9a 100644
--- a/sci-calculators/qalculate-gtk/qalculate-gtk-5.3.0.ebuild
+++ b/sci-calculators/qalculate-gtk/qalculate-gtk-5.3.0.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 # Note: bump with sci-libs/libqalculate and sci-calculators/qalculate-qt!
 
-inherit xdg
+inherit optfeature xdg
 
 DESCRIPTION="Modern multi-purpose calculator"
 HOMEPAGE="https://qalculate.github.io/";
@@ -37,3 +37,9 @@ src_prepare() {
 
        default
 }
+
+pkg_postinst() {
+       xdg_pkg_postinst
+
+       optfeature "gnuplot support" sci-libs/libqalculate[gnuplot]
+}

Reply via email to